Skip to main content
Glama

diff_digest

Summarizes the current git diff into changed files, file-level risk, and hunk headers, with optional red-team review to surface likely issues before code review.

Instructions

Digest the current git diff into changed files, file-level risk, hunk headers, and optional cheap red-team review.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "diff_digest"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNo
filesNo
red_teamNo
lite_reviewNo
max_diff_bytesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.5.0

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations present, the description carries the full burden; it does disclose the output shape (changed files, risk, hunk headers) and that the red-team review is optional and 'cheap', which is useful. But it never states that the operation is read-only, what it does versus staged/worktree changes, or any cost or permission implications for the review modes, leaving real behavioral gaps.

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?

A single front-loaded sentence that packs the verb, the resource, and the full output list with no filler. Nothing is redundant or misplaced.

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?

No output schema exists, and the description partly compensates by naming the returned fields, which is helpful. However, for a five-parameter tool with zero schema coverage and no annotations, the total documentation is thin: the filtering, size-limit, and review-mode parameters remain unexplained.

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 five parameters, so the schema itself explains nothing. The description only loosely gestures at red_team ('optional cheap red-team review') and says nothing about cwd, files, lite_review, or max_diff_bytes, so an agent cannot tell how to scope the digest or what the byte cap does.

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 a specific verb ('Digest') and a clearly scoped resource ('the current git diff'), and enumerates what it produces: changed files, file-level risk, hunk headers, and an optional red-team review. It does not distinguish itself from siblings such as review or analyze, so an agent cannot tell from the text alone which one to prefer.

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?

There is no explicit when-to-use or when-not-to-use guidance and no named alternative among siblings (review, analyze, history). Only a weak implication that it is for summarizing the working diff, leaving the agent to infer the selection criteria.

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