Skip to main content
Glama

Object data

object_data
Read-onlyIdempotent

Read units, items, abilities, buffs, upgrades, doodads, and destructables a Warcraft III map adds or changes, with field names and strings resolved. Check map-specific costs, stats, or ability data.

Instructions

Read the units, items, destructables, doodads, abilities, buffs and upgrades a map adds or changes, with the game's field names (such as goldcost, spd or abilList) and the map's strings resolved. Each kind has an original table, for standard objects the map changes, and a custom table, for new objects with their template_id. Use it to answer what a unit costs or what an ability does in a map; only the fields the map changes are listed, not the game's defaults. On a large map, ask for one object_type or some ids. Only reads: it changes no file, and the same call on the same file gives the same result.

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": {
      "path": "<path>"
    },
    "name": "object_data"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsNoKeep only these four-character object ids, such as hfoo (Footman) or A000 (a custom ability). Empty keeps every object.
pathYesA .w3x or .w3m map, or a single object file (.w3u, .w3t, .w3b, .w3d, .w3a, .w3h or .w3q). A path under the folders the server was started with (--root). A relative path is taken from the first of them; list_files gives full paths that can be passed as they are.
max_charsNoThe longest result, in characters of JSON, before the call is refused with a hint on how to ask for less. Default 200000.
object_typeNoKeep one kind of object: w3u units, w3t items, w3b destructables, w3d doodads, w3a abilities, w3h buffs, w3q upgrades. Empty keeps every kind.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.6.2
    • addedInput schema / properties / ids / description
      Added value: +"Keep only these four-character object ids, such as hfoo (Footman) or A000 (a custom ability). Empty keeps every object."
    • addedInput schema / properties / max_chars / description
      Added value: +"The longest result, in characters of JSON, before the call is refused with a hint on how to ask for less. Default 200000."
    • addedInput schema / properties / max_chars / minimum
      Added value: +1
    • addedInput schema / properties / object_type / description
      Added value: +"Keep one kind of object: w3u units, w3t items, w3b destructables, w3d doodads, w3a abilities, w3h buffs, w3q upgrades. Empty keeps every kind."
    • addedInput schema / properties / path / description
      Added value: +"A .w3x or .w3m map, or a single object file (.w3u, .w3t, .w3b, .w3d, .w3a, .w3h or .w3q). A path under the folders the server was started with (--root). A relative path is taken from the first of them; list_files gives full paths that can be passed as they are."
  2. First observedv0.6.1

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and non-destructive, and the description reinforces them while adding genuinely new behavior: only map-changed fields are listed rather than game defaults, and each kind splits into original and custom tables with template_id. It does not mention the max_chars refusal path, which lives only in the 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?

Three sentences, front-loaded with what is read and followed by usage and scale advice; no filler. The parenthetical field-name examples are slightly dense but each clause carries information.

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?

No output schema exists, and the description compensates by explaining the return shape (original vs custom tables, template_id, resolved strings, changed-fields-only). What is missing is pagination or truncation behavior beyond the schema's max_chars note, a minor gap for a read tool with full annotation coverage.

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 the schema already documents path, ids, object_type and max_chars thoroughly, including the four-character id format and the extension list. The description adds only the connection between the object tables and what comes back, not new parameter meaning, so the baseline 3 applies.

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 (read) and resource (map object data), then enumerates exactly the seven object kinds returned and the field-name form (goldcost, spd, abilList). It further distinguishes the two result tables, original and custom, which no sibling name suggests and which lets an agent tell this apart from map_info or model_info.

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 a concrete use case ("answer what a unit costs or what an ability does in a map") plus a scale caveat to narrow with object_type or ids on large maps. It never names a sibling alternative or states when not to use it, so it stops short of full routing guidance.

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