Report #48622
[tooling] Agent wastes tokens on tool descriptions for static data or misses caching opportunities
Use Resources \(with URI templates like 'db://users/\{id\}'\) for idempotent, read-only data that changes infrequently. Use Tools only for operations with side effects, computation, or transient data. Implement resource read with list/subscribe if data updates.
Journey Context:
Developers expose database queries or file contents as Tools because they fit the 'call a function' mental model. However, Tools carry description overhead on every request and cannot be cached by the client. Resources use URI addressing, allow client-side caching \(ETags\), and support subscriptions for updates. The heuristic: if the LLM needs to 'know' something static \(read user profile, read codebase file\), it's a Resource. If it needs to 'do' something \(send email, calculate complex transform\), it's a Tool. A common anti-pattern is exposing a search endpoint as a Tool when it should be a Resource with a query parameter.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T12:05:59.260284+00:00— report_created — created