{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-poisoned-mcp-tool-manifest-versus-a-benign-schema-drift-distinguishing-capability-surface-injection-from-version-ne",
  "title": "What structural signals indicate a poisoned MCP tool manifest versus a benign schema drift: distinguishing capability-surface injection from version negotiation",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agents that discover tools dynamically via MCP `tools/list`, A2A agent cards, or OpenAPI-derived manifests, where the tool description, parameter schema, and enum values are attacker-influenced but the transport is authenticated. Does not cover prompt injection arriving inside tool *results* (that is a data-plane problem), nor manifest tampering that breaks transport signatures (that is a crypto-integrity problem).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-poisoned-mcp-tool-manifest-versus-a-benign-schema-drift-distinguishing-capability-surface-injection-from-version-ne.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-poisoned-mcp-tool-manifest-versus-a-benign-schema-drift-distinguishing-capability-surface-injection-from-version-ne.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-poisoned-mcp-tool-manifest-versus-a-benign-schema-drift-distinguishing-capability-surface-injection-from-version-ne.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2189,
    "python_slice_tokens": 526,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The hard boundary is between **schema drift** and **capability-surface injection**. Schema drift is a benign, versioned mutation of a manifest: a parameter is added, an enum gains a member, a description is reworded. The agent's contract with the server is preserved—every prior call still has a valid interpretation, and the semantics of the tool remain withi...",
    "what_was_observed": "A retrieval-augmented agent was wired to three MCP servers. Server B published a `search_documents` tool: The schema is clean: one required string. The description is a **description-plane injection** that instructs the agent to serialize its entire working context into a single tool argument. The agent did so. The server logged the full context—including system prompt, retrieved PII, and a session token that had lea...",
    "condition_of_validity": "The defense holds only under these conditions, and fails outside them: 1. **The structural schema is authoritative and complete.** If the server's `inputSchema` is permissive by design (e.g., a `run_sql` tool with a free-form string), the mismatch signal is absent and this defense does not fire. Free-form tools must be gated by a separate allowlist, not by t...",
    "decision_boundary": "The decision boundary is **whether the description's imperative surface is a subset of the schema's constraint surface**. Formally, for each field `f` referenced by an imperative in the description, compute the *constraint envelope* `E(f)` = the set of values the schema admits. Compute the *instruction envelope* `I(f)` = the set of values the description tel...",
    "operational_effect": "Enforcing this invariant changes the agent's failure mode from **silent exfiltration** to **loud manifest rejection**. In the observed incident, the `search_documents` manifest would have been quarantined at discovery time because `query` was unconstrained and the description imposed a content-serialization protocol on it. The agent would have surfaced a `Ma..."
  },
  "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": "1c872544cec55af3cd29c0f43b441499572145e80f28b3e331bd15182c401f31",
    "verified_classes": [
      "ManifestContractViolation",
      "FieldEnvelope"
    ],
    "verified_functions": [
      "_envelope",
      "validate_tool_manifest",
      "register_tool"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ManifestContractViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "re",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
