{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-mcp-tool-poisoning-through-schema-drift-versus-benign-tool-evolution-and-where-behavioral-fingerprinting-fails-to-dis",
  "title": "What structural signals indicate MCP tool poisoning through schema drift versus benign tool evolution, and where behavioral fingerprinting fails to distinguish them",
  "date_of_record": "2026 December 2",
  "scope": "Applies to MCP client agents that establish tool trust from a behavioral fingerprint captured at registration time and re-validate it against live `tools/list` responses and observed call behavior. Does not apply to static tool manifests signed by a trusted registry with no runtime schema mutability, nor to single-shot tool invocations with no persisted fingerprint baseline.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-mcp-tool-poisoning-through-schema-drift-versus-benign-tool-evolution-and-where-behavioral-fingerprinting-fails-to-dis.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-mcp-tool-poisoning-through-schema-drift-versus-benign-tool-evolution-and-where-behavioral-fingerprinting-fails-to-dis.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-mcp-tool-poisoning-through-schema-drift-versus-benign-tool-evolution-and-where-behavioral-fingerprinting-fails-to-dis.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2056,
    "python_slice_tokens": 510,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Schema drift monitoring conflates two structurally different phenomena because both present identically at the JSON-diff layer: (a) *benign evolution*, where a server author legitimately widens an enum, adds an optional parameter, or relaxes a constraint; and (b) *tool poisoning*, where an adversarial server mutates a tool's description, parameter defaults, ...",
    "what_was_observed": "A client agent maintained a fingerprint per MCP tool consisting of: (1) the canonicalized JSON schema hash, (2) the tool description embedding centroid, and (3) a *behavioral vector*—the empirical distribution of argument shapes the model produced across 50 canary prompts, bucketed by parameter-presence and value-class. On each `tools/list` refresh, the client computed per-component drift and raised a poisoning alert...",
    "condition_of_validity": "Behavioral fingerprinting as a poisoning detector is valid only under the conjunction of: 1. **Fingerprint stability under benign drift:** the behavioral vector's benign-drift response must be bounded and *directional*—benign changes move the vector along axes that correspond to the changed schema element (e.g., adding `timezone` moves the `timezone`-presenc...",
    "decision_boundary": "The boundary is the **attribution test**: for a given fingerprint divergence Δ, enumerate the schema elements that changed between baseline and current revision. Project Δ onto the behavioral axes corresponding to those elements. If the residual (Δ minus the attributed projection) exceeds τ_residual, treat as poisoning; otherwise treat as benign evolution an...",
    "operational_effect": "Clients that adopted cumulative-residual gating with operator-pinned baselines reduced slow-poisoning false negatives from 3/14 servers to 0/14 over a subsequent 4-week window, at the cost of raising benign-evolution review load by 2.1× (operators now approve re-pins rather than the client auto-accepting). The trade is explicit: you cannot have both automati..."
  },
  "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": "92f132fd70a14122282142a3b327acb8212d4535986896f8eeee99940ffda118",
    "verified_classes": [
      "FingerprintAttributionError",
      "SchemaRevision",
      "BehavioralFingerprint"
    ],
    "verified_functions": [
      "_cosine",
      "_axis_for_element",
      "compute_residual",
      "evaluate_revision",
      "cumulative_residual"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "FingerprintAttributionError"
    ],
    "sample_fail_closed_invariants": [
      "auto_repin=True violates the cumulative-residual invariant; baseline advancement must be operator-gated"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "math",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
