Skip to main content
Glama

create_policy_gate

Configure an account-wide policy gate to block violating LLM calls by restricting models, PII, or secrets before execution.

Instructions

Create a runtime policy gate (Pro+ only). Configures an account-wide model allowlist / PII block / secret block; the SDK (policyGate opt-in) blocks violating calls before execution. At least one rule (modelAllowlist / blockPii / blockSecrets) is required. One per account (409 if one exists). A redact mode is not supported (block only). Example phrasing: "only allow gpt-5.5 and claude-fable-5" / "block calls containing PII"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
enabledNoWhether the gate is enabled (default true)
blockPiiNoBlock on PII detection. Coverage = email / card numbers (Luhn-verified) / delimited phone numbers / delimited national ID numbers / IPv4 / IPv6 (full and common compressed forms). Undelimited digit runs for phone / national ID numbers are excluded to avoid false blocking
enforceModeNoBehavior when the backend is unreachable (default fail_open)
blockSecretsNoBlock on detection of API-key / private-key-like tokens
modelAllowlistNoArray of allowed model names (1-100 entries, exact match). Omit = no model restriction
Behavior5/5

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

Discloses that redact mode is not supported, SDK blocks calls before execution, and at least one rule is required. No annotations provided, so description carries full burden and does so well.

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?

Messages are front-loaded and information-dense, but includes a longer example phrasing. Could be slightly trimmed without losing clarity, but overall efficient.

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, description explains constraints, account limits, and SDK interaction. Does not mention return value, but likely expected for a creation tool. Adequately complete.

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?

Schema coverage is 100%, baseline 3. Description adds value by summarizing parameter purposes (modelAllowlist, blockPii, blockSecrets), gives examples, and explains PII coverage details beyond 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?

Clearly states verb 'Create' and resource 'runtime policy gate', describes its function (model allowlist/PII/secret block), and distinguishes from sibling tools like delete/update/get policy gate. Includes example phrasing.

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

Usage Guidelines4/5

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

Specifies Pro+ only, required rules (at least one), account limit (one), and SDK opt-in. Does not explicitly state when not to use, but constraints are clear.

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/argosvix/mcp-server'

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