Skip to main content
Glama

ActionGate

Policy Gate

policy_gate
Read-onlyIdempotent

Apply treasury policy to a proposed action and return allow, deny, or allow-with-limits. Paid via x402 or API key credits. Free tier: 10 policy gate calls/day per client.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actorYesActor metadata for the agent proposing the action.
actionYesAction payload to evaluate. Additional action-specific fields are accepted as passthrough.
policyYesPolicy pack input, including policy_id and any policy-specific override values.
contextNoOptional execution context such as chain state, balances, or treasury metadata.
request_idNoOptional caller-supplied request identifier for tracing and receipts.

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, and non-destructive hints. The description adds valuable behavioral context beyond annotations by disclosing the payment mechanism ('Paid via x402 or API key credits') and rate limits ('Free tier: 10 policy gate calls/day per client'). This helps the agent anticipate costs and usage constraints.

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

Conciseness5/5

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

The description consists of two concise, front-loaded sentences. The first sentence states the core function and return values; the second adds pricing and rate limit context. No wasted words or repetition of schema details.

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?

With no output schema, the description correctly specifies the high-level return values (allow, deny, allow-with-limits). It also includes billing and quota context. However, it does not describe the return object's structure (e.g., whether reasons or metadata are included), which would be helpful for an agent for full understanding, but the current coverage is adequate for basic invocation.

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

Parameters3/5

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

The schema provides 100% coverage with descriptions for all parameters. The tool description does not add parameter-specific semantics beyond what the schema already contains, so it meets the baseline for good schema coverage without exceeding it.

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 uses a specific verb ('Apply') and resource ('treasury policy') and clearly states the outcome ('return allow, deny, or allow-with-limits'). This distinguishes it from sibling tools like 'risk_score' or 'simulate' by defining a distinct decision output.

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 intended use case is implied ('Apply treasury policy to a proposed action'), but the description does not explicitly state when to use this tool versus alternatives, nor does it provide exclusions or when-not-to-use guidance. Sibling tool names offer context but aren't referenced.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

TDQS

A3.8/5.0
Disambiguation5/5

Each tool targets a distinct operation: balance for credit check, request_api_key and top_up for key lifecycle, and policy_gate, risk_score, and simulate for action evaluation. There is no meaningful overlap between any two tools.

Naming Consistency2/5

Tool names follow no consistent pattern: simulate is a bare verb, request_api_key is verb_object, top_up is a phrasal verb, while balance, policy_gate, and risk_score are noun-like compounds. The mix of conventions makes the set feel inconsistent.

Tool Count5/5

Six tools is a well-scoped number for this server's purpose, covering both financial management (balance, top_up, request_api_key) and action evaluation (policy_gate, risk_score, simulate). No tool feels redundant or unnecessary.

Completeness3/5

The server covers the core workflows: creating a key, checking balance, topping up, and evaluating actions. However, it lacks lifecycle operations like revoking or deleting a key, and there is no way to retrieve key details beyond balance, which leaves some gaps.

Resources