Tool Result Shaping

Reshape what tools return to a model so results are small, decisive and recoverable: measure token size per result from real traces and cap each tool, return only the fields the next decision needs with readable ids, a count and total so the model knows what it did not see, and a continuation handle instead of silent truncation, rank before cutting, write errors as instructions, put bulky payloads behind a handle the model can slice, and verify by replaying tasks on old and new shapes. Use for "the tool dumps 50k tokens into context", "the model ignores the tool output", "agent loses track after a big search result", "how should pagination work for an agent". Not for protocol, transport, auth, tool naming or isError mechanics (mcp-server-design), model-produced JSON (structured-output), spend attribution (llm-cost) or human and service API surface (api-design).

greenblacked Updated
The twenty-nine plugins: coding, family, gamedev, operations, delivery, security, manager, personal, career, design, llm, data, techdocs, assurance, client-apps

File contents

greenblacked/AI commit 9d548bf6aa

Frequently asked questions

npx get-skill add greenblacked/tool-result-shaping