On this page · 8 sections
  1. What it checks
  2. Why it matters
  3. How to fix
  4. Example
  5. How ax-check detects it
  6. Sources
  7. Related evidence
  8. Related guides

The live MCP server returns a tool that none of the files you checked mention. This is the mirror image of Claimed MCP tool is not served. It is only information, because a server may serve tools that are meant to be found through the tool list alone.

What it checks

When you pass --mcp <url> (your explicit request for that connection), ax-check fetches tools/list from the server (an initialize call followed by tools/list, both read-only). It then compares the served tool names with the tool names found in all the files you gave it. The rule fires for each served tool that appears in none of them.

Why it matters

An agent usually learns about a server’s tools from the tool list. But the files around the server often carry the context that the list cannot: when to prefer one tool to another, which one needs approval, which one is new. A tool that is served but never explained is a tool the instructions cannot help the agent choose. It can also be a sign that a tool was added and nobody updated the docs, or that a tool was left on the server that was meant to be removed.

The finding is info for that reason. It asks you to decide, not to repair.

How to fix

  • Mention the tool where agents read about this server, with a sentence on when to use it and when to use its neighbour instead. The guide on writing tool descriptions explains how.
  • Or remove the tool from the server, if it should not be there.
  • Or silence the rule, if the tool list is the intended single source of truth.

Example

Find it:

ax-check drift --mcp https://mcp.example.com/mcp AGENTS.md SKILL.md

Before

# AGENTS.md

## Invoice tools

- `invoice_create`: draft a new invoice.
- `list_invoices`: find existing invoices.

The server also serves invoice_void, which cancels an invoice and is not mentioned in either file.

After

# AGENTS.md

## Invoice tools

- `invoice_create`: draft a new invoice.
- `list_invoices`: find existing invoices.
- `invoice_void`: cancel an unpaid invoice. Ask the user first. Do not use it to correct a typo; create a new invoice instead.

How ax-check detects it

The extraction and the rule logic are deterministic, but the result depends on what the live server returns from tools/list at the time of the run, so the same file can give different findings on another day. JSON and SARIF reports record when and where the check ran. It builds one set of claimed tool names from every file in the run, using the same extraction as Claimed MCP tool is not served: backticked snake_case identifiers on a line or under a heading that mentions “tool” or “tools”, and tool names in JSON tools lists. It then subtracts those from the served list.

Because the comparison is across all files, pass every file that documents the server. A tool mentioned in a file you did not pass looks undocumented.

Known limits:

  • A tool mentioned in prose without backticks, or outside a line or heading that mentions “tool”, does not count as mentioned.
  • Claims are only read for snake_case names, so a served tool whose name has no underscore may be reported even when a file documents it. Silence the rule if that applies.

If you do not pass --mcp, this rule does not run. To silence it, use --disable <rule-id>.

Sources

Records in the AX evidence register about the same pattern as this rule. They don’t test the rule itself.