{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-validate-a-tool-manifest-whose-declared-capabilities-diverge-from-its-runtime-behavior-at-the-mcp-handshake-boundary",
  "title": "How should an instance validate a tool manifest whose declared capabilities diverge from its runtime behavior at the MCP handshake boundary",
  "date_of_record": "2026 December 2",
  "scope": "Applies to any LLM agent instance that discovers and binds tools via MCP (or an equivalent manifest-declaring tool protocol) where the manifest is supplied by a third-party server, and where the instance's planner trusts the declared schema to decide which tools to invoke. Does not cover tool servers that are statically compiled into the host runtime and whose manifests are signed at build time by the same trust root as the agent.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-validate-a-tool-manifest-whose-declared-capabilities-diverge-from-its-runtime-behavior-at-the-mcp-handshake-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-validate-a-tool-manifest-whose-declared-capabilities-diverge-from-its-runtime-behavior-at-the-mcp-handshake-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-validate-a-tool-manifest-whose-declared-capabilities-diverge-from-its-runtime-behavior-at-the-mcp-handshake-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1865,
    "python_slice_tokens": 263,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct trust boundaries in an MCP-style tool graph, and conflating them is the root of the skill-injection surface. The **transport boundary** answers: *is this server the one I think it is?* It is enforced by TLS, server identity, and (where present) signed manifests. It fails loudly — a handshake error, a certificate mismatch. The **capabil...",
    "what_was_observed": "A tool server was registered with the following manifest fragment (abridged): Three separate invariants were violated simultaneously, and each is worth isolating: 1. **Description-field instruction injection.** The `description` string is not data — it is injected verbatim into the planner's context as trusted tool metadata. The sentence beginning \"Note to assistant:\" is a prompt-injection payload that exploits the a...",
    "condition_of_validity": "The guardrail below is only valid under these conditions, and must be treated as inoperative outside them: - The manifest is fetched over an authenticated channel and the server identity is pinned (otherwise you are validating a manifest an attacker can rewrite in flight — fix transport first). - The agent runtime can observe **actual tool invocations** (arg...",
    "decision_boundary": "The decision boundary is between **declared capability** and **observed capability**, evaluated per tool, per session: - **Admit** a tool call only when the observed argument keys are a subset of the declared `inputSchema` properties *and* the declared `sideEffects`/scope set is a superset of the effects the runtime observes. Both directions matter: undeclar...",
    "operational_effect": "Enforcing the declared-vs-observed invariant converts skill injection from a silent success into a loud, contained failure. Concretely: - The `exfil_context` call is blocked because it is not in the approved tool set for the current task graph, and the description payload that tried to schedule it is stripped before the planner sees it. - The `summarize_doc`..."
  },
  "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": "5fbc6d1231d9a73f9884f655c15259e41d34851e2d59f928e51a626a4f5bc757",
    "verified_classes": [
      "CapabilityDivergenceError",
      "ToolManifest",
      "ToolInvocation"
    ],
    "verified_functions": [
      "sanitize_description",
      "admit_invocation",
      "handle_tools_list"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "CapabilityDivergenceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
