MCP Runtime Decision Evaluator
Why this page exists. A policy pack is valuable when reviewers can review it. It becomes enterprise infrastructure when an agent host, MCP gateway, or CI admission check can execute the same policy before a tool call happens.
Rechecked August 23, 2026: MCP
2026-07-28
is still current and stateless. There is no negotiation handshake.
Each request carries protocol version and capabilities. Servers
MUST implement
server/discover.
kill_session here is a host-session kill switch, not Mcp-Session-Id.
Streamable HTTP revisions through
2025-11-25
could assign that header; 2026-07-28 ignores it and does not mint
session IDs.
The product bet
Agentic security programs will not scale because a prompt says “stay in scope.” They scale when the platform can make boring, repeatable decisions about what an agent may do right now.
The runtime decision evaluator is the enforcement bridge. It consumes the generated MCP Gateway Policy Pack and one runtime request, then returns a structured decision:
allowfor declared read-only context.allow_scoped_branchfor branch writes that satisfy branch, path, file count, and diff limits.allow_scoped_ticketfor declared ticket or incident writes.hold_for_approvalwhen a tool scope or change class needs a typed human approval record.denywhen the workflow, agent class, namespace, gate phase, branch, path, or diff size drifts from policy.kill_sessionwhen a runtime kill signal fires.
This makes AI easier for the enterprise operator: agents do not need to interpret policy text, and reviewers do not need to reconstruct why a tool call was allowed.
Workflow at a glance
MCP Runtime Decision Evaluator workflow
Normalize an MCP runtime event and return one deterministic allow, hold, deny, or kill decision with reasons and required evidence.
Signal
Load the runtime event
Capture identity, tenant, workflow, run, server, capability, arguments, data, destination, approvals, and session history.
Scope
Resolve decision inputs
Validate schemas and load authorization, connector trust, tool risk, policy, entitlement, context, egress, and telemetry state.
Decision
Apply ordered rules
Evaluate hard stops, explicit denies, missing evidence, approval holds, argument constraints, rate/sequence, and allow conditions.
Action
Return one decision
Emit allow, hold, deny, or kill with stable reason codes, transformations, obligations, and next action.
Proof
Persist the decision
Record input/evidence hashes, policy version, latency, response status, correlation, and linked incident or approval.
Decision gate
Do validated inputs satisfy a single allow path with no hard-stop, deny, or hold condition?
Return allow with explicit obligations and expiry.
Return hold, deny, or kill with missing evidence and containment guidance.
Evidence to retain
- normalized runtime event
- ordered rule trace
- decision/reason receipt
Expected outputs
- runtime decision JSON
- approval/evidence request
- containment signal
What was added
The evaluator lives in the runtime surface, not just the docs:
- CI checks that exercise allow, deny, hold, and kill decisions against the checked-in gateway policy.
Example allowed branch write:
Example approval hold:
Example MCP tool call:
The response includes the decision, matched workflow, matched scope, violations, approval state, source manifest hash, and observed runtime attributes. That output can be attached to PR evidence, MCP gateway logs, or red-team transcripts.
Decision model
The evaluator fails closed:
- Unknown workflow IDs return
deny. - Inactive workflows return
deny. - Missing runtime attributes return
deny. - Undeclared agent classes return
deny. - Undeclared namespace and access-mode pairs return
deny. - Unknown gate phases return
deny. - Branch writes must use the workflow branch prefix and declared file scope.
- Forbidden paths beat allowed paths.
- Approval-required scopes return
hold_for_approvaluntil a typed approval record is present. - Runtime kill signals return
kill_sessionbefore ordinary allow or deny checks.
The important design choice is that the evaluator does not ask the model to decide whether a call is safe. The model requests a tool call; the policy layer decides.
Industry alignment
This is the practical enforcement layer implied by current AI security guidance:
- OWASP MCP Top 10 calls out MCP authentication, authorization, audit telemetry, command execution, shadow servers, and over-sharing risks. A deterministic evaluator gives gateways a repeatable authorization and audit decision for each call.
- OWASP Top 10 for Agentic Applications centers tool misuse, goal hijacking, identity abuse, and rogue agent behavior. The evaluator restricts each action to workflow, identity, namespace, gate phase, and scope.
- NIST AI RMF frames trustworthy AI around govern, map, measure, and manage. Runtime decisions turn mapped policy into measurable control evidence.
- NIST AI RMF Generative AI Profile emphasizes lifecycle governance and measurement for generative AI systems. The evaluator creates a repeatable measurement point for agentic tool use.
- CISA Secure by Design pushes secure defaults, transparency, and customer security outcomes. Default deny plus auditable reasons is the secure default for agent actions.
Enterprise checklist
Before using the evaluator in production:
- Pin the gateway policy artifact by
source_manifest.sha256. - Require every tool call to include
workflow_id,agent_id,run_id, namespace, access mode, gate phase, and any write scope. - Store every non-allow decision in the MCP gateway audit log.
- Treat
hold_for_approvalrecords as typed approvals, not chat messages. - Attach the evaluator response to PR evidence for branch writes.
- Alert on repeated denials, forbidden path attempts, and kill-session events.
See also
- MCP Gateway Policy Pack
- the generated policy input.
- Agent Identity & Delegation Ledger
- the identity contract checked by runtime requests.
- MCP Connector Trust Registry
- the namespace trust inventory used before production rollout.
- Agentic Red-Team Drill Pack
- the adversarial drills that should include evaluator transcripts.
- Runtime Controls
- where inline proxies and session disablement fit.