Skip to main content
Glama

function_across_versions

Find a Diablo II function’s counterpart address across game versions by providing its address, export ordinal, Ghidra name, or source symbol; get confidence and supporting evidence.

Instructions

Find one function of Blizzard's binaries in other game versions: give it in one version, get its counterpart's address in each other indexed version, with a confidence and the evidence. function: an address ('6fd5da40' or '0x6fd5da40'; an address inside a function means that function), an export ordinal as '#10916' (needs binary=), Ghidra's name for it (e.g. 'FUN_6fd5da40'), or a name from the D2MOO (1.10f) or Redivivus (1.14d) source clones (e.g. 'STATLIST_GetUnitStatUnsigned'). version: the version it's given in, e.g. '1.10', '1.13c', '1.14d'. binary: optional, e.g. 'D2Common.dll' or 'D2Common'; 1.14b and 1.14d have every DLL merged into Game.exe. to_versions: which versions to look in (default all indexed ones). Confidence: exact (same export ordinal, only where the DLL's ordinals are checked stable between the two versions), strong (strings or constants found in only this function in each version, or identical code once addresses are taken out), weak (call structure only: verify before relying on it). Many functions get no match: the matcher refuses to guess. Needs the index built from your own Ghidra output (python -m d2mcp.internals build); the first lookup between two versions takes a few seconds.

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": {
      "function": "<function>",
      "version": "<version>"
    },
    "name": "function_across_versions"
  }
}

Input Schema

NameRequiredDescriptionDefault
binaryNo
versionYes
functionYes
to_versionsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/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 behavioral burden and does so well: it defines the three confidence tiers (exact/strong/weak) with the evidence behind each, warns that many functions return no match because the matcher refuses to guess, and discloses the upfront index-build requirement and first-lookup latency. It also explains the special 1.14b/1.14d merged-into-Game.exe case.

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?

The purpose is front-loaded and the parameter notes are grouped sensibly, so the density is functional rather than padded. It is still a long block with some run-on packing of examples, which keeps it from a 5.

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?

For a four-parameter lookup tool with an output schema already covering return values, the description supplies everything else an agent needs: input formats, defaults, prerequisites, latency, confidence interpretation, and the honest no-match behavior.

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 it does: it enumerates the accepted `function` formats (raw or 0x address, 'inside a function' semantics, export ordinal '#10916' with the binary= requirement, Ghidra 'FUN_...' names, D2MOO/Redivivus source names), explains `version`, `binary` optionality plus the merged-DLL caveat, and gives `to_versions`' default of all indexed versions.

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: map a single function from one binary version to its counterpart address in other versions, including confidence and evidence. That is far more precise than a name restatement, though it never explicitly contrasts itself with siblings such as compare_versions or function_fingerprint, so an agent must infer the boundary.

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?

Clearly states the usage context (give the function in one version, receive counterparts in the others) and includes real prerequisites: the index must be built with `python -m d2mcp.internals build` and the first cross-version lookup takes a few seconds. No explicit alternatives or when-not-to-use conditions are named, keeping it below a 5.

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