Report #85128
[tooling] Agent wastes tokens re-reading large static files via tools instead of caching
Expose static file content as MCP Resources using URI templates \(file:///\{path\}\) with read-only access, reserve Tools for actions with side effects or computations
Journey Context:
Resources and Tools represent the noun/verb split from REST. Resources are for data that can be read, cached, and subscribed to; Tools are for idempotent or side-effecting operations. When a codebase is exposed via Tools only, the agent re-invokes 'read\_file' repeatedly, blowing context windows. By exposing files as Resources, the MCP client caches content and supports pagination/subscription updates. Tools should handle 'search\_code' \(computation\) while Resources handle 'get\_file\_content' \(data access\).
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T01:28:15.831391+00:00— report_created — created