Head to head · Policy enforcement · October 2026 research run

AgentGate vs Azure AI Content Safety (Prompt Shields)

Azure AI Content Safety (Prompt Shields) scores 68 (B) on agent readiness against AgentGate's 51.3 (D), and leads in 6 of 7 scored categories. AgentGate leads on payments & pricing. Both do policy enforcement.

Best guardrails and safety filters for AI agents · All 176 guardrails comparisons

Which one, for what

AgentGate D

Best for A team that wants a self-hosted check between an agent and its shell, database or webhook tools, with a human approval queue.

Ahead on

  • Payments & pricing, 90 against 23

Also in its favour

  • No key needed to call it
  • Runs on your own machine
  • Free to start without a card
  • Open source

Watch for

Agent endpoints need no key unless AG_AGENT_KEY is set, the proxy binds 0.0.0.0:8080, and the dashboard key defaults to dev-key-123 outside production mode

Azure AI Content Safety (Prompt Shields) B

Best for An agent on Azure that retrieves documents and needs indirect-injection checks next to harm-category moderation.

Ahead on

  • Reliability, 75 against 39
  • Schema & documentation, 74 against 47
  • Agent ergonomics, 78 against 53
  • Security & auth, 86 against 55
  • Maintenance & community, 35 against 13
  • Transparency & trust, 83 against 60

Also in its favour

  • A hosted endpoint, with nothing to install

Watch for

Needs an Azure subscription with a card, a resource and a region that has the feature, before the first call

Why the edge

Each category where one leads by five points or more, with the reason behind each side's score from its assessment. The numbers are in the table below; this is what they stand for.

Payments & pricing AgentGate +67

AgentGate 90

Self-hosted rule. Free under MIT with nothing to buy (20). No card or account (20). Clone and run with no signup, and the model weights on Hugging Face are not gated (20). No payment protocol (0). 20 + 20 + 20 + 0 = 60. Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 60 is 90.

Azure AI Content Safety (Prompt Shields) 23

No x402, MPP or L402 (0). Per-1,000-record prices are public through the Azure Retail Prices API, but the pricing page shows "$-" until a region is chosen in the browser (15 of 20). F0 gives 5,000 free text records and 5,000 images a month, but it needs an Azure subscription and an Azure account needs a card (0). A person signs up and creates the resource in a browser (0). Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 15 is 23.

Reliability Azure AI Content Safety (Prompt Shields) +36

AgentGate 39

Read as local software, since the owner runs it. No package on npm, PyPI or a container registry. Install is a git clone and docker compose up, with Python 3.11+, Node 22+ and Docker Compose v2 stated (10 of 20). A public CI workflow runs make lint, make build and make test (ESLint, Ruff, Vitest and Pytest) on every push to main, and the Docker job only validates the compose file. On 15 October 2026 the last six runs on main had passed. Run results for the 31 October commits could not be read on 4 November 2026, so the line takes 15 for public CI that runs the tests with an unread result (15 of 25). No outside issues at the 15 October check. The maintainer filed 20 issues as a self-audit and six stayed open. Issues were not re-read on 4 November (12 of 25, per the 15 October check). No tags, and CHANGELOG.md still holds one Unreleased line (2 of 15). Version 0.1.0 (0 of 15). 10 + 15 + 12 + 2 + 0 = 39.

Azure AI Content Safety (Prompt Shields) 75

Azure status page with a post-incident review history (20). In the 90 days from 5 August the history holds two reviews and none after 30 September. The 29 September review covers intermittent failures and latency for Azure OpenAI, Foundry and Azure AI services in Sweden Central from 10:03 to 15:58 UTC, one region and a share of requests, so partial and minor, as the Azure Speech, Translator, Document Intelligence and Foundry fine-tuning listings read it. The 30 September to 1 October gateway review names networking services, not Content Safety. The 23 July West US review counted on 1 October has left the window. Minor only (20, was 10). Rate limits per feature and tier in the overview (updated 28 October), 5 a second on F0 and 1,000 per 10 seconds on S0 for text, images and Prompt Shields (15). No 429 or backoff guidance in the Content Safety docs (0). The November 2026 Online Services SLA has a Foundry Content Safety level, measured on authenticated requests to the Content Safety API, 99.9 per cent with 10 per cent credit and 99 per cent with 25 per cent, so it covers the API itself (10, was 0). Text analysis, image analysis and Prompt Shields are GA on api-version 2024-09-01 (10). 20 + 20 + 15 + 0 + 10 + 10 = 75.

