Freeform query tool without an API reference: Claude review requires the target API
A tool that takes an endpoint, SQL, GraphQL or request body must name the target API and link its docs, or Claude review fails it.
Name the target API and link its documentation in the description of any tool whose caller supplies a freeform query. The rule catchall.freeform-no-api-reference is a major finding for Claude. It fails when a tool has a parameter named endpoint, sql, graphql, raw_query, request_body, body or headers (or a path, URL or request parameter alongside a method, body or headers parameter) and the description contains neither a link nor a name ending in "API".
What you see
- A scan reports
Takes freeform endpoint or query input but the description has no API link. - A review note says the description does not identify what the tool calls. The exact portal wording is not verified here.
Why it happens
A custom query tool (for example run_report with a sql string) gives the caller a lot of power, and reviewers need to know what it is aimed at. Descriptions like "Runs a query" say nothing.
Claude's review criteria state: "If a tool accepts freeform endpoint paths, query strings, or request bodies that the caller constructs, its description must include a link to or the explicit name of the target API." A description such as "Makes a request to the API" with no further context fails. The page also says the requirement applies only to custom query tools, not to purpose-built tools that call a fixed endpoint internally.
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 '.result.tools[] | select(.inputSchema.properties | keys | any(test("^(endpoint|sql|graphql|raw_?query|body|headers)$"))) | {name, description}'
Fix
- Prefer replacing the tool with purpose-built tools (
get_order,list_shipments). That removes the requirement and the review risk. - If a freeform tool must stay, write: "Queries the Acme Orders API (https://api.acme.example/docs). Read-only: GET requests under /v2/orders and /v2/shipments."
- Do not combine safe and unsafe methods in the same tool (
catchall.method-param). - Keep annotations accurate for what the tool can do (
annotations.write-marked-readonly).
Verify
Each freeform tool's description now has a URL or an "Acme Orders API" style name. Re-scan.
Which clients care
Claude, 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.
Related fixes
- Discovery tool plus executor tool: ChatGPT rejects the discover-then-execute pattern
- 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