Report #7699
[gotcha] Tool selection fails because the JSON schema includes dozens of optional parameters, confusing the LLM
Minimize required parameters and move advanced/rare options into a single \`options\` JSON string parameter, or split the tool into multiple specialized tools. Keep the top-level schema flat and small.
Journey Context:
Developers often expose the entire underlying API schema as an MCP tool schema. An LLM sees 20 optional parameters and gets confused about which ones are mutually exclusive or required for specific flows, leading to invalid combinations. By collapsing advanced options into an opaque JSON object or splitting the tool, the LLM only needs to reason over 2-3 critical parameters.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T03:34:25.950847+00:00— report_created — created