Skip to main content
Glama

repo_map

Read-only

Map repository structure without crawling, exposing graph, API, directory, and importer views for targeted code navigation.

Instructions

Structure without crawling: view='graph' (God Nodes), 'api' (exports) or 'tree' (directories).

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": "repo_map"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNo
rootNoWorkspace root for relative paths (default: session root)
viewNo
depthNo
project_pathNoAbsolute path in multi-repo setups

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv4.16.0
    • addedInput schema / properties / root
      Added value: +{
      +  "description": "Workspace root for relative paths (default: session root)",
      +  "type": "string"
      +}
    • changedInput schema / properties / view / enum
      Previous value: -[
      -  "graph",
      -  "api",
      -  "tree"
      -]New value: +[
      +  "graph",
      +  "api",
      +  "tree",
      +  "importers"
      +]
  2. Changed5 schema fields changedv4.7.15
    • removedInput schema / properties / depth / description
      Removed value: -"Tree depth (default 2, max 4)"
    • removedInput schema / properties / max_entries
      Removed value: -{
      -  "type": "integer"
      -}
    • removedInput schema / properties / path / description
      Removed value: -"Directory path for view='tree' (default '.')"
    • changedInput schema / properties / project_path / description
      Previous value: -"Project root (pass absolute path in multi-repo setups)"New value: +"Absolute path in multi-repo setups"
    • removedInput schema / properties / view / default
      Removed value: -"graph"
  3. Addedv4.6.2

TDQS

C2.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, so the safety profile is covered. The description adds one genuine behavioral trait beyond that: 'without crawling' implies an index-backed lookup rather than a filesystem walk, which is useful context for cost expectations. It still says nothing about output shape, size limits, or whether a missing path/root errors or falls back to session root.

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?

A single front-loaded sentence with no filler, and the mode-to-output mapping is compactly encoded. It is arguably too terse for a five-parameter tool, but nothing is wasted.

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

Completeness2/5

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

With five parameters, 40% schema coverage and no output schema, the description needs to do more. It omits the 'importers' view entirely, does not explain depth or how path/root/project_path interact, and gives no sense of the returned structure, which is the whole point of a map 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?

Schema coverage is 40%, so the description must carry weight, and it does partially: it explains what 'graph', 'api' and 'tree' return. But it silently omits the fourth enum value 'importers', leaving an agent unable to judge that mode, and says nothing about path, root, depth or project_path semantics.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The phrase 'Structure without crawling' gestures at a read-only repo structure view, and the parentheticals ('God Nodes', 'exports', 'directories') hint at what each view yields. However, the core verb is missing — nothing states plainly that this returns a map/index of the repository — and the jargon 'God Nodes' is unexplained. It also does not distinguish itself from siblings like scoped_search.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no statement of when to reach for this tool versus alternatives such as scoped_search or smart_read_file, and no prerequisites or exclusions. The only routing information is which view name to pick, which is parameter selection rather than task-level guidance.

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