Skip to main content
Glama

Compare with a checkpoint

diff
Read-onlyIdempotent

Show what changed between a checkpoint and the current memory, or between two checkpoints: added, modified and removed keys with their before and after values.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum keys listed per group.
include_valuesNoInclude before and after values; set false for keys only.
to_snapshot_idNoSecond checkpoint; omit to compare with the current state.
from_snapshot_idYesCheckpoint id from create_snapshot or list_snapshots.

Output Schema

NameRequiredDescriptionDefault
addedYes
countsYes
removedYes
modifiedYes
truncatedYes
values_includedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds genuine value by disclosing the shape of the result (added/modified/removed groups with before and after values), confirming a non-mutating, purely observational operation.

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?

A single sentence that front-loads the core action and then enumerates the result categories. No filler, no restatement of the title as a separate clause.

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 an output schema present and full annotation coverage, the description does not need to explain return values or paging. It covers both comparison modes and result contents, leaving only minor gaps such as what happens with truncation at the limit.

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 all four parameters are already documented, including the from_snapshot_id source hint. The description only echoes the from/to snapshot pairing and the before/after value notion, adding little beyond the schema; baseline 3 applies.

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?

The description names a specific verb ('Show what changed') and resource (checkpoint vs. memory state) and enumerates the returned categories (added, modified, removed keys with before/after values). An agent can immediately tell this is a comparison/diff operation distinct from mutation tools like rollback or forget.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

It clearly lays out the two usage contexts: comparing a checkpoint against current memory, or two checkpoints against each other ('omit to_snapshot_id to compare with the current state' is mirrored in the schema). It gives no exclusions or explicit contrast with siblings such as preview_rollback, so it stops short of a 5.

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.