Skip to main content
Glama

List Warcraft III files

list_files
Read-onlyIdempotent

Lists readable Warcraft III maps, campaigns, models, and replays with full paths and byte sizes, so you can narrow by folder or filename pattern and get the paths other tools need.

Instructions

Find the maps (.w3x, .w3m), campaigns (.w3n), models (.mdx, .mdl) and replays (.w3g) the server may read, with their full paths and sizes in bytes. Call it first, to get the paths the other tools take. It lists at most 1000 files and sets truncated when there are more; narrow the search with folder or pattern. Only reads: it changes no file, and the same call on the same file gives the same result.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
folderNoThe folder to search, with its subfolders. Empty searches every folder the server may read. 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.
patternNoKeep only the files whose name contains this text, ignoring case, such as "dota" or ".w3g". Empty keeps all.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.6.2
    • addedInput schema / properties / folder / description
      Added value: +"The folder to search, with its subfolders. Empty searches every folder the server may read. 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."
    • addedInput schema / properties / pattern / description
      Added value: +"Keep only the files whose name contains this text, ignoring case, such as \"dota\" or \".w3g\". Empty keeps all."
  2. First observedv0.6.1

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover readOnly, idempotent and non-destructive, yet the description still adds real operational detail: a hard 1000-file cap and a truncated flag, which an agent must know to avoid silently incomplete results. The closing sentence about read-only/idempotence largely restates annotations, which keeps this from a 5.

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 what it finds and what it returns, then the truncation caveat, then behavior. Efficient overall, though the final sentence partially repeats readOnlyHint/idempotentHint already declared in annotations.

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?

There is no output schema, so the description carries the return-value burden and does it: full paths, sizes in bytes, and a truncated flag. Combined with the truncation limit and refinement advice, an agent has everything needed to call it correctly and interpret the result.

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% and both parameters carry detailed descriptions (root-relative resolution, case-insensitive substring matching), so the schema does the heavy lifting. The description only adds the strategic hint to use folder/pattern for narrowing; it contributes little semantic detail beyond the schema baseline.

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?

Specific verb ('Find') plus the exact resource classes and extensions it returns (.w3x, .w3m, .w3n, .mdx, .mdl, .w3g). It also distinguishes itself from siblings by positioning itself as the entry point ('Call it first, to get the paths the other tools take'), so an agent can tell it apart from map_info, model_info, replay_info without opening a schema.

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 explicit sequencing guidance ('Call it first') and a concrete refinement path ('narrow the search with folder or pattern') when the result is truncated. It stops short of stating when-not-to-use or naming a specific alternative tool, but the workflow context is clear.

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