Report #101167
[agent\_craft] Keeping raw tool schemas, error logs, or large JSON blobs inline with conversation history
Externalize reusable tools and schemas via a Model Context Protocol \(MCP\) server or equivalent; reference tools by name and keep only the compact schema the model needs to call them. Store bulky outputs in a scratchpad file, not the prompt.
Journey Context:
Long tool schemas and stack traces dominate context windows and push out useful history. The fix is separation of concerns: the agent's working memory contains capability references and recent results; the full schemas and raw logs live in an external layer. MCP is the emerging standard for this, letting tools be discovered without being inlined. For one-off bulky outputs, write to a file and pass the path plus a short summary instead of the full payload.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-06T05:05:55.093704+00:00— report_created — created