Skip to main content
Glama

project_map

Map repository structure by generating a directory tree and listing supported text files without contents; respects .gitignore and depth limits to reveal project layout.

Instructions

Directory tree and the list of supported text files, without file contents.

Respects default ignores and .gitignore files. Symlinks are not followed. Set depth to list only the first N levels, like tree -L N.

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
pathNoLocal project directory. Defaults to the server's working directory.
depthNo
formatNoOutput format: 'markdown' (default) or 'json' (structured envelope).markdown

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.4.1
    • addedInput schema / properties / depth
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Depth"
      +}
  2. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does meaningful work: it discloses that file contents are excluded, that default ignores and .gitignore are respected, and that symlinks are not followed — real behavioral traits an agent needs. It stops short of covering things like truncation limits, output size, or behavior for a nonexistent path, which keeps it below 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.

Conciseness5/5

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

Four short, front-loaded lines: what is returned, ignore behavior, symlink behavior, and depth semantics. Nothing repeats the schema verbatim and no sentence is filler.

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

Completeness4/5

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

Output schema exists, so return structure needn't be explained, and all three parameters are effectively covered between schema and description. The remaining gap is operational context — size limits, failure modes — which is minor for a read-only listing tool but keeps it from a 5.

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 67%, and the one weakly documented parameter (depth, which has no schema description) is explained concretely as 'list only the first N levels, like tree -L N.' The path and format parameters are already covered by schema descriptions, so the description compensates exactly where it needs to.

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 resource and output shape: 'Directory tree and the list of supported text files, without file contents,' which immediately separates it from content-reading siblings like read or search. It never names an actual sibling or explicitly contrasts itself, so it falls just short of full differentiation.

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 implied by the resource description — an agent can infer this is the structural-overview call before reading files — but there is no explicit 'use this when…' or 'use X instead' statement. The mention of depth is a usage hint, not routing guidance.

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