Skip to main content
Glama

diff

Read-onlyIdempotent

Compare two spreadsheet versions cell-by-cell including formulas, or by key columns to identify added, removed, and changed rows.

Instructions

Compare two versions of a sheet or file: cell-by-cell (values + formulas) or row-level by key columns.

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

Input Schema

NameRequiredDescriptionDefault
keyNoKey column(s) for a row-level diff (added/removed/changed rows). Without a key: cell-by-cell diff incl. formulas.
limitNoMax differences to list.
file_aYesFirst file.
file_bNoSecond file (omit to compare two sheets of file_a).
sheet_aNoSheet name (or 0-based index). Default: first sheet.
sheet_bNoSheet name (or 0-based index). Default: first sheet.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds the mode semantics (formulas included in cell-level comparison), but it does not say what the result looks like, whether it lists added/removed rows, or what happens when the limit is hit — gaps that matter for a diff tool with no output schema.

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?

A single front-loaded sentence with no filler; the core comparison and its two modes come first. It is efficient, though the compressed phrasing leaves the agent to unpack the parentheticals and there is no room left for any output or limit guidance.

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?

For a six-parameter comparison tool with full schema coverage and annotations covering the safety profile, the description gives enough to select and invoke it correctly. The main missing piece is what the returned difference list contains and how truncation via limit manifests, but the absence of an output schema makes that a moderate rather than fatal gap.

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% and each parameter is already well documented, including the key-column behavior and the 'omit file_b to compare two sheets' case. The description only restates the mode distinction that the key parameter's own description already conveys, adding no syntax or format detail beyond the schema, so the baseline 3 applies.

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 opens with a specific verb and resource ('Compare two versions of a sheet or file') and names the two comparison modes (cell-by-cell vs row-level by key columns). It is clear what the tool does, though it does not name or contrast any sibling tool (e.g., combine, query) that an agent might confuse it with.

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?

Usage is implied by describing the two modes, so an agent can infer that a key column selects a row-level diff and its absence selects a cell-level diff. However, there is no explicit when-to-use/when-not-to-use guidance and no routing to alternatives when the agent actually wants merging, querying, or reading data instead of comparing.

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