Skip to main content
Glama

check_action_safety

Verify whether an agent action is safe and complies with active execution invariants before running.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "action": "<action>"
    },
    "name": "check_action_safety"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYesThe action name (e.g. "sql_execute", "file_delete", "api_call").
paramsNoParameters supplied to the action.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior2/5

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

No annotations exist, so the description carries the full behavioral burden, and it omits the most important trait: what the verdict looks like and whether the tool blocks, throws, or merely reports. It also never says whether the check is read-only, whether calls are logged/audited, or what 'active execution invariants' are and where they come from.

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?

A single front-loaded sentence with zero filler; the purpose and the timing constraint are both delivered without preamble.

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

Completeness2/5

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

There is no output schema and no annotations, so the description must explain the result contract for a gating tool an agent will branch on — allowed vs. blocked, reason/invariant violated, and whether execution should proceed. None of that is present, leaving a critical decision-relevant gap for a 2-parameter, nested-object tool.

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 schema already documents both 'action' and 'params'; baseline 3 applies. The description adds one useful but unstated implication — that params should be the same payload about to be executed, not a separate description of it — which it does not actually spell out despite the nested object.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('Verify') and a specific object ('whether an agent action is safe and complies with active execution invariants'), which tells an agent exactly what the tool returns conceptually. It doesn't name or contrast itself with any sibling, though the nearest relative (verify_audit_trail) is distant enough that confusion is unlikely.

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?

'before running' gives explicit timing/context guidance: call this as a pre-execution gate. There are no exclusions, no statement about whether the check is mandatory or advisory, and no mention of what to do when a sibling action tool is used instead.

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.