Skip to main content
Glama

repo_map

Map project files to symbols and vice versa for codebases over 100 files. Use focused and relevantEntities filters to reduce token usage.

Instructions

Project code map: files ↔ symbols. For 100+ file codebases. focused+relevantEntities for token efficiency.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dirNoSubdirectory to map (default: workspace_dir)
focusedNoLimit output ~2000 tokens. Combine with relevantEntities.
relevantFilesNoOnly include these files (rel to root)
workspace_dirYesREQUIRED: project root (abs). reindex first if new.
relevantEntitiesNoOnly include files that contain these top-level symbols (e.g. ["spawnFixer", "agentLoop"])

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description must carry the transparency burden. It adds useful context about token efficiency and scale, but does not disclose whether the tool is read-only, requires indexing, or what the output structure looks like. This is partial coverage beyond the structured fields.

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 extremely concise, consisting of two short fragments with no redundant words. It front-loads the purpose and ends with a practical usage hint.

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?

The description provides the core mapping concept and a key usage tip, but lacks explicit information about return format, side effects, or prerequisites like reindexing. Given no output schema and no annotations, this is adequate but leaves notable gaps.

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 description coverage is 100%, so baseline is 3. The description adds the combined usage tip 'focused+relevantEntities for token efficiency', which is not present in the schema and explains how to use two parameters together for a specific purpose.

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?

The description clearly states 'Project code map: files ↔ symbols', indicating a mapping operation between files and symbols. It distinguishes itself from sibling tools by positioning as a repository-scale overview ('For 100+ file codebases'), though it doesn't explicitly contrast with symbol_search or dep_graph.

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 phrase 'For 100+ file codebases' implies intended use on large repositories, which provides some context. However, there is no explicit mention of alternatives or when not to use, and the 'focused+relevantEntities' tip is about parameter usage rather than tool selection.

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

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/wulun811/LiuHe'

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