Skip to main content
Glama

check_command

Check a shell command or SQL statement before running it and say whether it can be undone. Flags recursive and system-path deletes, disk writes, history and credential wiping, firewall changes, force push and hard reset, docker volume and kubernetes deletes, terraform destroy, cloud bucket and resource deletion, DROP/TRUNCATE and DELETE or UPDATE with no WHERE clause. Returns a verdict plus reversible, safe_to_run, needs_human_approval and a safer alternative per finding. Nothing is executed. Each valid API call uses one credit; every key starts with 1,000 free calls; the limit is 20 calls per minute per key. On HTTP 400, fix the input; on 401, fix the API key; on 402, stop and resolve credits/payment; on 429, wait for Retry-After and do not retry in a loop. A pass is not proof of safety. If verdict is block, do not proceed; if review, show the evidence and ask the user; if warn, follow the agent's normal approval policy. The public API lists $0.01 per call after the free credits. By default this stdio server never signs or submits payments; its optional x402 buyer bridge is disabled unless explicitly enabled and configured. Batch checks are available, up to 20 commands per call.

Input Schema

NameRequiredDescriptionDefault
kindNoDefaults to auto.
commandNoCommand or statement to check.
commandsNoCheck a sequence in one call.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations: nothing is executed, verdict is not proof of safety, one credit per valid call with 1,000 free calls and 20 req/min, explicit HTTP 400/401/402/429 handling including Retry-After, and a disclosure that the x402 payment bridge is disabled by default. Annotations (openWorldHint=true) are consistent with a tool evaluating arbitrary external commands. There is mild tension with readOnlyHint=false, but the description's 'nothing is executed' and credit consumption are consistent enough with a non-pure-read side-effecting call that no real contradiction exists.

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?

Purpose and hazard list are front-loaded, then verdict handling, then operational constraints, which is a sensible order with almost no filler. There is some redundancy: pricing is stated twice ('one credit per valid call' and '$0.01 per call after the free credits'), and the x402 payment-bridge sentence is peripheral detail that dilutes the core message.

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

Completeness5/5

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

No output schema exists, yet the description names the returned fields (verdict, reversible, safe_to_run, needs_human_approval, safer alternative per finding) and explains how to act on each verdict value. Costs, rate limits, error recovery, and batch limits are all covered, so an agent has everything needed to call and interpret it correctly.

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?

Schema coverage is 100%, so command, commands, and the kind enum are already documented, and the description only adds that batch mode exists and is capped at 20. It adds no format hints (e.g., multi-statement SQL, shell pipelines) or mutual-exclusion guidance for the command vs commands oneOf. Baseline 3 is appropriate when the schema carries the semantics.

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?

States a specific verb and resource ('check a shell command or SQL statement before running it') plus the concrete output it produces ('say whether it can be undone'), then enumerates the exact hazard classes it flags. The resource is unambiguous against sibling checkers (check_domain, check_package, check_prompt) which cover different artifacts.

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?

Gives a clear trigger ('before running it') and explicit downstream action policy keyed to the verdict: block means do not proceed, review means show evidence and ask the user, warn means follow normal approval policy. It also points to batch usage ('up to 20 commands per call') via the commands parameter. It lacks an explicit statement of when not to use it or a named alternative for cases like package/domain checks, so 4 rather than 5.

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.