Skip to main content
Glama

compare_versions

Diffs a file or folder between two Diablo II patch branches to show what code changed across versions, with a per-file summary and whitespace-ignoring changes.

Instructions

What changed in the code between two patches: a git diff of a file or folder between version branches, a per-file summary first, then the changes, ignoring whitespace and #line directives. Only 'd2hausos' (seperaGG's byte-matching decompilation) has versions: 'v1.00', 'v1.01', 'v1.02', 'v1.03', one branch each. path: repo-relative, e.g. 'D2Game/AI' or 'D2Common/Skills.cpp' (find it with search_code first; '.' is the whole repo, usually too big). The diff is capped at 60 KB: when it's truncated, narrow the path to a subfolder or file from the summary. Use it for "what changed between 1.00 and 1.01 in X". It's code reading only: say which two versions you compared, link the compare page or the branches it gives, describe what the code does differently, and don't claim gameplay effects the diff doesn't show. Cite short snippets, never whole files.

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": {
      "source": "<source>",
      "path": "<path>",
      "from_version": "<from_version>",
      "to_version": "<to_version>"
    },
    "name": "compare_versions"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
sourceYes
to_versionYes
from_versionYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: it discloses the 60 KB diff cap and what happens on truncation, that whitespace and #line directives are ignored, that output is a per-file summary followed by changes, and that only one source has versions at all. It also bounds interpretation by warning against claiming gameplay effects the diff doesn't show.

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 core definition, then constraint, then path details, then usage and citation policy. Every section is relevant, but the closing citation/style instructions run long and read more like output-formatting policy than tool definition, adding some bulk.

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?

An output schema exists, so return shape needn't be re-explained, and the description still covers the operational facts an agent needs: valid sources, valid versions, path conventions, size limits, and truncation handling. Nothing material is missing for correct invocation.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must compensate and largely does: path is defined as repo-relative with concrete examples ('D2Game/AI', 'D2Common/Skills.cpp') and the '.' whole-repo caveat; versions are enumerated (v1.00-v1.03); source is constrained to 'd2hausos' with an explanation of what it is. All four required parameters gain meaning beyond their bare titles.

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?

States a specific verb and resource: what changed in code between two patch versions, framed as a git diff of a file or folder between version branches, with a per-file summary first. It is unambiguous about what the tool returns. It does not explicitly differentiate itself from siblings like function_across_versions or mod_changes, 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 Guidelines5/5

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

Gives an explicit trigger phrase ('Use it for "what changed between 1.00 and 1.01 in X"'), a hard precondition (only 'd2hausos' has versions v1.00-v1.03, one branch each), a prerequisite step (find the path with search_code first), and a recovery path when the 60 KB cap truncates the diff. That is when-to-use, when-not-to-use, and alternatives in one pass.

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