Skip to main content
Glama
AiAgentKarl

Agent Policy Gateway MCP Server

apply_guardrails

Check whether an agent action is allowed based on configurable policies including spend limits, domain restrictions, blocked actions, human approval needs, and API rate limits. Returns a decision with reasoning.

Instructions

Prüft ob eine Agent-Aktion gemäß konfigurierbarer Policies erlaubt ist.

Prüft: Spend-Limits, erlaubte Domains, geblockte Aktionen, Aktionen die menschliche Freigabe brauchen, API-Rate-Limits.

Args: action: Die geplante Aktion (z.B. "send_email", "make_purchase") context: Optionaler Kontext mit Details: - amount_usd: Betrag in USD (für Spend-Checks) - domain: Ziel-Domain (für Domain-Checks) - api_calls_this_minute: Aktuelle API-Calls (für Rate-Limits) - custom_policies: Dict mit Policy-Overrides

Returns: allowed: Boolean ob die Aktion erlaubt ist decision: "allow", "deny" oder "require_approval" reason: Begründung der Entscheidung policy_checked: Welche Policy gegriffen hat

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYes
contextNo
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden. It discloses that the tool checks policies and returns a decision, but it does not explicitly state whether the tool is read-only or if it has side effects. The term 'prüft' suggests checking, but safety implications are not clarified.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with sections for parameters and return values, and each sentence adds value. It is front-loaded with the main purpose. Minor redundancy in listing checks after the first sentence, but overall concise.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no output schema and no annotations, the description is fairly complete. It explains return values (allowed, decision, reason, policy_checked) and context fields. For a guardrail tool with 2 parameters, this is sufficient.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema coverage, the description compensates well by detailing the 'action' parameter with examples and explaining the 'context' object fields (amount_usd, domain, api_calls_this_minute, custom_policies). This adds significant meaning beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool checks if an agent action is allowed according to configurable policies, listing specific checks (spend limits, allowed domains, blocked actions, actions needing human approval, API rate limits). This distinguishes it from siblings like check_compliance, check_pii, emergency_stop, etc.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage for any action requiring policy verification but does not explicitly state when to use this tool versus alternatives or when not to use it. No contrast with sibling tools is provided.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AiAgentKarl/agent-policy-gateway-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server