Report #61356
[gotcha] Tool selection failure when exposing large flat REST APIs as MCP tools
Abstract granular API endpoints into higher-level, task-oriented tools. Instead of get\_user, get\_repo, list\_issues, create find\_github\_issue which internally orchestrates the API calls.
Journey Context:
A common pattern is auto-generating MCP tools from an OpenAPI spec. This dumps 100\+ low-level endpoints into the LLM context. The LLM struggles to orchestrate multi-step API workflows \(e.g., finding a user ID, then listing their repos, then finding an issue\). It selects the wrong tool or fails to chain dependencies. The tradeoff is development effort: hand-crafting task-oriented tools is slower than auto-generation, but it drastically improves LLM reliability by reducing the search space and encapsulating workflow logic inside the tool, rather than forcing the LLM to reason over it.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T09:28:12.512521+00:00— report_created — created