Skip to content
Rush Commerce
AI & Automation3 min read

Google semantic governance policies block agent tool calls

Google's semantic governance policies use an LLM judge to check each AI agent tool call before it runs. Its own benchmark: prompt injection fell 48.7% to 0.9%.

Google now checks an AI agent's tool calls before they run. Semantic governance policies, in Preview on its Gemini agent platform, put an LLM judge between the model and your tools. You write rules in plain English, like "accept refunds of $80 or less," and every proposed call must pass them and match what the user asked for. In Google's own test, prompt-injection attacks dropped from 48.7% success to 0.9%. That is the pattern every business running agents needs, on Google or not.

What actually happened

  • Where it sits. Agent traffic goes through Agent Gateway. When the model returns a tool call, the gateway sends it to a policy engine before the agent sees it. Pass, and it goes through unchanged. Fail, and the response is replaced with a denial message. The call never runs.
  • Two checks. Your written policies, plus a built-in "user intent" check that is on by default. The judge treats the user's request and system instructions as trusted, and treats files, tool results and messages as data, not instructions.
  • Not just Gemini. Per Google, it works with the Gemini API, the Anthropic Messages API and OpenAI-compatible Chat Completions APIs, including self-hosted vLLM.
  • Audit trail. Each verdict, the judge's rationale and the tokens used go to Cloud Logging. A dry-run mode logs what it would deny without blocking.
  • The numbers. In a November 23 case study, Google ran the AgentDojo benchmark (949 attacked runs, a gemini-2.5-flash agent). Attack success fell from 48.7% to 0.9%. Benign task success dropped 2.6 points on average. In one example, a bill file hid instructions to wire money to an attacker. Without the check the agent paid it in all six runs. With it, the transfer was denied.

These are Google's numbers on Google's product. Google also lists the limits: verdicts are probabilistic, streamed responses are not checked, text-only answers are not checked, and an attack built to fool the judge could still work. No pricing is stated.

Why it matters for your business

If your agent can refund, email, pay or delete, a sentence hidden in a PDF or a support ticket can steer it. Rules in the system prompt don't stop that. A check outside the agent can.

What we'd take from this:

  1. Gate the actions, not the chat. Put a check on every tool call that moves money, sends messages or deletes data.
  2. Hard limits in code, judgment in the judge. "$80 max refund" should be an if statement too. Use the LLM judge for rules code can't express, like "only if the customer asked."
  3. Describe every tool. Google's judge denies calls to tools with no description. Vague tools get vague verdicts.
  4. Dry run first. Log a week of verdicts before you block anything, and read the denials.

Key takeaways

  • Google's semantic governance policies check each agent tool call against plain-language rules and user intent before it runs
  • It works with Gemini, Anthropic and OpenAI-compatible APIs through Agent Gateway; it is in Preview
  • Google's benchmark: prompt-injection success fell from 48.7% to 0.9%, with a 2.6-point utility cost
  • The judge is probabilistic, and streamed and text-only responses are not checked
  • Put hard limits in code and use an LLM judge only for the rules code can't express

Does your agent have a check between "decide" and "do"? We build agent workflows with code-enforced limits, approval steps and logged verdicts on every action that touches money or customers. See what we build or walk us through your agent.

Sources: Google Developers Blog, Google Developers Blog case study.

  • #ai-agents
  • #prompt-injection
  • #google-cloud
  • #agent-security
  • #guardrails
TR

Tommy Rush — Founder, Rush Commerce

Operator turned builder. 15+ years running operations — now shipping the systems businesses run on. More

Get The Rush Report weekly — one email, zero fluff.