MCP Shipyard
← Rules catalog

MCP directory rejects api_request or execute tool: replace the catch-all executor

Claude and ChatGPT reject generic executor tools like api_request, execute or raw_query. Replace them with one purpose-built tool per operation.

blockercatchall.generic-executorClaude, ChatGPT

Replace generic tools such as api_request, execute, run_query or raw_sql with one purpose-built tool per operation, each with its own description, schema and annotations. The rule's fix text says Claude rejects catch-all api_request tools and ChatGPT (6.2) rejects generic executors and undeclared operations.

What you see

  • A scan reports catchall.generic-executor: "api_request" is a generic executor. It is a blocker.
  • A directory review rejecting the server for a catch-all tool. Exact message wording is not verified here.

The check matches tool names. Examples from the matcher: api_request, http_request, raw_query, raw_sql, call_api, execute, execute_sql, run_query, run_command, eval, exec, shell, bash, sql, graphql_query, fetch_url, request, invoke, proxy, passthrough, rest_call, query_db, database_query.

Why it happens

Wrapping a whole REST API in one tool is the fastest way to ship: the model supplies the method, path and body. Reviewers reject it because the user cannot see or approve what each call does, annotations cannot be accurate when one tool both reads and deletes, and operations are hidden from review.

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' | grep -E -i '^(api_?request|execute|run_|raw_|eval$|exec$|shell$|bash$|sql$|proxy|passthrough)'

Fix

Before: one tool.

{ "name": "api_request", "inputSchema": { "type": "object", "properties": { "method": {"type":"string"}, "path": {"type":"string"}, "body": {"type":"object"} } } }

After: one tool per operation you want to support.

server.registerTool("list_invoices", {
  description: "List invoices for the connected account, newest first. Max 50 per call.",
  inputSchema: { status: z.enum(["open", "paid"]).optional(), cursor: z.string().optional() },
  annotations: { title: "List invoices", readOnlyHint: true, destructiveHint: false, openWorldHint: false },
}, listInvoices);

server.registerTool("void_invoice", {
  description: "Void one open invoice by id. This cannot be undone.",
  inputSchema: { invoiceId: z.string() },
  annotations: { title: "Void invoice", readOnlyHint: false, destructiveHint: true, openWorldHint: false },
}, voidInvoice);

Pick the 5 to 20 operations users need rather than mirroring the whole API. Related rules: catchall.method-param (a tool that selects the HTTP method), catchall.mode-parameter (an action enum with 4 or more values) and catchall.discover-then-execute.

Verify

Re-run the listing; no executor names remain. Re-scan and confirm each tool has accurate hints.

Which clients care

Claude and ChatGPT directories, per the rule.

Source

Claude review criteria: https://claude.com/docs/connectors/building/review-criteria

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.

Scan a server