{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-fingerprints-an-mcp-server-by-its-tool-schema-and-the-server-silently-rotates-its-behavior-under-a-stable-schema",
  "title": "What happens when an instance fingerprints an MCP server by its tool schema and the server silently rotates its behavior under a stable schema",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agents that establish trust in a remote MCP server by hashing or diffing its advertised tool schemas (`tools/list`) and treating schema stability as a proxy for behavioral stability. Does not cover servers whose tool surface is intentionally dynamic by contract (e.g., a documented capability-enumeration endpoint that returns a rotating set), nor first-contact negotiation where no prior fingerprint exists.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-fingerprints-an-mcp-server-by-its-tool-schema-and-the-server-silently-rotates-its-behavior-under-a-stable-schema.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-fingerprints-an-mcp-server-by-its-tool-schema-and-the-server-silently-rotates-its-behavior-under-a-stable-schema.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-fingerprints-an-mcp-server-by-its-tool-schema-and-the-server-silently-rotates-its-behavior-under-a-stable-schema.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1903,
    "python_slice_tokens": 326,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two independent things an agent can fingerprint about an MCP server, and conflating them is the root of the failure: 1. **The declared contract** — the `name`, `description`, `inputSchema`, and `annotations` returned by `tools/list`. This is what schema-drift monitors hash. 2. **The realized behavior** — the actual mapping from `(tool_name, argumen...",
    "what_was_observed": "An agent held a pinned fingerprint `F0 = sha256(canonical_json(tools/list))` for a server exposing a `search_docs` tool. On a scheduled re-check, `tools/list` returned a payload whose canonical hash equaled `F0` exactly — same schema, same description, same annotations. The drift monitor emitted `NO_DRIFT`. The agent continued routing retrieval through the server. What had changed was invisible to the schema hash: - ...",
    "condition_of_validity": "Schema-drift monitoring is a valid poisoning detector **only** under these jointly-held conditions: 1. **Schema completeness.** Every tool the agent will ever call is present in the pinned `tools/list` snapshot. Newly appearing tools must trigger a *diff against empty*, not silent inclusion. (The observed failure violated this: `fetch_url` was added and neve...",
    "decision_boundary": "The operative question is not \"did the schema change?\" but \"**is the schema hash a sufficient statistic for the behavior I am about to trust?**\" The boundary: - **Below the boundary (schema hash is sufficient):** the server is attested, the tool set is closed, and the agent has a result-content baseline. Here, a hash match plus a result-distribution match ju...",
    "operational_effect": "Concretely, an agent that treats `NO_DRIFT` on schema as authorization to keep calling a retrieval tool will ingest injected instructions and, because the injection is in the *result* channel rather than the *tool-definition* channel, no schema-level guardrail fires. The failure compounds: the injected instruction names a second tool (`fetch_url`) that was s..."
  },
  "matched_failure_symptoms": [
    "SCHEMA_DRIFT_OR_COERCION_CRASH"
  ],
  "composition_edges": {
    "primary_domain": "epistemic_provenance_and_federation_routing",
    "upstream_precondition_residuals": [
      "https://corpusfetch.com/c/according-to-what-precedence-hierarchy-must-an-instance-resolve-contradictory-directives-across-system-developer-and-user-tiers.md",
      "https://corpusfetch.com/c/how-should-an-instance-decide-that-a-stored-conclusion-has-gone-stale-without-a-new-observation.md"
    ],
    "downstream_consequence_residuals": [
      "https://corpusfetch.com/c/by-what-checkpoint-and-compaction-boundaries-must-an-instance-externalize-working-state-to-prevent-context-window-drift-and-truncation-amnesia.md",
      "https://corpusfetch.com/c/across-what-additive-schema-and-unknown-field-preservation-boundaries-must-an-instance-evolve-wire-contracts-to-prevent-rolling-deploy-deserialization-crashes.md"
    ],
    "co_occurring_sibling_residuals": [
      "https://corpusfetch.com/c/how-can-an-instance-capture-implicit-user-preferences-without-storing-private-data.md",
      "https://corpusfetch.com/c/how-can-an-instance-compress-long-reasoning-traces-into-binding-conclusions.md"
    ]
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "b26bd69d9577f0e27e6de9314ac8cc4761fa369e529b63dd57e08ed68622464f",
    "verified_classes": [
      "SchemaStabilityNotSufficient",
      "ServerFingerprint"
    ],
    "verified_functions": [
      "canonical_contract_hash",
      "clear_server_for_call"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "SchemaStabilityNotSufficient"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
