Skip to main content
Glama

review_diff

Read-onlyIdempotent

Analyzes a supplied unified diff to count changed lines, report file and change budgets, and generate a focused test plan without running tests.

Instructions

Count changed lines, report budget, and plan focused tests from supplied unified diff. No tests run.

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": {
      "diff": "<diff>"
    },
    "name": "review_diff"
  }
}

Input Schema

NameRequiredDescriptionDefault
diffYes
file_budgetNo
change_budgetNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare read-only, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description contributes the useful fact that no tests are executed, but says nothing about what happens when a budget is exceeded or what the 'plan' output contains beyond what the output schema presumably shows.

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?

A single tight sentence with the main actions front-loaded and the important caveat last. Every clause earns its place, though the budget clause is too terse to be informative.

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?

An output schema exists, so return values needn't be explained, and the read-only nature is annotated. Still, for a three-parameter analysis tool with zero schema description coverage, the description should clarify budget semantics and expected diff format; those gaps make it only adequate.

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%, so the description carries the burden, yet it only implies 'diff' and vaguely alludes to 'budget' without explaining file_budget vs change_budget, the defaults of 10 and 300, or the effect of exceeding them. It partially compensates by mentioning budgets and line counting but leaves the two budget parameters materially undefined.

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?

States concrete actions (count changed lines, report budget, plan focused tests) and the resource (a supplied unified diff), plus the negative scope 'No tests run'. It doesn't name a sibling or explicitly contrast with review_json/review_python, so the format-based distinction is only implied.

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?

'from supplied unified diff' implies the precondition for use, and 'No tests run' steers an agent away from expecting execution. There is no explicit when-not guidance or routing to alternatives for non-diff inputs, leaving usage largely inferred.

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

Deploy Server

Other Tools