Discovery tool plus executor tool: ChatGPT rejects the discover-then-execute pattern
Pairing search_docs or list_operations with an execute or api_request tool reaches unlisted operations. Expose each operation as its own tool.
Expose every operation as a named tool instead of one executor that is fed by a discovery tool. The rule catchall.discover-then-execute is a major finding for ChatGPT. It fails when a server has both a discovery-style tool and an executor-style tool.
What you see
- A scan reports
Discovery (list_operations) feeds an executor (execute_request). - The tool list looks tiny, while the real surface is whatever the discovery tool returns.
Why it happens
Some servers keep their tool count low by shipping two tools: one that lists or describes operations (names such as search_docs, list_operations, list_endpoints, get_schema, get_openapi, describe_api, or discover...) and one that runs any of them (execute, run, api_request, raw_query, call_api, invoke, proxy, and similar). The model learns the operations at runtime and calls the executor.
OpenAI's plugin guidelines (6.2(b)) say: "Do not use discovery, operation selection, or schema fetching with a generic executor" to enable operations that are not individually exposed for review. Each operation must be its own tool.
Check it yourself
curl -s -X POST https://mcp.acme.example/mcp \
-H 'Content-Type: application/json' -H 'Accept: application/json, text/event-stream' \
-H "Authorization: Bearer $TOKEN" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | jq -r '.result.tools[].name'
Look for one name from each group in the same list.
Fix
- Turn each operation the executor can reach into its own tool with a specific name, schema, description and annotations.
- Remove the executor. Keep a documentation search tool only if it returns text and cannot trigger actions.
- If the full API is too large, ship the 15 to 30 operations people actually use. Offer the rest from a second server with a clear scope.
- Keep an eye on the total (
count.too-many).
Verify
The tool list contains no executor, the scan reports no catchall.generic-executor and no discovery-plus-executor pair, and every operation you intend to support is visible in tools/list.
Which clients care
ChatGPT, per the rule. Claude's review criteria reject catch-all tools through catchall.generic-executor.
Source
OpenAI plugin guidelines: https://developers.openai.com/plugins/plugin-guidelines
Run a free scan at https://mcpshipyard.com/scan to check every rule at once.
Check every rule at once
A free scan runs this check and the other 152 against your live URL.
Related fixes
- Freeform query tool without an API reference: Claude review requires the target API
- MCP directory rejects api_request or execute tool: replace the catch-all executor
- MCP tool with an HTTP method parameter: Claude review rejection and the split
- One MCP tool with an action parameter: split it into separate tools