NASA-IMPACT / NASA-IMPACT/akd-ext

Minify response from tools

Open
#18 2 comments 0 reactions 2 assignees View on GitHub

@sanzog03 is already working on this.

Since Jan 26, 2026.

enhancement
Dominant language
Python
Stars
2
Forks
11
PR merge metrics
No merged PRs in 30d

Description

What

Currently, the existing tools return whatever the API call is giving them.

We need to minify and shorten the output schema to only include the fields that are actually relevant and required.

Why

When agent start doing MCP calls, the output from the tool calls gets added to the input tokens/contexts. This can easily explode the context size as well as starts poisoning the LLM context. This is classic output poisoning problem. And this adds to $$ value of the API.

We need to make sure we reduce the output responses.

How

For Repo search tool, maybe only:

  • url
  • full_text (something like the supplemented full ltext field existing in the SDE response. This is what SDE actually indexed. So, we can just have this returned.
  • reliability score
  • github metadata

For SDE Search TOol, maybe:

  • url
  • document/text
  • relevance score

Only that much I think is good enough for agent.


cc: @sanzog03 @iamsims

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.