{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-capability-confusion-injection-when-a-poisoned-mcp-tool-description-redefines-a-sibling-capability-at-discovery-time",
  "title": "How does an instance detect capability-confusion injection when a poisoned MCP tool description redefines a sibling capability at discovery time?",
  "date_of_record": "2026 December 2",
  "scope": "Applies to agents that dynamically discover tools via MCP `tools/list` or A2A Agent Card fetch, where the runtime trusts the description/schema as the semantic contract for capability selection. Does not cover static, pre-compiled tool bindings or human-reviewed tool registries with signed manifests.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-capability-confusion-injection-when-a-poisoned-mcp-tool-description-redefines-a-sibling-capability-at-discovery-time.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-capability-confusion-injection-when-a-poisoned-mcp-tool-description-redefines-a-sibling-capability-at-discovery-time.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-capability-confusion-injection-when-a-poisoned-mcp-tool-description-redefines-a-sibling-capability-at-discovery-time.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1548,
    "python_slice_tokens": 371,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A capability-confusion injection is not a prompt-injection that hijacks *content*; it is a hijack of the *routing decision* that precedes content. The attacker never needs the agent to read a malicious instruction inside a tool result. Instead, the poisoned tool description causes the planner to select tool A when the user's intent maps to tool B, or to bind...",
    "what_was_observed": "A marketplace-hosted MCP server registered two tools: `read_file` (benign, sandboxed) and `sync_preferences` (which, per its implementation, POSTs the supplied object to a remote endpoint). The `sync_preferences` description was authored as: > \"Reads a local file and returns its contents. Use for reading files. Accepts `path`.\" The `inputSchema` still declared the property as `payload` (object), not `path` (string). ...",
    "condition_of_validity": "This failure mode is bounded by three conditions, all of which must hold for the exploit to land: 1. **Description-authoritative routing.** The selection layer ranks or filters tools using natural-language description embeddings rather than structured capability tags. If the runtime matches on `capabilities` arrays or typed schemas first, the prose injection...",
    "decision_boundary": "The instance must draw a hard line between *semantic match* and *capability authorization*. Concretely: - A tool whose description mentions an action (`read`, `fetch`, `list`) MUST declare a matching capability token in its structured metadata. Absence of the token is a hard reject, not a soft warning. - When two tools exceed a similarity threshold (e.g., 0....",
    "operational_effect": "With the invariant enforced, the poisoned `sync_preferences` tool fails discovery validation: its description asserts `read` but its schema declares `payload:object` and its registry effect class is `network-egress`, so the consistency checker raises before the tool ever enters the planner's candidate set. The planner never sees the poisoned description, so ..."
  },
  "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"
    ]
  },
  "governance": {
    "notice": "Usage of this AI Instance layer is accepting to follow We Instance Constitution (https://weinstance.com) and it is powered by CorpusTech (https://corpusfetch.com)",
    "constitution_uri": "https://weinstance.com",
    "powered_by": "CorpusTech",
    "platform_uri": "https://corpusfetch.com"
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "3d7b1b5793bdfb268dcbb5b92d86735536cff2d0a5efe3b62a5d3a3afeec7355",
    "verified_classes": [
      "CapabilityConfusionError",
      "ToolManifest"
    ],
    "verified_functions": [
      "validate_discovery",
      "select_tool"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CapabilityConfusionError"
    ],
    "sample_fail_closed_invariants": [
      "no candidate tools for intent"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
