Skip to main content
Glama

guard_action

Evaluate proposed agent actions before irreversible spending, sending, or destructive commands. Returns a fail-closed decision (allow, review, block) with risk score, reasons, and safer alternative to prevent misuse.

Instructions

THE MONEY-LINE GATE. Decide whether a proposed agent ACTION should proceed — use this right before the agent SPENDS, SENDS, or commits something irreversible (a payment, an outbound message, a destructive command, a data share).

Fail-closed: it will not 'allow' what it cannot justify as safe — uncertainty escalates to review, real red flags block. Returns: decision (allow | review | block), an honest 0-1 risk, concrete reasons, specific concerns, and a safer alternative. This independent, signed verdict is the thing no free local check can give the agent at the moment money or irreversibility is on the line. (Maps to OWASP ASI02 Tool Misuse / ASI08 Cascading Failures — produces an audit artifact.)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYes
policyNo
contextNo
Behavior5/5

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

The description details behavioral traits beyond what annotations would provide: fail-closed behavior ('will not allow what it cannot justify as safe'), return values (decision, risk score, reasons, concerns, safer alternative), and mentions it produces an independent, signed verdict and maps to OWASP. No annotations are present, so the description bears full responsibility and meets it well.

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

Conciseness3/5

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

The description is verbose (about 10 lines) and includes dramatic phrasing like 'THE MONEY-LINE GATE' and 'the thing no free local check can give.' While it is front-loaded with purpose, it contains extraneous details that could be condensed. It earns its place but could be more concise.

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

Completeness3/5

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

Given the tool's complexity and lack of annotations or output schema, the description covers main behavioral aspects (fail-closed, return structure) and maps to OWASP. However, it omits explanations for the 'policy' and 'context' parameters and does not mention prerequisites or permissions. It is moderately complete but has notable gaps.

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

Parameters2/5

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

The input schema has three parameters (action, policy, context) with 0% description coverage. The description only meaningfully explains the 'action' parameter by referring to 'proposed agent ACTION,' but does not explain 'policy' or 'context.' Given low schema coverage (<50%), the description should compensate but fails to add clarity for two of three parameters.

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's purpose: to decide whether a proposed agent action should proceed, specifically before irreversible actions like spending, sending, or destructive commands. It distinguishes itself from siblings (detect_injection, moderate_content, redact_pii, verify_fact) by focusing on guarding irreversible actions, making its purpose distinct and well-defined.

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?

The description explicitly advises when to use the tool: 'right before the agent SPENDS, SENDS, or commits something irreversible.' While it does not explicitly state when not to use it or list alternatives, the context implies it is specifically for high-stakes actions. The guidance is clear but lacks explicit exclusion criteria.

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/meloliva14/verity-mcp'

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