Skip to main content
Glama

diff_since

Generate a unified diff of all changes since a specified checkpoint to review modifications or support checkpoint-based undo in Python and Java codebases.

Instructions

Unified diff of everything that changed since a checkpoint.

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": {
      "checkpoint_id": "<checkpoint_id>"
    },
    "name": "diff_since"
  }
}

Input Schema

NameRequiredDescriptionDefault
checkpoint_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses that the result is a unified diff and that it covers everything changed since the checkpoint, but it does not state read-only behavior, error handling for invalid checkpoints, size limits, or any permissions requirements.

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 definition is a single front-loaded sentence with no wasted wording. It states the output form and scope immediately.

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?

The tool is simple and has an output schema, so the description need not explain return values. However, with no annotations and no schema parameter descriptions, it should say more about how checkpoint_id is sourced and what happens with an invalid or stale checkpoint.

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 0%, so the description must add meaning for checkpoint_id. It does clarify that the parameter is a baseline checkpoint for the diff, but it does not say how to obtain a checkpoint ID or what format is expected.

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 states a specific operation and output shape: producing a unified diff of changes since a checkpoint. It is clear enough to distinguish the tool from checkpoint management or symbol lookup siblings, though it does not explicitly name an alternative.

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?

Usage is only implied by 'since a checkpoint'; there is no explicit when-to-use guidance, prerequisites, or comparison to alternatives such as list_checkpoints, outline, or repo_map. An agent must infer the intended workflow.

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