Skip to main content
Glama

diff

diff
Read-onlyIdempotent

Compare two program runs to pinpoint their first causal divergence, aligning both causal streams and identifying the first event where they part. Returns MATCH, DIVERGED, or REFUSED when no verdict exists.

Instructions

first causal divergence between two runs. Aligns the two causal streams and names the first event where they part, with drill-in commands; MATCH or DIVERGED, or REFUSED when no verdict exists.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
taskNocompare one recorded task's stream by name instead of the thread streams; what a task IS is the recorder's own, and `info` names the ones a run has
run_aYesthe first run: run id, a unique prefix of one, or `last` (the newest trace)
run_bYesthe second run: run id, a unique prefix of one, or `last` (the newest trace)
contextNocommon causal steps to show before a divergence
ignore_movesNopair a function that left one file with the same-named function that appeared in another, then compare; the pairing is printed with the verdict

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.18.1

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, covering the safety profile. The description adds the REFUSED outcome and mentions drill-in commands, but doesn't disclose more about side effects or error behavior. Given the annotations, this is adequate but not rich.

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 concise, with two sentences that front-load the purpose and then add details on output and behavior. It avoids fluff, though the first sentence is a fragment and the phrasing is somewhat jargon-heavy, preventing a perfect score.

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?

With five parameters, two required, and no output schema, the description should clarify the return format more thoroughly. It gives verdicts (MATCH, DIVERGED, REFUSED) and says it 'names the first event', but doesn't describe the event structure or the drill-in commands. The schema covers parameters, so this gap is in the output semantics, making it incomplete but not severely lacking.

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?

The schema provides 100% description coverage for all five parameters, so the schema already documents them. The description doesn't add extra meaning to parameters beyond referencing 'two runs' (run_a, run_b), so it remains at the baseline of 3.

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 the tool finds the 'first causal divergence between two runs' and explains it aligns streams and names the first event. This is a specific function distinct from siblings like 'runs' or 'tree' which are not comparative. However, it doesn't explicitly contrast with alternatives, so it stops short of 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 Guidelines3/5

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

The description implies the tool is for comparing two runs, but it doesn't explicitly state when to use it versus other tools or list exclusions. It mentions 'REFUSED when no verdict exists', hinting at a condition, but that's not enough to guide tool selection clearly.

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