Skip to main content
Glama
worktpwls

repomap-mcp

by worktpwls

get_repo_map

Generate a compressed, role-aware map of a code repository, ranking files within a token budget to help LLM agents understand project structure.

Instructions

레포의 압축 맵을 반환 / return a compressed map of the repo.

repo_path: 대상 레포 절대경로 / absolute path to the target repo. token_budget: 출력 토큰 예산(기본 4000) / output token budget (default 4000). focus_files / role / changed_files: Phase 3 역할별 personalization 입력 / Phase 3 inputs for role-based personalization. role="planner": 진입점 가중 / entry-point boost. role="implementer": focus_files 에 텔레포트 질량 집중 / teleport mass on focus_files. role="reviewer": changed_files + 의존자(predecessors) 가중 / changed_files + their dependents (predecessors).

반환 / returns: {repo_map, stats:{files, files_parsed_now, files_from_cache, cache_hit_ratio, moved, deleted, symbols_total, symbols_included, est_tokens, elapsed_ms}, warnings}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
roleNoplanner
repo_pathYes
focus_filesNo
token_budgetNo
changed_filesNo
Behavior4/5

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

With no annotations, the description carries full burden. It discloses the return structure with stats and warnings, caching behavior, role-specific behavior, and indicates it is read-only (compressed map). Could mention non-destructiveness more explicitly.

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 description is structured with bullet points and front-loads the main purpose. However, it mixes Korean and English and is somewhat verbose; could be more succinct while retaining clarity.

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

Completeness5/5

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

No output schema exists, but the description adequately specifies the return structure (repo_map, stats with fields, warnings) and covers caching and role-specific behavior. Given the complexity (5 params, role logic), it is complete.

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

Parameters5/5

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

Schema has 0% description coverage, so description compensates fully. Every parameter (repo_path, token_budget, focus_files, role, changed_files) is explained with detailed role-based behavior, adding meaning 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 'retourne une carte compressée du dépôt' with specific verb and resource, and explains the role-based behavior. It differentiates from sibling tools `hello` and `refresh_cache` which are unrelated, making the purpose unambiguous.

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?

The description implies usage for getting a repo map but does not explicitly state when to use this tool versus alternatives. It lacks guidance on when not to use it, e.g., for simple file retrieval.

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/worktpwls/repomap-mcp'

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