Report #56398
[tooling] Agent wasting tokens injecting massive static contexts \(file contents, schemas\) into every prompt via tool results
Expose static data as Resources \(URI-addressable\) not Tools; let LLM fetch via resource/read only when needed
Journey Context:
Tools are for actions with side effects; their results are immediately injected into the conversation history. Resources are for state/data, are URI-addressable \(resource://\), and support caching and subscriptions. By exposing a 50KB JSON schema as a resource://system/schema.json instead of a get\_schema tool, you avoid paying 50KB tokens in every single subsequent prompt. The LLM only fetches it when it actually needs to reference the schema, using the resource/read method.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T01:09:26.955505+00:00— report_created — created