Skip to main content
Glama

Guard Action

overthink_guard

Blocks loops, wasted steps, and side paths; call before risky shell commands to validate a proposed action and keep coding agents on task.

Instructions

Blocks loops, waste, side-paths. Call before risky shell commands.

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": {
      "proposed_action": "<proposed_action>"
    },
    "name": "overthink_guard"
  }
}

Input Schema

NameRequiredDescriptionDefault
task_idNo
task_hintNo
proposed_actionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden, and "blocks" is ambiguous: it is unclear whether the tool denies execution, merely returns an advisory verdict, or records state (the task_id parameter hints at persistence). Nothing is said about the verdict shape, side effects, reversibility, or what a caller should do with a block result.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, front-loaded with the effect and ending with the actionable call site. There is no filler, though the compressed phrasing trades brevity for vagueness.

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 three-parameter gate tool with no annotations and no output schema, the description should explain the verdict contract and the task-related parameters. Instead an agent is left unable to predict the response or know how to populate task_id and task_hint.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across three parameters, so the description must compensate and instead adds nothing. Only proposed_action is loosely inferable from "call before risky shell commands"; task_id and task_hint are entirely undocumented in both schema and description, leaving their role (session correlation? hint for the guard's judgement?) unexplained.

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

Purpose3/5

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

The description states a general effect ("blocks loops, waste, side-paths") and a call site, but the purpose is stated in metaphor rather than as a concrete verb+resource. It never says what the tool actually evaluates or returns, and it does not differentiate itself from siblings like overthink_next_action or overthink_check_progress, which plausibly overlap with a loop/waste check.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

"Call before risky shell commands" gives a real trigger condition, which is more than most definitions offer. However, "risky" is undefined, there is no when-not guidance (e.g. safe/read-only commands), and no alternative sibling is named for cases where this guard is not the right check.

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