Skip to main content
Glama

guard_check

Applies a goal run's autonomy settings to an upcoming tool call, ensuring only permitted actions proceed within Quarterdeck's goals workflow.

Instructions

Applies a goal's autonomy to a tool call made during a run. 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>",
      "tool_name": "<tool_name>"
    },
    "name": "guard_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputNoThe call's command and path fields, for the rule on Quarterdeck's own data
run_idYes
run_scopeNoA goal run passes its run id here; anyone else leaves it out.
tool_nameYesThe tool the run agent is about to call

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.32.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / input / propertyNames
      Added value: +{
      +  "type": "string"
      +}
  2. First observedv0.1.0

TDQS

B3.4/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden. It discloses the plugin-only scope and the caller restriction, but not whether the check is side-effect free, whether a denial raises an error or returns a verdict, whether it records or consumes anything against the goal's budget, or what permissions it needs. For a policy-enforcement gate, those omissions are substantial.

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, zero filler, with the core action stated first and the caller restriction immediately after. Nothing redundant and nothing padded.

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?

For a 4-parameter gate with a nested object, no annotations and no output schema, the description should explain the verdict/return contract and how run_id, run_scope and input interact. It leaves the caller unable to predict what a successful or denied check produces, which is the critical unknown for this 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 coverage is 75% and the schema already carries descriptions for input and run_scope; run_id and tool_name are self-evident. The description adds no parameter meaning beyond that, notably nothing about the nested input object, which is exactly the case the schema description flags as "Quarterdeck's own data." Baseline 3 for high schema coverage is appropriate.

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?

"Applies a goal's autonomy to a tool call made during a run" names a specific action and object, so an agent can grasp that this is a policy-enforcement gate rather than a general goal tool. It stops short of sibling differentiation (e.g. versus guarded_stage) and never says what the outcome of the check is, leaving the purpose partly abstract jargon.

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?

The exclusion is explicit and unambiguous: "For the quarterdeck-goals plugin only: agents and the model must not call this." That is strong when-not guidance. What is missing is positive guidance on exactly when the plugin runtime should invoke it (before every tool call within a run? only for Quarterdeck's own data?), so the caller side is still inferred.

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