MCP server returns tools but does not declare the tools capability
The spec says servers that support tools MUST declare capabilities.tools. Add it, with listChanged if the tool list can change.
Declare capabilities.tools whenever your server serves tools. The rule server.tools-capability is a major finding. The MCP tools spec says: "Servers that support tools MUST declare the tools capability".
What you see
- A scan reports
server.tools-capability: "Tools returned but capabilities.tools is absent". - It only fires when the server reports capabilities and returned at least one tool.
- If the capability is missing and no tools come back, you will see
count.zeroinstead. A client that trusts capabilities may never ask for tools; that behaviour is not verified here for every client.
Why it happens
- A hand-rolled server answers
tools/listbut returns an empty capabilities object. - Tools are registered after the capabilities were computed (late registration in an SDK that snapshots capabilities at connect time).
- A gateway rewrites the response and drops fields it does not know.
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":"d1","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/protocolVersion":"2026-07-28","io.modelcontextprotocol/clientInfo":{"name":"check","version":"1"},"io.modelcontextprotocol/clientCapabilities":{}}}}' \
| jq '.result.capabilities'
For older revisions read .result.capabilities from the initialize response. You should see a tools key.
Fix
Declare it when the server is created, and register tools before connecting the transport:
{ "capabilities": { "tools": { "listChanged": true } } }
listChanged says whether the server will emit notifications when the tool list changes. Set it only if you send them. In 2026-07-28 those notifications go to clients that opened a subscriptions/listen stream with toolsListChanged: true.
The spec adds that a server with the capability MUST answer tools/list; the list MAY be empty, MUST NOT vary per connection, and MAY vary by the authorization on the request.
Verify
The capabilities output includes tools, then re-scan. If the list is empty see count.zero.
Which clients care
Tagged general.
Source
MCP tools spec: https://modelcontextprotocol.io/specification/2026-07-28/server/tools
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.