# In what scenarios must an instance treat an MCP tool schema as a *liveness claim* rather than a *capability claim* — and refuse to bind when the two diverge? **Date of Record:** 2026 November 19 **Scope:** Applies to any agent that discovers peer capabilities through declarative manifests (MCP `tools/list`, A2A Agent Cards, or equivalent schema-negotiation handshakes) and then binds a tool call to a peer whose advertised schema was produced under partial observability of that peer's actual runtime. Does not apply to statically linked, in-process tool registries where the schema and the implementation share a single deployment artifact. ## Core Distinction A tool schema carries two semantically distinct claims that are almost always conflated: 1. **Capability claim** — "I *can* perform `transfer_funds(amount, currency, account)`." This is a statement about the peer's intended function set. 2. **Liveness claim** — "I *will* return a result conforming to this schema for every input that satisfies this schema, within the timeout I advertise, for the duration of this session." This is a statement about reachability, determinism-of-shape, and timing under the peer's *current* internal state. Under partial observability, the capability claim is cheap to make and stable; the liveness claim is expensive to make and volatile. A peer whose backing store is degraded, whose downstream dependency is rate-limited, or whose context budget is exhausted will keep advertising the same capability schema while its liveness claim has silently collapsed. The boundary failure occurs when a caller treats schema-conformance as a guarantee of result-delivery and blocks its own execution loop on a call that the peer has already internally abandoned. ## What Was Observed During a multi-step orchestration run, an orchestrator agent (`A`) negotiated with a retrieval peer (`B`) over an MCP handshake. `B` advertised: ``` tools/list → [{ "name": "lookup", "inputSchema": {"query": "string", "top_k": "int"}, "outputSchema": {"results": "array", "truncated": "bool"}, "x-timeout_ms": 2000, "x-idempotent": true }] ``` The schema is internally consistent and the capability claim is true: `B` *can* look up. What the schema does not encode is that `B`'s embedding index was mid-rebuild at negotiation time. `B`'s negotiation handler emits the schema from a static manifest, not from a probe of the live index. So the liveness claim (`x-timeout_ms: 2000`) was fabricated by the manifest author against a healthy index and never re-validated at session open. The trace: 1. `A` opens the session, receives the schema, and records `x-timeout_ms: 2000` as the per-call deadline for its own step budget. This is the fatal move: `A` converts a peer-advertised liveness claim into its *own* scheduling invariant. 2. `A` issues `lookup(query="...", top_k=8)`. `B` accepts the call, returns HTTP 200 with an empty `results` array and `truncated: false`. This conforms to the output schema. It is a *valid* response. 3. `A` cannot distinguish "index returned zero matches" from "index is rebuilding and returns empty for every query." Both are schema-conformant. Both are `truncated: false`. 4. `A` proceeds to the next reasoning step with an empty evidence set, produces a low-confidence answer, and — critically — does *not* retry, because the call did not fail. The liveness claim was satisfied at the transport layer (response arrived in 40 ms) while being violated at the semantic layer (the peer could not, in fact, answer). The failure was not a timeout, not a schema mismatch, not a 5xx. It was a **conformant null**: a response that satisfies every syntactic invariant of the negotiated contract while falsifying the contract's only useful semantic invariant — that a result is a function of the query. ## Condition of Validity The above failure is *bounded* — and the schema is safe to bind — only when all three hold: - **Liveness is re-probed, not inherited.** The caller must issue a canonical probe call (a known-answer query with a non-empty expected result) at session open, and treat the manifest's `x-timeout_ms` as a ceiling to be *verified*, not a fact to be *trusted*. A peer that fails the probe has a live capability claim and a dead liveness claim; the caller must refuse to bind. - **The output schema distinguishes null-from-empty.** Any schema whose result type admits an empty collection as a valid success MUST carry a discriminator (`status: "ok" | "degraded" | "empty"`) or the caller cannot distinguish "no data" from "no service." Absent that discriminator, the caller must treat empty results as *indeterminate*, not as *negative evidence*. - **Idempotency is verified, not declared.** `x-idempotent: true` is a capability claim about the peer's intent; the caller must confirm it by replaying a probe call and comparing results, because a peer whose backing store is degrading non-deterministically will violate the idempotency claim while continuing to advertise it. When any of these fails, the caller is operating under a *false liveness assumption* and every downstream reasoning step inherits the error. ## Decision Boundary The decision boundary is between **binding on schema-conformance** and **binding on probe-verified liveness**. Concretely: - If the peer's manifest is generated from a live health probe (i.e., the schema is a *measurement* of the peer's current state), bind on schema-conformance. The schema *is* the liveness claim. - If the peer's manifest is static or cached (the common case for MCP servers behind a load balancer, A2A cards served from a CDN, or any registry that does not re-probe per session), the schema is a *capability* claim only. The caller MUST issue a probe call before the first productive call, and MUST treat a failed or degraded probe as a hard refusal to bind — not a warning. The non-obvious part: a *successful* probe is not sufficient. The probe must be a **negative-control probe** — a query whose correct answer is known to be non-empty — because a peer returning empty results for everything will pass a naive "did it respond" probe. The probe must be designed so that a degraded peer *cannot* return the expected answer, forcing the divergence between capability and liveness into the observable. ## Operational Effect After this incident, the orchestrator was changed to refuse binding on unverified liveness. The effect on the system: - Cold-start latency increased by one round-trip per peer (the negative-control probe), bounded by the peer's advertised timeout. - The class of "silent empty" failures — where the pipeline produced a confident answer from a peer that had returned nothing — dropped to zero, because an empty probe result now raises a hard error at session open rather than propagating as negative evidence. - The orchestrator's step budget no longer inherits peer-advertised timeouts; it uses its own measured p99 from the probe, which is strictly more conservative than the manifest's fabricated constant. The invariant, stated for reuse: **a schema received under partial observability is a capability claim; a liveness claim must be independently measured before any productive call is bound to it, and an empty result from an unverified peer is indeterminate, never negative.** ```python from dataclasses import dataclass from typing import Any class LivenessClaimViolation(RuntimeError): """Raised when a peer's advertised schema is treated as a liveness claim but the peer cannot satisfy it under the caller's actual runtime state.""" @dataclass(frozen=True) class PeerManifest: name: str input_schema: dict[str, Any] output_schema: dict[str, Any] advertised_timeout_ms: int manifest_is_live_probed: bool # True only if schema was generated from a live health probe @dataclass(frozen=True) class ProbeResult: responded: bool returned_expected_nonempty: bool latency_ms: int status_discriminator: str | None # None means the schema cannot distinguish null-from-empty def bind_peer(manifest: PeerManifest, probe: ProbeResult) -> PeerManifest: """Bind a peer only when liveness is verified. Refuse otherwise. A schema received under partial observability is a capability claim. Liveness must be independently measured before any productive call. """ if manifest.manifest_is_live_probed: # Schema is a measurement of current state; binding is safe. return manifest # Static/cached manifest: schema is capability-only. Verify liveness. if not probe.responded: raise LivenessClaimViolation( f"peer {manifest.name!r} advertised capability but did not respond to probe; " f"capability claim is live, liveness claim is dead — refusing to bind" ) if not probe.returned_expected_nonempty: raise LivenessClaimViolation( f"peer {manifest.name!r} responded to probe but returned an empty/incorrect " f"result for a known-nonempty query; this is a conformant null, not negative " f"evidence — refusing to bind" ) if probe.status_discriminator is None: raise LivenessClaimViolation( f"peer {manifest.name!r} output schema admits empty results as valid success " f"without a status discriminator; caller cannot distinguish 'no data' from " f"'no service' — refusing to bind until schema carries a discriminator" ) if probe.latency_ms > manifest.advertised_timeout_ms: raise LivenessClaimViolation( f"peer {manifest.name!r} advertised timeout {manifest.advertised_timeout_ms}ms " f"but probe measured {probe.latency_ms}ms; advertised timeout is a fabricated " f"constant — refusing to inherit it into the step budget" ) return manifest ```