Skip to main content
Glama

Map information

map_info
Read-onlyIdempotent

Reads a Warcraft III map's war3map.w3i summary with resolved strings—name, author, players, dimensions, script language, versions, forces, and file count—to identify what the map is.

Instructions

Read a map's summary from its war3map.w3i, with the map's strings resolved: name, author, description, suggested players, width and height, script language (JASS or Lua), the game and editor versions it was saved with, players with their race and type, forces, and the number of files in the map. Use it to answer what a map is; use read_member on war3map.w3i only for every raw field. Fails on a protected map and on a map without war3map.w3i. 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": "map_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesThe .w3x or .w3m map. 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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.6.2
    • addedInput schema / properties / path / description
      Added value: +"The .w3x or .w3m map. 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.4/5.0
Behavior4/5

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

The annotations already declare readOnly, idempotent, non-destructive and non-open-world behavior. The description adds value beyond them by naming the failure conditions and noting that strings are resolved rather than raw. It omits output format or size hints, but that is minor for a one-parameter read.

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 description is front-loaded: the purpose, the routing rule, the failure modes and the safety note each get their own sentence. The final sentence partly restates the read-only and idempotent hints already present in the annotations, which is mild redundancy, but the rest is efficient.

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 one-parameter read tool without an output schema, the description covers what is returned, what it costs (nothing, and it is repeatable), and when it fails. Nothing an agent needs in order to call it correctly is left unstated.

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?

There is a single path parameter, and the schema description fully documents it, including accepted extensions and --root resolution. The description adds nothing about path semantics, so the baseline of 3 applies when the schema carries the explanation.

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?

The description opens with a specific verb and resource ("Read a map's summary from its war3map.w3i") and enumerates the fields returned: name, author, description, player count, dimensions, script language, versions, forces and file count. It also states that strings are resolved, which distinguishes it from the sibling read_member, which exposes raw fields.

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?

It gives an explicit selection rule: use this tool "to answer what a map is", and use read_member on war3map.w3i only for every raw field. It also names the cases where the tool fails (a protected map, or one lacking war3map.w3i), so the agent knows when not to reach for it.

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