Skip to main content
Glama

dev_diff_stats

Read-only

Diff / PR stats and review risk — Parse a unified diff (git diff, diff -u, or a GitHub commit/PR/compare URL - .diff is added automatically) into per-file stats: status (added/deleted/renamed/modified/binary), additions, deletions, hunks and category (source/test/docs/config/lockfile/migration/ci/asset). Adds totals, PR size label XS-XXL, by-extension breakdown, largest files, possible secrets added, debug statements and TODOs added, tests-touched check, and a LOW/MEDIUM/HIGH review-risk verdict with reasons. Pass url= or diff= (raw diff text, up to 1,000,000 chars). Offline parsing. Price: $0.002 USDC (Base, via x402).

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": {
      "url": "<url>"
    },
    "name": "dev_diff_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYese.g. https://github.com/olivierlacan/keep-a-changelog/compare/v1.0.0...v1.1.0

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations cover the safety profile (readOnlyHint true, openWorldHint true, destructiveHint false), so the description only needs added context — and it delivers: x402 pricing ($0.002 USDC on Base), a 1,000,000-character input cap, and automatic .diff URL normalization. Minor ambiguity: it says 'Offline parsing' while openWorldHint declares external access, though this reads as 'parsing runs locally,' not a true conflict; there is no statement about rate limits or failure behavior on unparsable input.

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?

Purpose is front-loaded, and the long enumeration of outputs and behaviors is dense rather than padded. It is a single breathless sentence-chain that could be split into input-contract vs output-summary blocks for faster scanning, but little is genuinely wasted.

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?

With no output schema, the description carries the return-shape burden and does so thoroughly, enumerating totals, extension breakdown, largest files, secret/debug/TODO detection, and the risk verdict with reasons. The remaining gap is the phantom diff parameter and the lack of error/parse-failure behavior, which matters for an agent feeding unpredictable URLs.

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?

The description says 'Pass url= or diff= (raw diff text...)' and treats the two as interchangeable, but the schema exposes only url, marks it required, and contains no diff property at all. That actively misleads an agent trying to use the documented diff path, though the auto-appending of .diff to URLs does add genuine meaning beyond the schema example.

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?

Names a specific verb and resource (parse a unified diff into per-file stats) and enumerates the exact outputs: status, additions, deletions, hunks, category, size label, and a LOW/MEDIUM/HIGH risk verdict. That scope (git/PR/compare diffs plus review risk) is clearly distinct from plain-text or format-specific siblings such as text_diff or util_json_diff.

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?

Usage is implied by the input rules (validating git diff, diff -u, or a GitHub commit/PR/compare URL) and by the input size cap. However, it never states when to choose this over a diff sibling, nor when-not to use it, and the guidance is embedded in a dense sentence rather than stated as routing advice.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources