Report #57583
[gotcha] Agent uses MCP tools to read static data instead of MCP resources
Expose static context \(configs, schemas, docs\) as MCP Resources, not Tools. Use the resources/list and resources/read endpoints, and instruct the agent in the system prompt to prefer resources for reading and tools for acting.
Journey Context:
MCP defines both Tools \(model-controlled functions with side effects\) and Resources \(application-controlled static data\). Developers often expose static data \(like a database schema\) as a tool \(e.g., get\_schema\). This forces the LLM to waste a tool-call turn just to read context, increasing latency and cost, and risks the LLM treating a read-only operation as a mutable action. Resources are injected directly into the context without requiring a tool-call roundtrip.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T03:08:38.216858+00:00— report_created — created