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

A file names an MCP tool, but the live server’s tool list does not include it. An agent that reads the file will try to call a tool that is not there, or will hunt for it and waste turns.

What it checks

When you pass --mcp <url>, ax-check connects to the server over Streamable HTTP. It sends initialize and then tools/list. Both are read-only. Passing --mcp is your explicit request for that connection, so it works without --online. If the server needs a header, add it with --header "Authorization: Bearer ...". ax-check compares the tool names in the live answer with the tool names claimed in your files. The rule fires for every claimed name that the server does not return. When a served tool has a name within a small edit distance of the claim, the message adds “Did you mean …”, which usually catches a typo or a small rename.

Why it matters

Tool names are exact. The MCP specification says tool names are case-sensitive, so create_invoice and Create_Invoice are different tools (MCP specification, Tools). Instruction files, skills and manifests are written once and often outlive a rename. When a tool is renamed from create_invoice to invoice_create, every file that still uses the old name tells agents to call something that fails. Guidance on catalogues of tools says the same thing: what the files promise and what the server serves should be one list (Agent tool catalogs).

How to fix

  • Rename the claim in the file to the name the server actually serves.
  • Or restore the tool on the server, if it was removed by mistake.
  • If the tool was removed on purpose, delete the sentence that tells agents to use it, and say what to use instead.

Example

Find it:

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

Before

# AGENTS.md

## Invoice tools

Use the `create_invoice` tool to draft an invoice.
Use `list_invoices` to find existing ones.
Use `void_invoice` to cancel one.

The live server returns invoice_create, list_invoices and invoice_void.

After

# AGENTS.md

## Invoice tools

Use the `invoice_create` tool to draft an invoice.
Use `list_invoices` to find existing ones.
Use `invoice_void` to cancel one.

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. In Markdown, ax-check reads backticked identifiers in snake_case (lower case, with at least one underscore, such as create_invoice or create_invoice()) when the line, or the heading above it, contains the word “tool” or “tools”. It ignores fenced code blocks for this purpose. In JSON files it reads the strings in a tools array and the name of each object in a tools list.

It deliberately does not claim a tool for every backticked word. A single word such as search, a kebab-case name, or a camelCase name is not read as a tool claim, to avoid false alarms.

A snake_case name is often a parameter, not a tool, so two filters keep parameters out of the claims.

  1. Syntax in the file. A name is read as a parameter, and not as a tool claim, when:
    • it is an argument in call syntax: in get_invoice(invoice_id) the tool is get_invoice and invoice_id is a parameter;
    • it is written as tool.param, such as get_invoice.invoice_id;
    • it follows or precedes a word such as “argument”, “parameter”, “field”, “option” or “key” (for example “the argument invoice_id”, “invoice_id is a required parameter”, or a list such as “parameters: a_b, c_d and e_f”), or follows --;
    • it is a key of an inline JSON object, such as {"invoice_id": "x"}, or a key anywhere in a fenced json block in the same file. Keys under tools, servers or mcpServers are not skipped, because those are named things.
  2. The live schema. With --mcp, every property name in any served tool’s inputSchema (including nested objects, array items and $defs) is known to be a parameter. A claimed name that is not a served tool but does match one of these property names is treated as a parameter and is not reported. This catches a parameter that the prose mentions with no helpful words around it, such as “the tool also reads cli_help”.

A name that is both a served tool and a property is still a served tool.

Known limits:

  • A snake_case word that is not a tool and is not caught by the two filters (a config key such as max_retries in a “tools” section, when no served tool has a property of that name) is treated as a claim. Move it out of that section, or silence the rule.
  • The schema filter can hide a genuinely missing tool whose name equals a property name of another tool. This is rare, and the cost is a missed finding, not a false alarm.
  • A tool whose name has no underscore is not checked.
  • A server that lists different tools to different callers (for example after sign-in) may not serve a tool to this unauthenticated check.

If you do not pass --mcp, this rule does not run. To see what would be compared without connecting, add --dry-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.