ON-PREM CHOREO CLOUD BOTH

What it is

Guardrails are gateway policies that check or limit the traffic of an LLM provider, an LLM proxy or an MCP proxy, for example content filters or rate limits. A policy is saved in the provider or proxy configuration as a name, a version and a list of paths with settings. Agent Manager finds out which policies exist from the gateways themselves.

Guardrails are the rules at a security checkpoint. The checkpoint (gateway) lists the rules it can enforce, and you choose which of them apply to each road (provider or proxy).

Why it exists

Rules about what agents may send to a model or a tool belong at the gateway, so they apply to every agent without changing agent code.

How it works

  • Each gateway pushes the manifest of the policies it has installed to Agent Manager (POST /api/internal/v1/gateways/{gatewayId}/manifest) when it connects to Agent Manager.
  • GET /orgs/{org}/llm-providers/policies and GET /orgs/{org}/mcp-proxies/policies list what is available. A policy counts as available only if every gateway in scope has it.
  • For a provider that is already deployed, the scope is the gateways it is deployed to. If gateways disagree on a policy version, the lowest version is offered.
  • A guardrail is part of the provider or proxy configuration, so adding one goes through the ordinary create or update call (permissions amp:llm-provider:update or amp:mcp-server:update). The permissions amp:llm-provider:configure-guardrail and amp:mcp-server:configure-guardrail exist in the catalog, but no route checks them yet. The configuration is then deployed to the gateways.
  • The service keeps one copy of the latest manifest, in memory by default, and the newest push replaces the old one. With more than one replica of Agent Manager the Redis option is meant to be switched on, so every replica sees the same copy.

Key facts

Catalog source
Manifests pushed by gateways
LLM permission (enforced)
amp:llm-provider:update
MCP permission (enforced)
amp:mcp-server:update
Stored in
The provider or proxy configuration (policies list)
Enforced by
The API Platform Gateway

Talks to (1)