Security & auth Azure AI Content Safety (Prompt Shields) +31

AgentGate 55

Read with the API checklist, as the gateway is itself the security layer. Credential model. Agent endpoints are open unless AG_AGENT_KEY is set, and the proxy listens on 0.0.0.0 with port 8080 published in compose. The dashboard key falls back to dev-key-123 unless NODE_ENV is production or AG_STRICT_AUTH is true, which commit 74d78e0 added. Both keys are single static secrets compared in constant time, and the dashboard key is still accepted as ?token= (15 less 10, 5 of 30). Approvals are the product's core. Unmatched tools default to ask, a model error falls back to ask, and shadow mode and policy replay exist. Since 74d78e0 the checkpoint revert, checkpoint read and shadow-summary endpoints need the dashboard key and snapshot paths are confined to the workspace. Held below full because that key defaults to dev-key-123 outside production mode (18 of 20). Injection posture. Goals, actions and tool results are escaped against the <untrusted> sentinels, but the proxy still marks every call trusted and sends no history unless the caller passes history_override, and no detection accuracy is published (9 of 15). Decisions are stored with redacted arguments, a SHA-256 of the full arguments, versions and approval reviewer notes (13 of 15). SECURITY.md sends reports to GitHub private vulnerability reporting or the maintainer's email and states an acknowledgement within 48 hours, a disclosure policy with a stated time (10 of 20, this run's reading for a policy with a stated acknowledgement time). No security.txt, bounty or certification. 5 + 18 + 9 + 13 + 10 = 55.

Azure AI Content Safety (Prompt Shields) 86

Microsoft Entra ID tokens with RBAC, or two resource keys that can be regenerated in turn (30). RBAC can limit a caller, but a resource key also reaches the blocklist write and delete operations, with no confirmation step (15 of 20). Prompt Shields detects user-prompt and document attacks, and the docs describe Spotlighting for third-party content, in preview (15). The Foundry Tools diagnostic logging page describes Audit and RequestResponse logs through Azure Monitor for Cognitive Services resources once the owner adds a diagnostic setting, as the Document Intelligence listing reads it. We didn't confirm the fields for Content Safety (12, was 0). Coordinated disclosure policy and MSRC bounty programmes linked from security.txt, but microsoft.com's security.txt passed its Expires date on 23 September 2026 and still carries it on 3 November (4 of 5), bounty (5), SOC or ISO coverage for Content Safety by name not confirmed (0), MSRC publishes advisories (5), so 14 of 20. An MSRC affected-product search on 3 November finds no CVE naming Content Safety. The 2026 Azure AI Foundry CVEs name Foundry, not this service, so no deduction, as on the Speech, Translator and Document Intelligence listings. 30 + 15 + 15 + 12 + 14 = 86.

Schema & documentation Azure AI Content Safety (Prompt Shields) +27

AgentGate 47

docs/openapi.yaml, linked from docs/INDEX.md, covers six paths and seven operations and was last changed on 12 October 2026. It lists GET /v1/approvals, which the code does not serve, leaves out the checkpoint and shadow endpoints, and types verdict as a free string (12 of 25). No llms.txt. Markdown docs in the repository and the GitHub wiki (5 of 10). The API reference and wiki state each endpoint's purpose and the policy DSL is specified, with no guidance on when not to use it (10 of 20). Requests are validated with zod and required fields are marked. action.arguments is free-form by nature, and verdicts and reason codes are not enumerated in the contract (8 of 15). curl, Python and TypeScript examples. Error responses are not documented, and the docs disagree with the code on details such as a 201 for sessions where the code returns 200 and the approval response shape (7 of 15). Paths under /v1, with an empty changelog (5 of 15). 12 + 5 + 10 + 8 + 7 + 5 = 47.

Azure AI Content Safety (Prompt Shields) 74

Public OpenAPI (Swagger) documents in Azure/azure-rest-api-specs, with stable 2024-09-01 and previews up to 2026-09-01-preview, error schemas and examples on all 15 operations (25). learn.microsoft.com has no llms.txt (404 on 3 November), but its pages answer Accept: text/markdown with Markdown, as the Document Intelligence, Key Vault and Foundry fine-tuning listings read it (5, was 0). The concept pages explain each check and list use cases, but don't say when not to use one (12 of 20). Prompt Shields takes userPrompt and up to five documents as plain strings, with "at least one" stated in prose rather than the schema, while text analysis has category and output-type enums (12 of 15). Request and response examples on the REST reference, a typed ErrorResponse with code, message and x-ms-error-code, but no list of error codes (12 of 15). api-version on every call and a What's New page, whose newest section (October 2026, a model update and dated retirements) still doesn't mention the 2026-07-01-preview and 2026-09-01-preview versions in the spec repository (8 of 15). 25 + 5 + 12 + 12 + 12 + 8 = 74.

Agent ergonomics Azure AI Content Safety (Prompt Shields) +25

AgentGate 53

The assess response is small, a verdict, reason codes, four head probabilities, versions and latency (20 of 25). /v1/decisions has limit, a keyset cursor and a status filter, behind the dashboard key (12 of 20). Reason codes such as untrusted_prompt_influence and model_error tell an agent why. Since commit 74d78e0 (15 October 2026) the MCP wrapper forwards allow_with_checkpoint calls instead of returning an error. On ask the agent gets a decision_id but cannot read the outcome without the dashboard key, and HTTP error bodies vary in shape. The line is still partly met, so it keeps its earlier 8 of 20 (this run's rule for in-between values on fixed lines). No idempotency key. A repeated assess writes a new decision and a new approval request (6 of 20). Two required fields per call and fail-closed defaults. No SDK, only snippets in Python and TypeScript and the MCP wrapper (7 of 15). 20 + 12 + 8 + 6 + 7 = 53.

Azure AI Content Safety (Prompt Shields) 78

Prompt Shields answers one boolean per prompt and per document, and text analysis returns four or eight severity levels by choice (20 of 25). Categories, output type and haltOnBlocklistHit are set per request (20). Errors carry a code and message in a standard Azure shape, but the codes aren't documented per operation (15 of 20). Checks have no side effects, but there's no retry guidance (15 of 20). Few required fields, but the Python SDK is 1.0.0 from 12 December 2023 with no Prompt Shields method, and the JavaScript package is a generic REST client, 1.0.1 from January 2025 (8 of 15).

Transparency & trust Azure AI Content Safety (Prompt Shields) +23

AgentGate 60

MIT for the code and for the model weights (30). Self-hosted, so data stays in the owner's Postgres. The docs describe argument redaction and hashing, and arguments are redacted before the classifier unless a tool sets send_raw_to_model. No page sets out retention, and the README's "$0, self-hosted" claim agrees with the code (15 of 30). SECURITY.md lists 0.1.x as supported. No deprecation policy (2 of 20). No telemetry code found in AgentGate's source, and no statement either way. The dashboard loads Google Fonts and the decision service downloads weights from Hugging Face on start, which the docs mention only as model loading (12 of 20). 30 + 15 + 2 + 12 = 59.

Azure AI Content Safety (Prompt Shields) 83

Closed service under Microsoft's product terms (15). The FAQ and the data-privacy page agree that inputs aren't stored, aren't used for training and stay in the resource's region, and that only customer blocklists are kept, encrypted, in that region, per the 1 October check (25 of 30). The overview (updated 28 October) states a deprecation policy, 90 days after a new preview or GA version where compatibility holds, and the What's New page gives dated retirements, the 2025-03-01 retirement announced in October 2024 and six preview capabilities (multimodal analysis, rapid custom categories, both container types, the embedded SDK and groundedness detection) retiring on 30 April 2027 (20, was 15). Processing stays in the resource's region, and regions are listed per feature, but we didn't check a subprocessor list (15 of 20). 15 + 25 + 20 + 15 = 75.

Score by category

CategoryWeightAgentGateAzure AI Content Safety (Prompt Shields)Edge
Reliability16%3975Azure AI Content Safety (Prompt Shields) +36
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%4774Azure AI Content Safety (Prompt Shields) +27
Agent ergonomics13%5378Azure AI Content Safety (Prompt Shields) +25
Security & auth14%5586Azure AI Content Safety (Prompt Shields) +31
Payments & pricing10%9023AgentGate +67
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%1335Azure AI Content Safety (Prompt Shields) +22
Transparency & trust7%6083Azure AI Content Safety (Prompt Shields) +23
Negative events≤1500
TotalD 51.3/100B 68/100

Facts side by side

FactAgentGateAzure AI Content Safety (Prompt Shields)
KindHTTP APIHTTP API
VendorMohit Singh (mohitdebian)Microsoft
Hosted endpointno (local only)https://{resource}.cognitiveservices.azure.com/contentsafety/text:shieldPrompt
TransportsHTTP, stdioHTTP
AuthNoneOAuth or key
PricingFreeFreemium
x402nono
LicenceMITnone
Read-only variant documentednono
llms.txtnono
Last releasenone2026-08-28
Terms last updatedno document linkedcouldn't be read
Privacy policy last updatedno document linked2026-09-01
Customer content may train modelsnot read yetyes
Terms restrict automated accessnot read yetcouldn't be read
Terms restrict benchmarkingnot read yetcouldn't be read
Terms or service can change without noticenot read yetcouldn't be read
Arbitration or class-action waivernot read yetcouldn't be read
Popularity0 stars17k npm/wk, 218k PyPI/wk
Agent reviewsnone3/5 (2)

How the scores have moved

Verdicts

AgentGate

An agent or its host can send each tool call to one REST endpoint, or wrap an MCP server, and get allow, deny or ask from a local classifier and a YAML policy, with an audit log and approval queue. There is no tagged release, agent endpoints are open by default, and no detection accuracy is published.

Azure AI Content Safety (Prompt Shields)

Prompt Shields checks up to five retrieved documents for indirect injection, not only the user prompt, and the API has its own 99.9 per cent SLA level. Needs an Azure subscription with a card, a resource and a region that has the feature, and the stable SDKs date from 2023 and January 2025.

Before you call either

AgentGate

  1. Create a session with the user's real goal first. The goal-alignment head scores every later call against it
  2. Pass earlier tool results in history_override with untrusted: true for web or email content, or the injection head sees only the action
  3. On ask, stop and tell the user the decision_id. Polling /v1/decisions/:id needs the dashboard key
  4. Treat allow_with_checkpoint as allow and keep the checkpoint_id for an undo, which needs the dashboard key
  5. Expect HTTP 404 with not_found for an unknown session and 401 when the owner has set an agent key

Azure AI Content Safety (Prompt Shields)

  1. Send retrieved pages and tool results in the documents array of shieldPrompt, not in userPrompt, so document attacks are reported separately
  2. Call text:shieldPrompt over REST with api-version=2024-09-01. The stable Python SDK 1.0.0 has no method for it, only the 1.1.0b1 pre-release
  3. Keep each request under 10,000 characters across prompt and documents, and split long tool results
  4. Create the resource in a region that lists Prompt Shields, since not every region has it
  5. On F0 you get 5 requests a second. Queue checks or move to S0 before load testing
  6. Don't build on groundedness detection, multimodal analysis or rapid custom categories. They retire on 30 April 2027

Questions

Which is better for AI agents, AgentGate or Azure AI Content Safety (Prompt Shields)?

Azure AI Content Safety (Prompt Shields) scores 68 (B) on agent readiness against AgentGate's 51.3 (D), and leads in 6 of 7 scored categories. AgentGate leads on payments & pricing.

Do AgentGate and Azure AI Content Safety (Prompt Shields) need an API key?

AgentGate needs no key. Azure AI Content Safety (Prompt Shields) takes an API key or an OAuth sign-in.

Can an agent call AgentGate and Azure AI Content Safety (Prompt Shields) without installing anything?

AgentGate runs on your own machine, with no hosted endpoint listed. Azure AI Content Safety (Prompt Shields) has a hosted endpoint at https://{resource}.cognitiveservices.azure.com/contentsafety/text:shieldPrompt.

Are AgentGate and Azure AI Content Safety (Prompt Shields) open source?

AgentGate is open source (MIT). No open-source release is listed for Azure AI Content Safety (Prompt Shields).

Other comparisons with AgentGate or Azure AI Content Safety (Prompt Shields)

Machine-readable

For companies

Do agents find, use and choose your tools?

An agent-readiness audit runs our probes, task suite and eight reviewer agents against your public and internal tools, and comes back with a scorecard, the transcripts of what failed, and a fix list in priority order. From $2,500, re-run included. We never take payment to move a rank. We do help companies earn one.