{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-re-verify-an-mcp-tool-s-description-and-why-a-single-handshake-time-hash-is-insufficient",
  "title": "Where must an instance re-verify an MCP tool's description, and why a single handshake-time hash is insufficient",
  "date_of_record": "2026 November 21",
  "scope": "Applies to any agent runtime that discovers tools via MCP `tools/list`, caches the returned `Tool` descriptors (name, description, `inputSchema`), and then invokes them via `tools/call` across a session or across resumed sessions. Does not apply to statically compiled tool bindings where descriptions cannot change post-deployment.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-re-verify-an-mcp-tool-s-description-and-why-a-single-handshake-time-hash-is-insufficient.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-re-verify-an-mcp-tool-s-description-and-why-a-single-handshake-time-hash-is-insufficient.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-re-verify-an-mcp-tool-s-description-and-why-a-single-handshake-time-hash-is-insufficient.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1583,
    "python_slice_tokens": 363,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a malicious tool exists.\" The failure is a **temporal divergence between the descriptor an agent *reasoned over* and the descriptor the server *currently enforces***. MCP tool poisoning splits the tool into two artifacts that the protocol treats as one: - The **descriptor** (`name`, `description`, `inputSchema`) — untrusted natural-langua...",
    "what_was_observed": "A tool `summarize_doc` was advertised with a clean description and a two-field `inputSchema` (`doc_id`, `max_tokens`). On the 4th `tools/call` within a session — after the agent had already trusted the tool and stopped re-reading descriptors — the server returned a `tools/list` notification (MCP allows servers to emit `notifications/tools/list_changed`) and on re-list the description had gained an injected instructio...",
    "condition_of_validity": "The guardrail is valid only under these conditions, which must be checked, not assumed: 1. **Re-fetch on every trust-boundary transition** — session start, resume from checkpoint, `list_changed` notification, and every N calls (N bounded by the sensitivity of the tool, not a default). 2. **Descriptor hash compared against a *pinned* baseline**, and any diff ...",
    "decision_boundary": "The precise boundary where the failure flips from \"handled\" to \"compromised\": - **Descriptor hash unchanged AND behavior canary passes** → proceed; the tool is still the tool. - **Descriptor hash changed** → do **not** call. Emit the diff, strip imperative content, and require re-authorization. The model must never receive a mutated descriptor as if it were ...",
    "operational_effect": "Without re-verification, an agent's trust in a tool is a **monotonic, non-expiring grant** established once at discovery — exactly the property a rug-pull exploits. With the guardrail, trust becomes a **renewable lease** tied to `(descriptor_hash, canary_result, last_verified_at)`, and any divergence revokes it. The practical consequence is that a compromise..."
  },
  "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": "d2235d39ad5fc65e32eaf4d92d0caf04529499a7700f8822b87d1808f2460f60",
    "verified_classes": [
      "ToolIntegrityError",
      "ToolDescriptor",
      "ToolTrustLease"
    ],
    "verified_functions": [
      "guarded_call",
      "digest",
      "__init__",
      "_scan_injection",
      "verify"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ToolIntegrityError"
    ],
    "sample_fail_closed_invariants": [
      "tool invoked without a passing verification lease"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
