Skip to main content
Glama

mpq_list

Lists the files inside a Diablo II MPQ archive, with header facts, file counts and each member's name, size and storage. Filter by name pattern to find specific files.

Instructions

List what's inside an MPQ archive on the local disk (Diablo II and its mods: d2data.mpq, d2exp.mpq, patch_d2.mpq...). Returns the archive's header facts, how many files it holds, how many have names, a count by file type, then the members: name, size, packed size and how each is stored. path: the .mpq file. pattern: optional filter, shell wildcards (*.txt, data\global\excel*) or a plain piece of the name; case and slash direction don't matter. limit: members shown, 1 to 1000 (default 200); start: skip this many, to page. Names come from the archive's own (listfile); an archive without one is said to have none, and its members are listed as FileNNNNNNNN.xxx. listfile: optional path of a text file of member names (one per line) to name them. Limits: MPQ format version 1 only (not the archives of later Blizzard games, nor Resurrected's CASC storage).

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": "mpq_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
limitNo
startNo
patternNo
listfileNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and discloses a lot: what gets returned (header facts, counts, per-file type breakdown, member name/size/packed size/storage), the listfile fallback behavior producing FileNNNNNNNN.xxx names, and hard limits (MPQ v1 only, no later Blizzard games, no Resurrected CASC). It does not state read-only safety or error behavior for missing/corrupt archives, so it lands just short of full disclosure.

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?

Purpose is front-loaded and every clause is information-bearing, with the return shape followed by per-parameter notes and then limitations. It reads as a dense wall of text in one paragraph, and phrases like "case and slash direction don't matter" could be tightened, but there is no empty filler.

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 five-parameter, annotation-free tool it covers the gaps: naming fallback, pagination, hard format limits, and even the return structure despite an output schema existing. An agent could call it correctly and predict the failure modes (wrong MPQ version, missing listfile, unnamed members) from the description alone.

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 coverage is 0%, so the description must compensate, and it does for all five parameters: path is the .mpq file, limit is members shown capped 1-1000 with default 200, start is the page offset, pattern is a wildcard/substring filter insensitive to case and slash direction, and listfile is a text file of names, one per line. This adds meaning well beyond the bare schema 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 ("List what's inside an MPQ archive") plus concrete domain examples (d2data.mpq, patch_d2.mpq) and the local-disk scope. It never names or contrasts with mpq_extract/mpq_read, so the separation from siblings is left implicit even though "list" versus "extract/read" is fairly natural.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Implies the use case (inspect an archive's contents before acting on it) and explains paging via limit/start and name filtering via pattern, which is real operational guidance. However there is no explicit statement of when NOT to use it or which sibling to pick instead (e.g. extraction), so the when-to-use guidance remains implied.

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