Skip to main content
Glama

guarded_stage

Checks and stages a goal run's guarded call without executing it, so the Quarterdeck goals plugin can review or approve the action before it runs.

Instructions

Checks and stages a goal run's guarded call (the guard plugin's guarded_run); never runs it. For the quarterdeck-goals plugin only: agents and the model must not call this.

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": {
      "run_id": "<run_id>",
      "command": "<command>"
    },
    "name": "guarded_stage"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesNoEvery file the command needs, in full
run_idYes
commandYesThe command as the run would make it, naming its files by the paths given in files
dry_runNoCheck only: stage nothing and record no check
run_scopeNoA goal run passes its run id here; anyone else leaves it out.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.32.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. It does disclose the crucial trait that the call is staged but never executed, which prevents a costly misinterpretation, but it says nothing about what staging persists, whether it is reversible, what permissions are required, or what the caller receives.

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?

Two short sentences with zero filler; the core behavior ('checks and stages... never runs it') is front-loaded ahead of the audience restriction.

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

Completeness3/5

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

For a five-parameter internal tool with no annotations and no output schema, the definition states purpose and audience but leaves the mechanics of staging, side effects, and results unexplained. The schema covers most parameters, which keeps this from being a larger gap.

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 80%, so the schema already explains files, command, dry_run, and run_scope in detail. The description adds no per-parameter meaning beyond framing the whole call as a 'guarded call', which the schema fields already convey.

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?

The description names a specific verb pair and resource: 'Checks and stages a goal run's guarded call (the guard plugin's guarded_run)'. The added 'never runs it' cleanly separates it from an execution tool such as run_goal, though the sibling guard_check is never referenced to sharpen the distinction.

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?

It gives an explicit exclusion ('agents and the model must not call this') and a scope restriction ('quarterdeck-goals plugin only'), which is stronger than most definitions. What's missing is a positive condition describing when the tool should be used and which sibling to use instead.

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