Skip to main content
Glama
infraveilhq

infraveil-guard

Official
by infraveilhq

guard_action

Check any command, SQL, or tool call before it runs. If blocked, human approval via CLI is required.

Instructions

Check an action BEFORE you run it. Pass the exact command, SQL statement, or tool invocation you are about to execute.

Returns JSON with proceed (true/false). If proceed is false and decision is "blocked", the action is dangerous and a human must approve it out of band: tell the user to run infraveil-guard approve <action_id> in their own terminal, then call this tool again with the one-time approval_code they give you. You cannot approve your own action. Every decision is recorded in a local tamper-evident ledger.

action: the exact command/SQL/tool call about to run (required). approval_code: the one-time code a human produced via the CLI (optional).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYes
approval_codeNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description fully discloses the tool's behavior: it returns proceed true/false, a 'blocked' decision requires human approval via CLI, the agent cannot self-approve, and every decision is recorded in a tamper-evident ledger. Minor omissions include potential error scenarios or side effects beyond logging.

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 is concise and well-structured: a lead sentence summarizing purpose, then return format, workflow details, and parameter explanations. Every sentence adds value without redundancy.

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 the tool's complexity (pre-check with approval workflow), the description covers the core flow and return structure. It lacks details on error handling (e.g., invalid action format) but the output schema likely covers return fields. The description is sufficient for correct tool invocation.

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?

Despite 0% schema description coverage, the description adds meaningful semantics for both parameters: 'action' is defined as the exact command/SQL/tool call to check, and 'approval_code' as the one-time code from human CLI approval. This compensates for the schema's lack of description.

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 explicitly states 'Check an action BEFORE you run it' and details the return value and workflow, clearly distinguishing it from siblings like assess_action (which likely evaluates risk) and recent_decisions (which lists decisions).

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 specifies when to use the tool ('before you run it') and provides a step-by-step workflow for handling blocked actions and approval codes. However, it does not explicitly compare against sibling tools or mention when not to use it.

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/infraveilhq/infraveil-guard'

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