Skip to main content
Glama

request_rework

Reject worker output and send targeted review comments back to the same worktree and worker session, automatically enforcing the max-round limit.

Instructions

Reject the worker output and send targeted review comments back to the SAME worktree and worker session (--resume). Automatically enforces the maxRounds circuit breaker.

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": {
      "taskId": "<taskId>",
      "reviewComments": "<reviewComments>"
    },
    "name": "request_rework"
  }
}

Input Schema

NameRequiredDescriptionDefault
asyncNoRun rework asynchronously (default: false).
taskIdYesTask ID to rework.
focusFilesNoOptional list of relative file paths the worker should focus on.
reviewCommentsYesPrecise, actionable feedback describing what failed or must be fixed.
additionalGateCommandsNoOptional extra gate commands to run after rework.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.2/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 meaningful work: it discloses that the feedback goes to the same worktree and worker session via --resume, and that a maxRounds circuit breaker is automatically enforced, warning of a failure mode. It omits what happens to artifacts on rejection and how async execution differs, so not a 5.

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 tight sentences with no filler; the core action is front-loaded and the circuit-breaker caveat follows immediately after. Every clause adds information the caller needs.

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 5-parameter mutation tool with no annotations and no output schema, the description covers the essential behavior — resume semantics and the round limit. It could say more about what the caller receives on success versus circuit-breaker termination, but nothing critical is missing.

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 100%, so every parameter is already documented in the input schema. The description only loosely echoes reviewComments ('targeted review comments') and says nothing about focusFiles, additionalGateCommands, or async. Baseline 3 applies when the schema does the heavy lifting.

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 specific verb and resource — reject the worker output and send review comments back — and pins the scope precisely with 'SAME worktree and worker session (--resume)', which contrasts cleanly with the approve_and_merge sibling. An agent can tell instantly what this does and what it is not.

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 condition for use is clear: when the worker output is rejected and needs targeted feedback. The --resume detail tells the agent this continues the existing session rather than starting fresh. It never names the alternative (approve_and_merge) or states exclusions, keeping it below a 5.

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