Skip to main content
Glama

map_neighbors

Explore the static relationship graph around a code node to see callers, callees, imports, and inheritance. Use to map dependency fan-in/out quickly before deeper verification.

Instructions

Explore the static relationship graph around one node: callers/callees, imports, inheritance, containment. Call this BEFORE nav_references when you want the shape of the dependency fan-in/out cheaply — it is instant and token-budgeted, while nav_references invokes the language server. Edges come from static analysis: resolved:false edges are name-match guesses, and any edge can be stale or miss dynamic dispatch. Once you've picked the edges that matter, verify with nav_references or nav_callHierarchy at the location from resolve(nodeId).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
depthNo
nodeIdYesMap node ID, e.g. "py:src/auth/session.py#SessionStore.refresh" or "ts:src/index.ts" (file node)
maxNodesNo
directionNoboth
edgeKindsNoRestrict to these edge kinds; omit for all
tokenBudgetNoMax tokens for the response. Lists are truncated to fit, with a note saying what was dropped and how to get it back.
Behavior5/5

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

With no annotations, the description takes full responsibility for behavioral disclosure. It honestly states that edges come from static analysis, that 'resolved:false' edges are name-match guesses, and that any edge can be stale or miss dynamic dispatch. It also mentions the token budget and truncation behavior, providing excellent transparency.

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 well-structured and mostly concise, front-loading the core purpose. It includes essential details about usage and limitations without excessive verbosity, though it could be slightly more streamlined.

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?

Given the tool's complexity (6 parameters, no output schema), the description covers the essential behavioral aspects, limitations, and integration with sibling tools. It lacks explicit mention of the response shape, but the purpose and limitations are clear enough for an AI agent to use the tool 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?

The description provides high-level context for the tool but does not elaborate on individual parameters like depth, maxNodes, or direction beyond what is in the schema. Since schema coverage is 50%, the description partially compensates by explaining the tool's overall behavior, but it doesn't fully clarify parameter semantics for all six parameters.

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 the tool's purpose: exploring the static relationship graph around one node, listing specific edge types (callers/callees, imports, inheritance, containment). It distinguishes itself from the sibling tool nav_references by positioning itself as a cheaper, instant alternative for understanding dependency shape.

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

Usage Guidelines5/5

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

The description explicitly advises to call this BEFORE nav_references for cheap dependency shape, and to verify specific edges with nav_references or nav_callHierarchy later. This provides clear when-to-use and when-to-avoid guidance, including alternatives.

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/LSDIPPOLLC/transcend-mcp'

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