The root tags array is a flat, document-wide tag catalog for the MCP server. Tags are MCP Description metadata, not fields defined by the MCP protocol. <req-tags-non-empty> The array is OPTIONAL and MUST be non-empty when present. <req-tags-omitted> Producers MUST omit tags when they declare no catalog entries.
When present, tags lists the tag names that Tools, Resources, Resource Templates, and Prompts can reference. Array order sets display priority: user interfaces and documentation SHOULD present earlier tags first.
13.1 Tag Object
Section titled “13.1 Tag Object”| Property | Type | Required | Description |
|---|---|---|---|
name |
string | Yes | Tag name, unique within the root tags array (see Section 13.2). |
description |
string | No | Human-readable description of the tag’s purpose. |
13.2 Tag Uniqueness
Section titled “13.2 Tag Uniqueness” <req-tags-unique> Tag names MUST be unique within the root tags array. Validators MUST reject a document that contains duplicate tag names.
13.3 Tag References
Section titled “13.3 Tag References”A Tool, Resource, Resource Template, or Prompt can carry its own tags array of tag names. <req-entity-tags-shape>, <req-entity-tags-shape>, <req-entity-tags-shape> A primitive’s tags array MUST be non-empty when present and MUST contain only strings. <req-entity-tags-unique>, <req-entity-tags-unique>, <req-entity-tags-unique> It MUST NOT contain duplicate values.
<req-tags-references> When the root tags array is present, every tag that a primitive references MUST be declared in it. When the root tags array is absent, primitive tags are unconstrained strings.
13.4 Protocol Scopes and Effective Protocol Views
Section titled “13.4 Protocol Scopes and Effective Protocol Views”The root tag catalog is not protocol-scoped. A tag categorizes primitives across the whole document; it does not describe protocol behavior. <req-tags-views> An Effective Protocol View MUST preserve the complete root tag catalog, including entries that no primitive in that view references.
Protocol-scoped variants of the same primitive MAY use different tags arrays. When the root catalog is present, every reference in every variant is validated against it.
<req-tags-merge> Merge inputs MUST agree on the root tag catalog under the merge rules for unscoped metadata (see Section 4.13). Merge tooling MUST NOT infer, discard, or synthesize catalog entries from the tags referenced in individual views.
Elicitation Declarations do not carry tags. Each one is nested within a Tool, Resource, Resource Template, or Prompt, which can already be tagged. Extending tags to nested declarations would need its own use case and compatibility review.
13.5 Example
Section titled “13.5 Example”A root tag catalog referenced by two Tools and a Resource:
{ "tags": [ { "name": "analysis", "description": "Game analysis tools" }, { "name": "rating", "description": "Player and game rating tools" }, { "name": "history", "description": "Game history and records" }, { "name": "leaderboard", "description": "Ranking leaderboards" }, { "name": "player", "description": "Player-specific data" } ], "tools": [ { "name": "analyze_game", "tags": ["analysis"] }, { "name": "get_player_rating", "tags": ["rating", "player"] } ], "resources": [ { "uri": "chess://leaderboards/classical", "name": "classical_leaderboard", "tags": ["leaderboard", "rating"] } ]}