Skip to main content
Glama

repo_map

Get oriented in any repository by generating a lightweight map with directory tree, file count, and likely entrypoints/manifests. Use it as a first step before diving into code.

Instructions

Build a lightweight repository map: directory tree, file count, and likely entrypoints/manifests. Use this first to orient before reading files.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rootNoAbsolute or relative path to the repository root. Defaults to REPO_CONTEXT_ROOT or cwd.
max_depthNoMaximum directory depth (default 6).
max_entriesNoMaximum files to include (default 400).
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses the outputs (tree, count, entrypoints) and implies a non-destructive read operation via 'lightweight,' but does not mention possible side effects, permissions, or return format details. This is adequate but not comprehensive.

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 sentences, no filler. The key output list and usage guidance are front-loaded, making it both concise and scannable.

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?

The description covers what the tool produces and when to use it, which is sufficient for an orientation tool given the schema documents the parameters. It lacks an explicit return format, but the listed outputs compensate. Overall, it is complete for its intended first-step role.

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?

The schema covers all three parameters (root, max_depth, max_entries) with descriptions, so the description adds little parameter-specific value. It implicitly relates to the parameters by listing outputs (tree = depth, entries = count, root = path), but does not go beyond 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?

The description clearly states the tool's purpose with specific outputs: 'directory tree, file count, and likely entrypoints/manifests.' It uses a specific verb ('Build') and names the resource ('repository map'), making it distinct from sibling tools like search_code and pack_context.

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?

It provides explicit timing guidance with 'Use this first to orient before reading files,' placing it before other tools. It does not explicitly name alternatives or exclusions, but the context makes its role clear relative to the sibling tools.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nduc99911/repo-context-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server