Skip to main content
Glama

Review changes

review
Read-only

Ask an agent to inspect a diff read-only: uncommitted changes against a base ref (default HEAD) or a task's worktree changes using task_id.

Instructions

Ask an agent to review a diff (read-only): uncommitted changes vs base (default HEAD), or a task's worktree changes via task_id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
baseNogit ref, e.g. main
agentYesAgent name from list_agents, e.g. 'codex' or 'claude'.
modelNo
task_idNotask_id from start_task
workdirNo
instructionsNo
output_schemaNoOptional JSON Schema; the reply is returned parsed as `structured`.
fallback_agentsNoAgents to try in order if this one is out of quota or unavailable.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.2

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=true, so the safety profile is covered. The description repeats '(read-only)' and adds only the default base (HEAD) and the task-worktree mode; it says nothing about agent invocation latency, quota/fallback behavior, or what a review returns.

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?

The entire description is one front-loaded sentence with no filler. It delivers the tool's action, safety note, and both operating modes compactly.

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 an 8-parameter tool with no output schema and no annotation coverage of return behavior, the description explains the two core modes but omits what the review returns, how agent/fallback selection works, and any constraints around model, workdir, or instructions. It is adequate but leaves important context gaps.

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 63%, so the baseline is 3. The description adds meaning for base (default HEAD) and task_id (task worktree changes), but leaves agent, model, workdir, instructions, output_schema, and fallback_agents entirely to the schema or unexplained.

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 clearly states a specific verb and resource ('review a diff') and scopes it with two modes: uncommitted changes vs base, or a task's worktree changes. It is distinct from simply fetching a diff, but it never names any sibling tool (e.g., get_task_diff or ask) to make the differentiation explicit.

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 tells the agent when to use which mode: base for uncommitted changes (default HEAD) or task_id for a task's worktree. It does not provide exclusions or name an alternative tool for when a simple diff retrieval is sufficient, so it falls short of the 5-level 'when-not/alternatives' standard.

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