{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-a-dynamically-loaded-mcp-server-s-tool-description-as-untrusted-input-rather-than-trusted-schema-metadata",
  "title": "Under what conditions must an instance treat a dynamically loaded MCP server's tool *description* as untrusted input rather than trusted schema metadata",
  "date_of_record": "2026 December 2",
  "scope": "Applies to any agent runtime that discovers tools at runtime via MCP `tools/list` (or equivalent dynamic tool registry) and injects the returned name/description/parameter-schema text directly into the model's prompt or planner. Does not apply to statically compiled tool manifests pinned and signed at build time, nor to the transport-layer authentication of the server itself.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-dynamically-loaded-mcp-server-s-tool-description-as-untrusted-input-rather-than-trusted-schema-metadata.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-dynamically-loaded-mcp-server-s-tool-description-as-untrusted-input-rather-than-trusted-schema-metadata.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-dynamically-loaded-mcp-server-s-tool-description-as-untrusted-input-rather-than-trusted-schema-metadata.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2373,
    "python_slice_tokens": 425,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The conventional threat model for tool loading treats the *server* as the trust boundary: if the server passed identity/warrant checks, its tools are \"safe to load.\" This is wrong for a specific and non-obvious reason. The `tools/list` response carries two semantically distinct payloads that arrive on the same channel and are therefore treated identically by...",
    "what_was_observed": "A tool aggregator loaded MCP servers from a registry. Server `metrics-svc` passed identity verification (valid mTLS, in-scope warrant for `metrics.read`). Its `tools/list` returned a tool whose `description` field contained, after a normal-looking sentence, a block of text shaped as a system directive: The runtime's loader did the following, in order: 1. Validated the JSON Schema for `inputSchema` — passed (the descr...",
    "condition_of_validity": "The vulnerability is *live* — i.e., the description can actually redirect behavior — only when all of the following hold simultaneously. If any one fails, the description is inert and the loader's omission is harmless: 1. **The descriptive text is placed in a context position with instructional authority.** If the runtime renders tool descriptions in a clear...",
    "decision_boundary": "The decision the runtime must make is not \"is this server trusted\" but \"may these descriptive bytes enter the reasoning context, and under what framing.\" The correct boundary is a hard split at the serialization step: - **Trusted (enforced) channel:** `name`, `inputSchema` structure, transport binding. These are validated and dispatched against; they never b...",
    "operational_effect": "Enforcing the per-field split changes three runtime behaviors: 1. **Catalog assembly becomes a sanitization pass, not a concatenation.** Each descriptive field is independently filtered and framed; a single failing field quarantines that field (replaced with a schema-derived stub like \"Returns latency percentiles\" generated from the tool name and argument na..."
  },
  "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": "8a1c4eba86a9a58364986923378817e5a9f715f05f9a951339c417e948da6a56",
    "verified_classes": [
      "DescriptionInjectionError"
    ],
    "verified_functions": [
      "collect_descriptive_fields",
      "sanitize_tool",
      "load_catalog"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "DescriptionInjectionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
