Skip to main content
Glama

diff

Compare a saved screen checkpoint against another checkpoint or the current state to identify layout and content changes.

Instructions

Compare a checkpoint with another checkpoint or current (default). Example: {"screen":"checkout","from":"before_form_rework","to":"current"}.

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": {
      "screen": "<screen>",
      "from": "<from>"
    },
    "name": "diff"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNo
fromYesLowercase identifier matching [a-z][a-z0-9_]{0,31}
screenYesLowercase identifier matching [a-z][a-z0-9_]{0,31}

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are supplied, so the description has to disclose the behavior of the tool. It implies a read-only comparison, but it never states that it does not mutate state, whether 'from' must already exist, how missing checkpoints are handled, or what the diff output looks like (there is no output schema either). The default for 'to' is the only real behavioral detail.

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 structure is good: the core comparison statement comes first, followed by a compact example that earns its place by mapping values to parameters. The parenthetical '(default)' is slightly opaque on its own and depends on the example to become clear.

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?

This is a simple tool with 3 flat params, so it does not need much explanation. However, with no annotations and no output schema, the description should at least say what a diff result is and how failures are surfaced; it covers the inputs but says nothing about the output.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 67%, and the schema descriptions only state the identifier pattern, not the parameters' roles. The example supplies the missing meaning: 'screen' identifies the screen, 'from' is the baseline checkpoint name, and 'to' is a checkpoint or the literal 'current'. That is meaningful beyond the schema, though the constraint semantics of 'from' versus a non-existent checkpoint remain unexplained.

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 uses a specific verb and resource: 'Compare a checkpoint with another checkpoint or current'. That is much clearer than the bare name 'diff', and an agent can tell this is a read-only comparison rather than the adjacent 'checkpoint' creation tool. It does not explicitly name or exclude any sibling, 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 phrase 'or current (default)' implies that an agent may omit 'to' to compare against the live state. The worked example reinforces that implied usage. There is no explicit when-to-use or when-not guidance, and no routing to alternatives such as 'checkpoint' or 'list_screens', so the usage is only implied.

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