Skip to main content
Glama

audit_diff

Review a proposed git diff for regressions and missing checks, then return PROCEED, REVISE, or BLOCK feedback before code execution.

Instructions

Review a proposed git diff for regressions and missing checks.

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": "audit_diff"
  }
}

Input Schema

NameRequiredDescriptionDefault
diffYesThe unified diff to review.
contextNoOptional goals or constraints.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/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 behavioral burden and does not meet it. 'Review' hints at read-only analysis, but nothing states whether the tool touches a working tree, executes anything, needs repo/network access, is deterministic, or how findings are reported. For a tool advertised as an audit, that silence is a real gap.

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 object of the review front-loaded and no filler. It is efficient rather than padded, though the brevity is partly the cause of the other gaps.

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?

With no annotations and no output schema, the definition should convey what an audit returns (findings, severities, pass/fail) and how the optional context bends the analysis. It says none of this, leaving the agent unable to interpret or act on results, though the two simple flat parameters limit the damage.

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 description coverage is 100%, so the baseline is 3; 'the unified diff to review' and 'optional goals or constraints' are already documented in the schema. The description adds nothing further, such as what form the context should take or whether the diff must be against a particular base.

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 names a specific verb ('Review') and a specific resource ('a proposed git diff') plus the two things it looks for (regressions and missing checks), so an agent can tell what the tool does. It stops short of distinguishing itself from the sibling tools review_plan and verify_invariants, which would have pushed it to a 5.

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

Usage Guidelines2/5

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

The only usage signal is the implicit 'you have a proposed diff', with no statement of when to prefer this over review_plan or verify_invariants, no exclusions, and no prerequisites. Any agent would have to guess at the boundaries between the three review-adjacent tools.

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