Skip to main content
Glama

Diff two builds, packs, binaries or folders

re_compare
Read-onlyIdempotent

Compare folders, archives, executables, IL2CPP metadata, or files to identify added, removed, changed, or moved content between builds and versions.

Instructions

Compares two folders (added/removed/changed files), two packs/archives (entries, MD5 for Godot packs), two executables (imports, exports, sections; for .NET also the types and methods that came and went), two IL2CPP global-metadata.dat files (game types, methods, overloads, types that moved assembly, string literals; Unity and System assemblies as counts) or any two files (first difference, changed regions). Use it to see what changed between builds or versions.

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": {
      "a": "<a>",
      "b": "<b>"
    },
    "name": "re_compare"
  }
}

Input Schema

NameRequiredDescriptionDefault
aYesFirst folder/file (old).
bYesSecond folder/file (new).
limitNoMax items per list (default 300).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.25.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the description rightly spends its words on what the output contains per mode, which matters since there is no output schema: first difference and changed regions for raw files, type/method churn for .NET, assembly moves and counts for IL2CPP. It stops short of saying anything about cost, timeouts, or how large outputs are truncated.

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?

Front-loaded with the verb and organized as a parallel enumeration of input-pair types, followed by a one-line use case. The middle sentence is long and comma-heavy, but each clause adds a distinct mode or output detail rather than restating the title.

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 polyglot diff tool with no output schema, the description does the necessary work of telling the agent what each comparison will return and that results are list-like. The main remaining gap is the limit/pagination behavior and any per-mode failure modes, which the schema only hints at via the default 300.

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 coverage is 100%, so a/b and limit are already documented. The description implicitly adds a useful semantic - that a and b are type-dispatched (two folders vs two packs vs two executables) rather than declaring a mode parameter - but it never states the dispatch rule explicitly or says what happens on mismatched inputs. Baseline 3 is appropriate when the schema carries the parameter burden.

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 specific verb and resource, then enumerates the exact comparison modes (folders, packs, executables, IL2CPP metadata.dat, arbitrary files) and what each yields (added/removed/changed files, MD5 for Godot packs, imports/exports/sections, string literals). An agent can tell this is the diff tool rather than a single-artifact inspector like re_binary or re_il2cpp.

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?

The closing sentence gives clear context: "Use it to see what changed between builds or versions." That is enough to select it over single-artifact tools, but there are no explicit exclusions and no mention of when the narrower siblings (re_il2cpp, re_archive, re_binary) should be preferred for a one-sided inspection.

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