Skip to main content
Glama

project_map

Read-onlyIdempotent

Generate a gitignore-aware folder tree annotated with token costs per entry, helping you locate costly files and plan reads before opening full contents.

Instructions

Folder tree with token cost per entry (gitignore applied). Use first.

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

Input Schema

NameRequiredDescriptionDefault
pathNoDir (default root)
depthNo
maxPerDirNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuine context the annotations cannot: gitignore is honored and each entry carries a token cost, which tells the agent results are pre-filtered and budget-aware. It omits any mention of truncation or result-size limits, which matters given maxPerDir defaults to 20.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short clauses, no filler, with the core payload description first and the usage directive second. Nothing could be removed without losing information.

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?

There is no output schema, so the description carries the burden of explaining the return value; it does so at a high level (tree plus token costs) but not structurally. The missing pieces are the truncation behavior implied by depth and maxPerDir and how entries are ordered, both of which affect whether the agent can trust the map as complete.

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 only 33% — path has a short note, but depth and maxPerDir are undocumented in both schema and description. Those two parameters silently cap the tree at depth 3 and 20 entries per directory, and the description never warns that the returned tree may be pruned, so an agent could mistake a truncated map for the full repository.

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?

Names a concrete artifact ('Folder tree with token cost per entry') and adds a qualifier ('gitignore applied'), which is more specific than a bare restatement of the name. It does not explicitly distinguish itself from siblings like file_outline or json_shape, so an agent must infer that this is the breadth-first repo overview rather than a single-file view.

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?

'Use first' is an explicit ordering directive that steers the agent to orient with this tool before reaching for read_slice or read_symbol. It stops short of naming alternatives or stating when not to use it (e.g., for a known single file), so guidance is clear but not exhaustive.

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