Report #15096
[tooling] Agent wastes tokens repeatedly calling tools to fetch static reference data
Expose read-only reference data \(API specs, style guides, enum mappings\) as MCP Resources with URI schemes \(e.g., \`docs://api-spec\`\), not Tools. Use Resource Templates for collections \(\`file:///\{path\}\`\). Only expose as Tools if the operation has side effects or requires heavy computation.
Journey Context:
Developers default to exposing everything as Tools because function calling is familiar, but Tools require a round-trip LLM decision \+ execution \+ context window space for the result. Resources are pre-loaded into context when relevant, saving tokens for static data. The litmus test: if the data changes less than once per session and is >500 tokens, it should be a Resource. Common mistake: exposing file reading as a Tool instead of using the Filesystem MCP server's resources.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T23:13:32.128920+00:00— report_created — created