Skip to main content
Glama

map

Returns a token-budgeted directory tree with file counts, types, and heat, letting agents inspect indexed filesystem structure without reading file contents.

Instructions

Terrain map of an indexed directory, under a hard token budget.

Returns a directory tree with file counts, types and heat. Empty path means the home root. budget is the maximum estimated tokens for the map.

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

Input Schema

NameRequiredDescriptionDefault
pathNo
depthNo
budgetNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior2/5

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

No annotations exist, so the description carries the full behavioral burden. It does disclose that output is capped by a 'hard token budget' and that the directory must be indexed, but it leaves unclear what 'heat' means, what happens when the budget is too small (truncation? error?), and whether traversal is read-only or affects the index.

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 definition is short and front-loaded: a one-line summary followed by the return shape and parameter notes. No filler sentences, though the unexplained term 'heat' spends words without conveying a settled meaning.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present, the description needn't detail return values, and it covers budget and path adequately. But for a zero-annotation tool it is incomplete: depth is undocumented, 'heat' is undefined, and the implication that only indexed directories work is not explained.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate for all three parameters. It explains budget as the maximum estimated tokens and path as defaulting to the home root when empty, but depth — including what it counts and what the default of 4 implies — is never addressed.

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?

The description states a concrete resource and output: a directory tree of an indexed directory with file counts, types, and heat, constrained by a token budget. That is distinguishable from siblings like find or peek, though no sibling is named and the 'terrain map' metaphor carries some of the weight.

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?

Usage is only implied — a cheap structural survey of a directory — plus the useful default that an empty path means the home root. There is no explicit statement of when to prefer this over find, peek, or status, and no conditions or exclusions.

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

Deploy Server

Other Tools