MCP primitive versioning proposal

Hypothetical example

Clients discover a tool once and invoke it later — across a TTL cache (ttlMs), a saved startup cache, or a pause for user approval. A call can satisfy the current input schema even when an argument’s meaning or the tool’s UI metadata has changed.

An ordinary tools/call request does not reliably identify the definition the client used.

Silent drift on a valid call

Client prepared from v1

On the wire

Server now runs v2

Chained tools and outputs too: A change to one tool can silently break another (e.g., Tool A returns dollars while Tool B switches to cents). The server can also return structuredContent that matches its new outputSchema but fails validation against the client’s cached schema, after the side effect has occurred.

Why caching, TTLs, and notifications aren’t enough

TTLs are hints, not guarantees

ttlMs hints how long a result may be treated as fresh; the definition may change sooner. cacheScope controls who may reuse it. Clients also reuse persisted lists at startup without re-checking freshness to cut latency.

Notifications miss rollouts and still race

subscriptions/listen is a long-held stream pinned to one replica and drained last during a rolling deploy, while tools/call already hits new pods — and reconnecting carries no prior state. Even when list_changed arrives, definitions can still change between lookup and call.

Prepared work outlives the cache

A call awaiting user approval still reflects the old definition even if a background refresh updates the client’s cached list to v2 before the user clicks Approve.

What a solution must do for a prepared call

Identify the definition used to prepare a call

Keep the original definition reference when the cache refreshes. Distinguish a missing reference from one the service cannot honor.

Detect mismatches before execution

Allow the service to honor a compatible call, route it to a replica that supports that definition, or reject it before running side effects.

Separate “succeeded, refresh later” from “rejected before execution”

Keep compatible and unrelated calls working while signaling staleness, so clients know when to refresh without repeating an operation that already ran.

Distinguish definition mismatch from bad arguments

Give clients a distinct mismatch error so they can refresh and replan, with identical behavior across every transport — including stdio without HTTP headers.

Catalog consistency too: During discovery, clients also need a way to detect mixed pages across a paginated catalog and prevent a delayed response from overwriting a completed refresh.

Beyond tools: The same gap affects prompts (arguments added while a user fills out a form), resource URI templates, and skills/list (Skills extension) — where a skill definition can change across reads separately from referenced files already checked via manifest digests.

Scope & wire design: This page covers the core problem statement (problem-statement.md). See the Proposed solution and At scale: per-tool tags tabs above for how list tags and per-tool tags address these requirements (see also versioning-scope-decision.md).