Skip to main content
Glama

List maps

map_list
Read-only

List installed Garry's Mod maps by scanning .bsp files across game, addon, workshop, and mounted paths; filter names with case-insensitive substrings and return sorted results with counts.

Instructions

Installed maps: every maps/*.bsp on the game's GAME path (garrysmod, addons, workshop, mounted games such as HL2), names without .bsp, sorted, filtered by a case-insensitive substring. Same answer on every instance of this game folder (callable without instance). Result: {maps: [names], count (all matches), truncated, filter}. Example: {"filter": "gm_"}.

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

Input Schema

NameRequiredDescriptionDefault
limitNoDefault 1000.
filterNoSubstring (empty = all).
instanceNoOptional. Instance identifier (see instances_list). If present and different from the local instance, the call is relayed by the coordinator to that instance.

Output Schema

NameRequiredDescriptionDefault
mapsYes
nextNo
noteNo
countYes
filterNo
warningNo
next_callNo
truncatedYes
answered_byNo
truncated_noteNo
version_warningNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.7

TDQS

A4.4/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing which filesystem roots are scanned (garrysmod, addons, workshop, mounted games like HL2), that names are returned without .bsp, are sorted, and that filtering is case-insensitive. It also explains the instance-relay nuance (same answer everywhere, no relay needed). Only the result shape overlaps the output schema, so this is strong if slightly redundant behavioral context.

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 the resource and its scope, then filtering behavior, then instance semantics, then result shape — no filler sentences. The result-shape fragment is somewhat telegraphic, but every clause carries information.

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 3-parameter, read-only listing tool with full schema coverage, annotations, and an output schema, the description covers everything an agent needs: what is enumerated, how names are normalized and sorted, how filtering works, and why `instance` is optional. No material gap remains.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3, but the description adds real meaning: it clarifies that `filter` is a case-insensitive substring match and supplies an example ({"filter": "gm_"}), and it explains that omitting `instance` still yields correct results because of cross-instance consistency. `limit` is left entirely to the schema.

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+resource (list installed maps) and precisely scopes it: every maps/*.bsp under the game's GAME path, including addons, workshop and mounted games. This clearly separates it from map_load in the sibling list, which operates on a single map rather than enumerating them.

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 clear situational context: it enumerates installed maps, supports substring filtering, and explicitly notes it is 'callable without `instance`' because the answer is identical on every instance of the game folder. It does not explicitly say to use map_load for loading a map, so it falls short of naming alternatives/exclusions, but the usage context is unambiguous.

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