Skip to main content
Glama

check_command

check_command
Read-onlyIdempotent

Call before executing a shell or SQL command, especially destructive or irreversible ones: returns risk, reversibility and whether human approval is required.

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.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true, so safety is covered; the description adds the crucial framing that this is a pre-flight gate rather than the execution itself. Because there is no output schema, naming the returned fields (risk, reversibility, human approval required) supplies genuine contract information. It does not discuss latency, batch behavior, or what 'human approval required' implies operationally.

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?

One sentence, front-loaded with the triggering action, then the returned signals. No filler and no redundancy with the title or schema.

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 usefully enumerates the three return signals an agent needs to decide whether to proceed. It is nearly complete for a simple pre-check tool; only the batch ('commands') path and result granularity per command are unaddressed.

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 description coverage is 100%, so the input schema already documents kind, command, and commands (including the 1-20 batch limit). The description only alludes to shell/SQL kinds via the words 'shell or SQL command' and adds no detail on single vs. batch use, so the baseline 3 applies.

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 ('Call before executing a shell or SQL command') plus what the call yields ('risk, reversibility and whether human approval is required'). Within a family of check_* tools, this one clearly scopes itself to shell/SQL command execution, so an agent can distinguish it without opening the schema.

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?

Explicitly says when to call it ('before executing a shell or SQL command, especially destructive or irreversible ones'), which is a clear trigger condition. It stops short of naming when-not conditions or a concrete alternative path when the check is skipped, so it falls just under the full bar.

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.