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.
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.
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.
subscriptions/ 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.
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.
Keep the original definition reference when the cache refreshes. Distinguish a missing reference from one the service cannot honor.
Allow the service to honor a compatible call, route it to a replica that supports that definition, or reject it before running side effects.
Keep compatible and unrelated calls working while signaling staleness, so clients know when to refresh without repeating an operation that already ran.
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.
Discovery and execution can reach different versions of the same service. Routine deployments, load balancers, and multi-service gateways create windows where the node handling tools/call runs a different definition from the one that answered tools/list.
Takeaway: Phased expand-and-contract schemas help with argument shape during rollouts, but cannot expose silent unit drift or calls prepared from stale startup caches. A definition reference could expose that the call was prepared before the confirmation UI was added. It would not prove that the client displayed the dialog. Because MCP is a transport-agnostic RPC protocol (including stdio without HTTP headers), traditional HTTP mechanisms like ETag and If-Match are not a direct fit: they describe a single HTTP resource representation rather than the tool or catalog definitions an RPC call depends on.
Add an opaque tag to cacheable list responses (such as tools/list) alongside ttlMs and cacheScope. When a client prepares a call, it keeps that tag and echoes it on tools/call — even if its local cache refreshes before the call is sent.
Backwards compatibility comes from three server behaviors: reject before running, accept and signal stale, or ignore.
When the server cannot safely honor the older definition, it rejects before side effects and echoes the client's stale tag (L1). The client refreshes, rebuilds, and decides whether to retry.
When the server can still honor the call (compatible edit, shim, or unchanged tool), it runs once and echoes stale L1 in result metadata so the client refreshes without repeating the call.
Older servers ignore unknown _meta keys, and servers may accept untagged calls from older clients (with no drift check). Whether servers must enforce supplied tags or may require them remains open.
Stateless subscription catch-up too: Sending known tags when opening subscriptions/ (at startup or after a rolling-deploy drain) also lets any stateless replica compare tags immediately and emit list_changed without session history — complementing call-time checks while an older stream is still draining.
Attribution: resultType: "complete", ttlMs, and cacheScope are in the MCP caching draft. Highlighted fields (tag, io.modelcontextprotocol/knownTags, staleTags, -32987) are illustrative proposal spellings; exact wire layout remains open.
Next question: A list tag works with zero per-tool overhead, but in a 50+ tool PTC catalog, editing two tools changes the whole list tag. Open At scale: per-tool tags to see how per-tool tags isolate call verification at scale.
With PTC (programmatic tool calling) or multi-service proxies, a single MCP server routinely exposes 50+ tools across distinct capability groups.
When one interrelated pair of tools changes, should a stateless server have to reject calls to the other 50 tools, or can it verify untouched tools independently? (Refreshing may still fetch the whole list — per-tool tags narrow call verification, not delta fetching.)
1 tag per list response (zero per-tool bytes on the wire). Changing 2 interrelated tools flips L1 → L2 for all 52 tools.
A stateless replica cannot tell which of the 52 tools changed; avoiding false rejections on the other 50 tools requires a server-side history or diff index for L1.
+1 tag per listed tool (and the invoked tool's tag echoed on tools/call). Changing the 2 interrelated tools only changes those 2 tags.
Any stateless replica with deterministic tags verifies the other 50 untouched tools directly (tag = tag) with no old catalog lookup, while L1 ≠ L2 still signals a lazy refresh for additions or removals.
Attribution: resultType: "complete", ttlMs, and cacheScope are in the MCP caching draft. Highlighted fields (tag, io.modelcontextprotocol/knownTags, io.modelcontextprotocol/primitiveTag) are illustrative proposal spellings; exact wire layout remains open.
Groups, instructions & compatible edits: Per-tool tags verify an unchanged tool definition without history, but do not verify whether server/discover or group instructions changed, and do not provide delta fetching. Group tags (if tools are discovered by group) version a whole group together rather than individual tools, and need per-group identity. Neither replaces server-side compatibility logic when a changed tool must keep honoring older callers (versioning-scope-decision.md).