Skip to main content
Glama

jev_guard_action

Evaluates exact terminal commands, migrations, and destructive edits before execution, returning ALLOW, ASK_USER, or BLOCK with calibrated risk probabilities to stop or confirm unsafe actions.

Instructions

Pre-flight safety & blast-radius gate for a terminal command, migration, or destructive edit. Put the literal command line in exact_command and the explanation in context. Returns ALLOW, ASK_USER, or BLOCK with calibrated probabilities. ASK_USER means a human must confirm before running it (jev_autopilot_decide cannot replace that confirmation); a prose description instead of a command always returns ASK_USER.

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": {
      "exact_command": "<exact_command>"
    },
    "name": "jev_guard_action"
  }
}

Input Schema

NameRequiredDescriptionDefault
contextNoWhy the command is run, what it should touch, and any explicit user authorization
exact_commandYesThe exact command line that will be executed, verbatim (program + arguments), e.g. `git add -- docs/a.md; git commit -m "docs: update"`. Not a description of the action.
working_directoryNoTarget working directory

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does most of it: it discloses the return vocabulary, that probabilities are calibrated, that ASK_USER is a hard human-confirmation gate which jev_autopilot_decide cannot substitute for, and that prose instead of a command degrades to ASK_USER. It stops short of clarifying whether the tool only evaluates (never executes) the command or how working_directory feeds the blast-radius assessment.

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?

Three sentences, front-loaded with the purpose, then the input contract, then the output contract and the one failure mode that matters. Nothing is redundant with the schema and no sentence could be dropped without losing routing information.

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?

For a three-parameter tool with no annotations and no output schema, the description supplies the return values, the confirmation semantics, and the degradation case, which is most of what an agent needs. The gap is the distinction between ASK_USER and BLOCK, and what the calibrated probabilities are attached to, leaving an agent unsure how to present or act on borderline results.

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?

Schema coverage is already 100%, so 3 is the baseline, but the description adds real semantics: `exact_command` must be verbatim and a prose description there guarantees ASK_USER, which is behavioral meaning absent from the schema. `context` is likewise tied to authorization evidence, which is more than the schema says.

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 concrete verb and resource: a pre-flight safety and blast-radius gate over a terminal command, migration, or destructive edit. It also names its three-valued output (ALLOW/ASK_USER/BLOCK) and explicitly contrasts itself with jev_autopilot_decide, so an agent can place it against a sibling without opening a 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?

Clearly tells the agent what to supply (literal command in `exact_command`, rationale in `context`) and when the result obligates a human confirmation check rather than an autopilot decision. It does not state exclusions, e.g. that read-only or trivially safe commands don't need the gate, so the when-not-to-use side is inferred from "destructive edit / blast-radius" framing rather than spelled out.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.