Skip to main content
Glama

repo_map

repo_map
Read-onlyIdempotent

Generates a token-budgeted outline of a code repository, ranking files and key symbols by centrality to orient AI agents unfamiliar with the codebase.

Instructions

Code-intelligence tool for repo orientation: emit a token-budgeted aider-style outline of the indexed project (ranked files + key symbols) as first-turn context for agents meeting an unfamiliar codebase. Ranking approximates centrality via fanIn * 2 + fanOut + 0.1; symbol selection prefers exported declarations. Read-only; default budget 1024 tokens (char/4 approximation), cap 16384.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectIdNo
projectRefNo
tokenBudgetNo
maxFilesNo
maxSymbolsPerFileNo
focusFilesNo
pathGlobNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
toolNameYes
projectIdYes
renderedYes
filesYes
tokenBudgetYes
estimatedTokensYes
totalFilesIndexedYes
totalFilesEligibleYes
truncatedByBudgetYes
truncatedByMaxFilesYes
warningsYes
_hintsYes
Behavior5/5

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

The description goes beyond the annotations (readOnlyHint, idempotentHint) by detailing the ranking algorithm (fanIn * 2 + fanOut + 0.1), symbol selection preference for exported declarations, default token budget (1024), and cap (16384). This provides substantial 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.

Conciseness5/5

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

The description is two sentences long, well-structured, and free of fluff. The first sentence conveys purpose and output, the second adds key behavioral details. Every sentence earns its place.

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?

For a tool with 7 optional parameters and an existing output schema, the description provides a good high-level overview and critical behavioral details. It covers the tool's purpose, ranking, and constraints, though it lacks explanations for some parameters. Overall, it is fairly complete for a read-only orientation tool.

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 description only partially explains parameters: it mentions tokenBudget default and cap, but does not elaborate on the other six parameters (projectId, projectRef, maxFiles, etc.). With 0% schema description coverage, more parameter context would be beneficial.

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 specifies the tool as a code-intelligence tool for repo orientation, emitting a token-budgeted outline of an indexed project. It uses a specific verb ('emit') and resource ('outline of the indexed project'), and distinguishes itself as a first-turn context tool for unfamiliar codebases.

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?

The description explicitly states the tool is intended 'as first-turn context for agents meeting an unfamiliar codebase,' providing clear context for when to use it. However, it does not mention when not to use it or name specific alternatives among the many 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/drhalto/agentmako'

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