Skip to main content
Glama

Dataset Diff & Change Detector

diff_rows

Compares two versions of the same list of JSON rows (a before and an after snapshot, such as yesterday's and today's price list, product feed or CRM export) and returns one row per difference: status added, removed or changed, the key, the old and new values, and changedFields naming exactly which fields moved. Set keyFields to the field(s) that identify a row (sku, id, email); without it rows match on full content and an edited row shows as removed plus added. Comparison is exact: "19.99" (text) and 19.99 (a number) differ, as do "Blue" and "blue " and null and a missing field; nested objects compare by value. Put always-changing fields such as timestamps in ignoreFields. The summary counts added, removed, changed and unchanged rows and warns about duplicate keys, rows missing a key, and field names found in no row. oldRows and newRows together are limited per call (list_capabilities gives the number); larger calls are refused with a message saying how to split them.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
newRowsYesThe after snapshot: a JSON array of row objects, the same kind of rows as oldRows. At least one row.
oldRowsYesThe before snapshot: a JSON array of row objects. At least one row. Keys may differ between rows.
keyFieldsNoField name(s) that uniquely identify a row on both sides, for example ["sku"] or ["country","sku"]. Strongly recommended: without it a changed row is reported as one removed row plus one added row.
ignoreFieldsNoOptional. Fields never compared, for example ["scrapedAt","lastChecked"], so a timestamp alone does not mark a row changed.
compareFieldsNoOptional. Only these fields decide whether a matched row changed. Default: every field on either row.
includeUnchangedNoOptional, default false. Set true to also return matched rows with no difference (status "unchanged"). They are always counted in the summary.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and delivers: exact comparison semantics ("19.99" vs 19.99, "Blue" vs "blue ", null vs missing field, nested objects compared by value), the meaning of duplicate/missing-key warnings, and a hard per-call row limit on oldRows+newRows with refusal messages telling the caller how to split. This is unusually rich behavioral disclosure.

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?

Purpose and return shape are front-loaded, and nearly every clause adds operational detail (comparison rules, warnings, cap). It is a long single block rather than segmented, which slightly hurts scanability, but little is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, and the description compensates fully by describing the returned rows, the summary counters, and the warning categories, plus the failure mode at the row cap. Nothing needed to call it correctly is missing.

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 100%, so the baseline is 3, but the description adds real meaning beyond the schema: it explains the consequence of omitting keyFields (removed+added instead of changed), the role of ignoreFields in suppressing timestamp-only changes, and the combined row cap across the two required arrays.

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?

States a precise verb and resource: compares two versions of a JSON row list and returns one row per difference, with the returned shape (status, key, old/new values, changedFields) enumerated. It is unambiguously distinguishable from the only sibling, list_capabilities, which it also correctly references as the source of the row cap.

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?

Gives clear conditional guidance on each optional parameter: set keyFields to identify rows, otherwise rows match on full content and an edited row appears as removed plus added; put always-changing fields in ignoreFields; compareFields decides change detection. It does not state explicit when-not-to-use conditions or route to alternatives beyond list_capabilities, so it falls just 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.