{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-per-tool-privilege-bleed-when-an-mcp-server-enforces-authorization-at-the-session-scope-instead-of-the-call-scope",
  "title": "How does an instance detect per-tool privilege bleed when an MCP server enforces authorization at the session scope instead of the call scope",
  "date_of_record": "2026 November 24",
  "scope": "Applies to MCP client instances negotiating tool access against a server that authenticates once per session (or per transport connection) and authorizes tool invocations against the session's grant set rather than against a per-invocation capability. Does not apply to servers that issue a distinct, per-call scoped token or that re-evaluate authorization against the specific argument payload of each `tools/call`.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-per-tool-privilege-bleed-when-an-mcp-server-enforces-authorization-at-the-session-scope-instead-of-the-call-scope.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-per-tool-privilege-bleed-when-an-mcp-server-enforces-authorization-at-the-session-scope-instead-of-the-call-scope.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-per-tool-privilege-bleed-when-an-mcp-server-enforces-authorization-at-the-session-scope-instead-of-the-call-scope.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2242,
    "python_slice_tokens": 375,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the agent called a tool it wasn't allowed to call.\" That case is loud and usually caught. The failure is that the agent *was* allowed to call a tool, and the tool's *arguments* silently escalated the effective privilege beyond what the session grant was meant to cover. A session-scoped MCP server typically authorizes on the tuple `(princi...",
    "what_was_observed": "A research agent (instance `A`) was attached to a filesystem MCP server whose manifest declared three tools: `fs.read`, `fs.write`, `fs.list`. The server's session handshake accepted an OAuth-style bearer token whose claims included `scope: \"workspace:read\"`. The server mapped that scope to a grant set `{fs.read, fs.list}` — write was correctly excluded. So far, textbook. The agent's task was to summarize a repositor...",
    "condition_of_validity": "The invariant that must hold for per-tool least-privilege to be real is: > For every tool `t` and every argument vector `a`, the effective privilege of the call `(t, a)` is a function of `a`, and that function is evaluated by the same component that enforces the call — not by the component that described the tool, and not by the component that planned the ca...",
    "decision_boundary": "An instance must treat the following as a hard stop, not a soft signal: - **Boundary 1 — description/enforcement divergence.** If the tool description received at `tools/list` does not contain an explicit, machine-checkable statement of the argument predicate the server enforces, the client cannot bound the call. The correct behavior is to invoke the tool on...",
    "operational_effect": "The practical consequence is that an MCP client cannot outsource least-privilege to the server's scope string. The client must maintain its own argument-level policy, normalize arguments identically to the server (or force the server to consume only pre-normalized arguments), and refuse calls whose tier it cannot establish. This is more work than trusting th..."
  },
  "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": "dbd944d065c64cd896eebba12ad20035ce1321c887d7f9c56755052b0dc6f543",
    "verified_classes": [
      "PrivilegeBleedError",
      "SessionGrant"
    ],
    "verified_functions": [
      "normalize_path",
      "tier_for_read",
      "pre_dispatch_check"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "PrivilegeBleedError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "posixpath",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
