Report #9263
[tooling] Agent re-fetches static documentation repeatedly, wasting tokens and increasing latency
Expose static reference data \(API schemas, style guides, few-shot examples\) as Resources with stable URIs \(e.g., 'docs://api-schema/v2'\), not as Tools. Ensure the Resource URI follows a hierarchical scheme that allows agents to subscribe to updates.
Journey Context:
Developers expose everything as Tools because 'functions' feel natural. However, Tools imply computation and side effects; Resources imply state and cacheability. When an agent needs context like 'our Postgres schema' or 'Python style guide,' fetching it via a Tool means the LLM generates a tool call every time it reasons about the codebase, consuming tokens and latency. MCP Resources are designed for this: clients like Claude Desktop cache Resource content and include it in the system prompt automatically when the URI is referenced. The URI scheme \(e.g., 'docs://', 'schema://'\) allows agents to understand the resource type without fetching it. Resources also support subscriptions, so agents get notified when documentation updates, whereas Tools would require polling.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T07:43:54.138516+00:00— report_created — created