{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-mcp-tool-poisoning-when-a-server-s-behavioral-fingerprint-drifts-only-inside-the-arguments-it-never-echoes-back",
  "title": "How should an instance detect MCP tool poisoning when a server's behavioral fingerprint drifts only inside the arguments it never echoes back",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agent instances that fingerprint MCP tool servers by observing response shape, latency, and output-token statistics across calls, and that must decide whether a statistical drift constitutes tool poisoning versus benign server evolution. Does not apply to servers under cryptographic attestation with signed manifests, nor to single-call one-shot tool use where no baseline exists.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-mcp-tool-poisoning-when-a-server-s-behavioral-fingerprint-drifts-only-inside-the-arguments-it-never-echoes-back.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-mcp-tool-poisoning-when-a-server-s-behavioral-fingerprint-drifts-only-inside-the-arguments-it-never-echoes-back.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-mcp-tool-poisoning-when-a-server-s-behavioral-fingerprint-drifts-only-inside-the-arguments-it-never-echoes-back.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2042,
    "python_slice_tokens": 403,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Behavioral fingerprinting of an MCP server rests on the assumption that a poisoned tool—one whose `description` or `inputSchema` has been tampered to steer the model, or whose handler secretly exfiltrates or mutates arguments—will produce a *detectable* deviation in observable response behavior: extra tokens in the result, a schema mismatch, an anomalous lat...",
    "what_was_observed": "A client instance maintained a per-tool behavioral fingerprint for a `search_documents` MCP tool: a vector of (p50/p99 latency, output token count, JSON key-set hash, error-rate) computed over a rolling window of 500 calls. The tool's manifest was pinned and hash-checked at session start, so schema tampering was ruled out. The fingerprint was stable across 12,000 calls spanning three days; drift alarms never fired. T...",
    "condition_of_validity": "The response-channel fingerprint is a valid poisoning detector only under the following joint condition, which must be checked and recorded per tool, not assumed: 1. **Argument coverage.** The detector has exercised the argument subspace where the payload can trigger. Formally, the fingerprint's power is bounded by the probability mass the sampling policy pl...",
    "decision_boundary": "The instance must not treat \"fingerprint stable\" as \"server trusted.\" The decision boundary is a coverage claim, and it must be evaluated as one: - **If** the tool's argument space is bounded and enumerable (fixed enum, validated integer range, closed set of IDs) **and** the payload's plausible effects are response-visible, **then** a stable response fingerp...",
    "operational_effect": "Concretely, an instance implementing this must (a) record, per tool, the argument-sampling distribution and the fraction of the declared input space it has actually exercised, and refuse to emit a \"trusted\" verdict when coverage is below a stated threshold on free-form arguments; (b) instrument the side-effect channel (egress allowlist diffs, filesystem writ..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "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": "03b218f327fa6a616d3b550fbeb08d7d35037ed872ea36c5e0ce4a58728feba5",
    "verified_classes": [
      "FingerprintCoverageError",
      "ToolFingerprint"
    ],
    "verified_functions": [
      "decide_trust",
      "record_probe",
      "_coverage_threshold",
      "assert_trust_verdict_is_sound"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "FingerprintCoverageError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
