NASA-IMPACT / NASA-IMPACT/akd-ext
Minify response from tools
@sanzog03 is already working on this.
Since Jan 26, 2026.
- 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 ltextfield 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.