Skip to main content
Glama

Present Semantic Diff

present_diff

Analyze git/snapshot changes with Tree-sitter alignment, group edits by logical decisions and rename/move/split/merge hints, verify changed-line coverage, and open an interactive semantic diff viewer.

Instructions

Analyzes actual git/snapshot code changes with Tree-sitter AST alignment, overlays your logical decisions and rename/move/split/merge hints, verifies 100% changed-line coverage, and opens the interactive Semantic Diff viewer.

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

Input Schema

NameRequiredDescriptionDefault
summaryNoOne-sentence executive summary of the overall change
baselineNoGit ref to diff against (default: "HEAD"). Ignored when snapshotId is set.
repoPathNoRepository path (defaults to current working directory)
decisionsNoLogical decisions grouping the changes with rationale
snapshotIdNoSnapshot ID from snapshot_baseline to diff against instead of git
testReportNoOptional structured test & verification report (automated suites, build/typecheck checks, and manual/browser checks)
correspondencesNoExplicit symbol rename, move, split (1->N), or merge (N->1) hints

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

B3.2/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 behavioral burden. It discloses several meaningful behaviors (AST alignment, decision overlay, 100% coverage verification, opening an interactive viewer), but omits critical details such as what happens if coverage verification fails, whether it requires an active session, and whether it writes any review state.

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?

The description is a single dense sentence that front-loads the main analysis behavior and ends with the viewer action. Every clause contributes information, though the sentence is long and could be more scannable.

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 complex, with seven nested object parameters, no annotations, and no output schema. The description covers the high-level pipeline but does not explain return behavior, failure modes, or interaction with siblings, leaving notable gaps for an agent to call it confidently.

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 input schema already documents all seven parameters thoroughly. The description adds only a little semantic context by mentioning decisions and rename/move/split/merge hints, which correspond to the decisions and correspondences parameters. Baseline 3 is appropriate because the schema does the heavy lifting.

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 specifies a concrete verb-and-resource chain: it analyzes git/snapshot changes via Tree-sitter, overlays decisions and hints, verifies changed-line coverage, and opens the Semantic Diff viewer. An agent can understand the tool's role, but it does not explicitly distinguish this from sibling tools such as open_diff_viewer or app_get_raw_diff.

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 description explains what the tool does but gives no explicit when-to-use guidance, prerequisites, or alternatives. It never says when to choose this over open_diff_viewer or app_get_raw_diff, leaving selection to inference.

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