Skip to main content
Glama
devladinci
by devladinci

Get code map

get_map

Retrieve a file or directory's symbol map with line numbers, signatures, imports, and dependents to pinpoint needed code before reading full files.

Instructions

Structure of a file or directory from the prebuilt index: every symbol with its line number and one-line signature, NO bodies. For a file, also shows what it imports (with each dependency's main exports) and who imports it. Cheaper than reading the whole file or globbing directories. Use BEFORE reading any file to decide which exact lines you need.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetYesFile or directory path relative to the repo root (e.g. "src" or "src/server.ts"). "." = whole repo.

Schema Changelog

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

  1. First observedv0.3.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations present, the description carries the full burden of behavioral disclosure. It transparently explains what the tool returns, what it excludes ('NO bodies'), the fact it uses a prebuilt index, and that it is cheaper than alternatives. It could add detail about index freshness or error behavior, but the core behavior is clearly disclosed.

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 concise and front-loaded: it states the resource, the exact content of the result, and the key exclusion in the first sentence. The second sentence adds file-specific behavior, and the final sentence gives the practical usage timing. Every sentence earns its place.

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?

For a single-parameter tool with no output schema, the description is complete enough: it explains the returned symbols, line numbers, signatures, imports, importers, and the exclusion of bodies. It also provides guidance on when to call it. This gives an agent sufficient context to invoke it correctly.

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 100%, and the single 'target' parameter is already fully documented in the schema, including the '.' special value. The description reinforces the file-or-directory target concept and the prebuilt-index context, but it does not add meaningful param semantics beyond the schema.

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 the tool's purpose: returning the structure of a file or directory from a prebuilt index, including symbols, line numbers, and one-line signatures while explicitly excluding bodies. It is specific about the resource and content, but it does not explicitly distinguish itself from sibling tools like get_deps, find_symbol, or get_references, some of which may overlap with the reported imports/importers.

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 gives an explicit usage directive: 'Use BEFORE reading any file to decide which exact lines you need.' It also frames when it is better than reading files or globbing directories. However, it does not state when not to use it or mention alternatives among the sibling tools, so it stops short of full routing guidance.

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/devladinci/hebros-mcp'

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