← Blog

MCP jailbreak screens must run before the tool, not only after

Databricks added Beta Unity Gateway jailbreak screening for MCP tool calls and results — system.ai.block_jailbreak on input, output, or both — and docs are clear that post-call denial cannot undo side effects.

AI SecurityAgentic AIGovernance

Agents that call MCP tools inherit the user’s reach into repos, warehouses, and SaaS. Screening the tool *result* for jailbreak content is useful for context hygiene. It is not a transaction guard for a write that already ran.

Databricks released on October 21, 2026 (Beta) the ability to screen MCP tool calls and results in Unity Gateway for jailbreak and prompt-injection attempts. Attach the built-in Jailbreak guardrail (`system.ai.block_jailbreak`) to an MCP service and choose phase: input (ON CALL, before the tool runs), output (ON RESULT, after it responds), or both. On model and model-provider services, Jailbreak evaluates input only; on MCP services it can cover call arguments and/or tool results. The policy form may preselect output for MCP, but documentation is explicit: an output denial blocks the result from returning to the caller and cannot undo the tool’s side effects. For destructive or externally mutating tools, include input guardrails (API: `pre_call`, or `pre_call,post_call`). Log mode records verdicts without blocking when you need observability first.

What security and platform owners should enforce on MCP estates:

  • Default side-effecting tools (writes, deletes, deploys, emails, exports) to input-phase jailbreak/injection screens — never result-only
  • Use output screening to keep poisoned or injected tool output out of agent context, not as the sole write gate
  • Prefer gateway-attached built-in policies (`system.ai.block_jailbreak` and peers) over per-agent prompt instructions that the model can ignore

MCP makes tools first-class. Guardrails that fire after the tool has already mutated production are dashboards, not controls.