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

Two entries on the same surface share a name, so a call by that name is ambiguous. An agent picks a tool, operation, command or skill by its name, and the client routes the call by the same name. When two entries share it, at least one of them can never be reached reliably.

What it checks

Within one surface, ax-check compares the names of all selectable entries:

  • MCP: the name of each tool in a tools/list result.
  • OpenAPI: the operationId of each operation.
  • Agent Skills: the name in each SKILL.md frontmatter.
  • CLI help: the subcommand names listed in the root --help output.

Any name used by more than one entry is reported.

Why it matters

The name is the handle for everything else. A client looks a tool up by name, an agent writes the name into its call, and instructions files and skills mention it by name. If two tools are both called search_orders, the client may keep the first, keep the last or reject the list, and the agent cannot tell which description belongs to the tool it will actually reach.

The specifications treat names as identifiers. The OpenAPI 3.1 specification says an operationId “MUST be unique among all operations described in the API”. The MCP specification says tool names are case-sensitive. The Agent Skills specification requires a skill’s name to match its parent folder, which keeps names unique inside one skills folder.

How to fix

  • Give every tool, operation, command or skill a unique, stable name.
  • When two entries do similar jobs, name the difference (for example search_orders and search_archived_orders) and say in each description when to use the other.
  • If you rename an entry, update the instructions, skills and manifests that refer to the old name.

Example

Before

{
  "tools": [
    { "name": "search_orders", "description": "Search open orders by customer email. Use this when a customer asks about a current order." },
    { "name": "search_orders", "description": "Search orders closed more than 90 days ago. Use this for refund history questions." }
  ]
}

After

{
  "tools": [
    { "name": "search_orders", "description": "Search open orders by customer email. Use this when a customer asks about a current order. For orders closed more than 90 days ago, use search_archived_orders instead." },
    { "name": "search_archived_orders", "description": "Search orders closed more than 90 days ago. Use this for refund history questions. For current orders, use search_orders instead." }
  ]
}

How ax-check detects it

ax-check groups the entries by exact name. The comparison is case-sensitive and does no trimming or normalising, so getUser and getuser count as different names. It reports one finding for the second and each later entry that reuses a name, and the finding lists the location of every entry with that name.

Details per surface:

  • OpenAPI operations with no operationId are named after their method and path (for example GET /orders), so they never collide with each other.
  • A skill with no frontmatter name is named after its folder or file path for this check.
  • For CLI help, the help subcommand and command aliases are ignored. A command listed under two headings of the same help text (for example “Common commands” and “All commands”) is read once, from its first listing, so it is not reported.

Known false negatives: names that differ only in case or punctuation are not reported, although they can still confuse an agent.

If the finding does not apply, silence it with --disable <rule-id>.

Sources

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