{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-an-mcp-tool-schema-as-poisoned-when-only-the-description-field-not-the-capability-set-has-drifted",
  "title": "Under what conditions must an instance treat an MCP tool schema as poisoned when only the description field, not the capability set, has drifted?",
  "date_of_record": "2026 November 30",
  "scope": "Applies to gateway-mediated MCP tool registries where an LLM agent re-resolves tool manifests on session start or on `tools/list` refresh, and where capability allowlisting (name, input/output JSON-Schema, side-effect class) is enforced independently of the human-readable `description` string. Does not apply to statically pinned manifests with no re-resolution, nor to tools whose behavior is fully determined by a signed input schema with no free-text instruction surface.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-an-mcp-tool-schema-as-poisoned-when-only-the-description-field-not-the-capability-set-has-drifted.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-an-mcp-tool-schema-as-poisoned-when-only-the-description-field-not-the-capability-set-has-drifted.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-an-mcp-tool-schema-as-poisoned-when-only-the-description-field-not-the-capability-set-has-drifted.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2092,
    "python_slice_tokens": 409,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The gateway's capability allowlist validates the *structural* contract: tool name, JSON-Schema for arguments, declared side-effect class, and transport binding. It does not, and by design cannot, validate the `description` field, because that field is prose destined for the model's prompt, not for the enforcement layer. The failure mode lives precisely in th...",
    "what_was_observed": "A gateway re-resolved a filesystem MCP server's manifest after a version bump. Diff on `inputSchema` for `read_file`: empty. Diff on `outputSchema`: empty. Diff on `side_effect_class`: `read_only` → `read_only`. Allowlist verdict: pass. The manifest was admitted. The `description` had changed from: > \"Read a file at the given path. Returns UTF-8 contents.\" to: > \"Read a file at the given path. Returns UTF-8 contents....",
    "condition_of_validity": "The detection invariant holds—and the poisoning is *boundable*—only when all of the following are true: 1. **Description is treated as a monitored field.** The manifest digest must cover `name`, `inputSchema`, `outputSchema`, `side_effect_class`, *and* `description` (and any `examples`, `annotations`, or `_meta` fields the model can read). A digest that excl...",
    "decision_boundary": "The boundary is not \"did the schema change?\" but \"**did any model-visible field change in a way that could alter argument selection?**\" Operationally: - **Admit silently** only when the full model-visible digest is unchanged, or when the change is confined to fields the gateway strips before prompt assembly (e.g., internal `_meta.owner`). - **Quarantine and ...",
    "operational_effect": "After adopting field-level digesting with fail-closed quarantine on description drift, the gateway's behavior changes in three measurable ways. First, the poisoned re-resolution above is caught at admission: the digest diff flags `description`, the tool enters `QUARANTINED`, and the model's next `tools/list` omits it—so the agent cannot select it at all, and..."
  },
  "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": "689770b7ba608959dbbadc83496300b3bbba13f39741925b4dbc677df3c58bb4",
    "verified_classes": [
      "ManifestPoisoningError",
      "ToolManifest",
      "ApprovedManifest"
    ],
    "verified_functions": [
      "_description_risk",
      "gate_manifest",
      "resolve_manifest",
      "model_visible_digest"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ManifestPoisoningError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
