Report #30572
[frontier] Static tool definitions in MCP force you to expose hundreds of similar tools \(get\_weather\_nyc, get\_weather\_la\) or complex string parsing
Use MCP Resource Templates with URI syntax \(scheme://\{param\}/path\) to expose dynamic resource hierarchies, letting the agent construct URIs at runtime
Journey Context:
Early MCP implementations treat resources like static files, leading to explosion of endpoints or fragile string concatenation in tool parameters. Resource templates \(introduced in MCP spec 2024-11-05\) allow parameterized URIs like weather://\{city\}/current. The agent discovers the template, fills in \{city\}, and fetches. This replaces the anti-pattern of 'get\_current\_weather' tool with a 'city' argument that lacks discoverable semantics. Templates make the resource graph navigable.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T05:42:05.040587+00:00— report_created — created