# Duplicate name

> ax-check rule: Two entries share the same name or operationId, so a call by name is ambiguous.

Section: ax-check rule · Descriptions and schemas  
Canonical: https://agentexperience.tech/checks/axc-d014/

Two entries share the same name or operationId, so a call by name is ambiguous.

- **How serious**: **error** Something is broken or missing.
- **Kind of check**: **[Conformance](https://agentexperience.tech/checks/#kinds)** A finding is a fact about the input.
- **ax-check command**: `ax-check lint`
- **Where it applies**: MCP tool lists, OpenAPI, SKILL.md, CLI help
- **Topics**: [selection](https://agentexperience.tech/evidence/#pattern-selection), [discovery](https://agentexperience.tech/evidence/#pattern-discovery)
- **Rule text from**: ax-check 0.2.0Documented ahead of release

**Fix in one line** Give every tool, operation, command or skill a unique, stable name.

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

```json
{
  "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

```json
{
  "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

- Specification: OpenAPI Specification v3.1.0, OpenAPI Initiative, 15 February 2021. [https://spec.openapis.org/oas/v3.1.0](https://spec.openapis.org/oas/v3.1.0). States that `operationId` “MUST be unique among all operations described in the API”.
- Specification: Model Context Protocol, Tools, revision 2026-07-28. [https://modelcontextprotocol.io/specification/2026-07-28/server/tools](https://modelcontextprotocol.io/specification/2026-07-28/server/tools). Tool names are case-sensitive identifiers of 1 to 128 characters.
- Specification: Agent Skills specification, agentskills.io, retrieved 2026-10-08. [https://agentskills.io/specification](https://agentskills.io/specification). A skill’s `name` must match its parent directory name.
- Guide: Write tool descriptions an agent can act on, agentexperience.tech, retrieved 2026-10-08. [https://agentexperience.tech/insights/tool-descriptions/](https://agentexperience.tech/insights/tool-descriptions/). Name the nearest neighbouring tool so an agent can tell similar tools apart.
- Related check: the agentexperience.tech `audit_agent_path` tool reports the same defect for MCP catalogues as `catalog.duplicate_tool_name`.

## Related evidence

Records in the [AX evidence register](https://agentexperience.tech/evidence/) about the same pattern as this rule. They don’t test the rule itself.

- [Skill selection precision collapses as the skill pool grows](https://agentexperience.tech/evidence/ev-0019/): A preprint reports that as the pool of available skills grew from 5 to 100, the precision with which agents actually used the right skill fell from 29.6% to 3.3%. Preprint: not yet peer reviewed
- [FAQ blocks and structured data showed no citation effect within a domain](https://agentexperience.tech/evidence/ev-0013/): An observational study of about 2 million AI-engine citations (preprint) found that FAQ blocks, structured data and Core Web Vitals had positive effects on citation in pooled data that reversed or fell to zero once domain fixed effects were applied. Preprint: not yet peer reviewed
- [Praise and list order move tool selection](https://agentexperience.tech/evidence/ev-0020/): A preregistered preprint with two small OpenAI models found that stacked praise in a tool description raised its pick rate by about 43 percentage points, and that with identical listings the first-listed tool was picked about 72 points more often. Preprint: not yet peer reviewed
- [Agents leave available tools unused: the adoption gap](https://agentexperience.tech/evidence/ev-0021/): On OSWorld-MCP (preprint), a reasoning model given MCP tools called one on only 55 of 309 tasks, 23.9% of the tasks a tool could reach, and the same tools made a non-reasoning model 5.9 points worse. Preprint: not yet peer reviewed
- [Hiding tools is not enforcing permissions](https://agentexperience.tech/evidence/ev-0023/): Across 2,160 attempts with four frontier models (preprint), a server with only in-body permission checks exposed forbidden tools in 152 of 720 trials and permission-aware visibility cut that to 0 of 720, yet models named a hidden tool in up to 94% of settings when it was inferable from the prompt. Preprint: not yet peer reviewed
- [A capable agent skipped the index and guessed the page](https://agentexperience.tech/evidence/ev-0027/): A preregistered ablation on a 709-page Markdown wiki (preprint) found that a capable tool-using agent never loaded the compact catalogue index, inferring page paths from the question instead, while retrieval-based access kept answer quality non-inferior and cut cost by about a third to over half. Preprint: not yet peer reviewed

## Related guides

- [Write tool descriptions an agent can act on](https://agentexperience.tech/insights/tool-descriptions/): How to write tool names, descriptions and JSON schemas that help an AI agent choose correctly, and why tool text deserves review like interface copy. Guide
- [Agent tool catalogues need a pruning strategy](https://agentexperience.tech/insights/agent-tool-catalogs/): How to design an agent tool catalogue: why selection gets harder as an MCP tool catalog grows, three ways to prune it, and how to name neighbouring tools. Guide
- [Agentic Resource Discovery, implemented](https://agentexperience.tech/insights/agentic-resource-discovery/): Agentic Resource Discovery explained: what ARD is, how /.well-known/ard.json relates to MCP's ai-catalog.json, and a worked example you can copy to publish your own. Guide

## Go here next

- [Write tool descriptions an agent can act on](https://agentexperience.tech/insights/tool-descriptions/): The text around a tool affects whether an agent can find it, choose it, and use it well. Guide
- [Skill selection precision collapses as the skill pool grows](https://agentexperience.tech/evidence/ev-0019/): A preprint reports that as the pool of available skills grew from 5 to 100, the precision with which agents actually used the right skill fell from 29.6% to 3.3%. Evidence
- [Description too short](https://agentexperience.tech/checks/axc-d015/): The description has fewer than six words, too few to say what the item does and when to use it. Rule

## About this rule text

[Near-duplicate descriptions](https://agentexperience.tech/checks/axc-d013/)

[Description too short](https://agentexperience.tech/checks/axc-d015/)

[All ax-check rules](https://agentexperience.tech/checks/)

Rule text from ax-check 0.2.0, by Himadri Mishra. The licence will be confirmed before the source repository is published.
