Skip to main content
Glama

related_symbols

Discover code symbols related to an anchor by analyzing call-graph proximity with personalized PageRank. Find collaborators, siblings, and helper functions that plain caller/callee lists miss.

Instructions

"What else should I read before touching this?" via the call graph.

Runs personalized PageRank seeded on the anchor symbol and treats the call graph as undirected, so it surfaces collaborators a plain caller/callee list misses -- siblings that share a hub, helpers two hops away.

This is the structural analogue of semantic search, and it needs no embeddings: proximity in the call graph is the relationship.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax results
symbolYesAnchor symbol (name, qualname or id)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

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

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

No annotations are provided, so the description carries the burden, and it delivers: it discloses the algorithm (personalized PageRank), the undirected treatment of the call graph, and the non-obvious behavior of surfacing siblings/helpers rather than direct edges. It also clarifies that no embeddings are required, which is a meaningful operational trait. It stops short of explicit statements about read-only-ness or side effects, though the reading context strongly implies a safe query.

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 compact: a one-line use-case question, a two-sentence explanation of the algorithm and its value, and a one-sentence positioning against semantic search. It front-loads the user intent and each sentence earns its place. No redundant restatement of schema or annotations.

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?

The tool has moderate algorithmic complexity, and the description covers purpose, algorithm, outputs' conceptual nature, and how it differs from structural and semantic alternatives. An output schema exists, so not detailing the return payload is fine. The only minor gaps (exact sibling names, explicit exclusions) are small and already addressed in other dimensions.

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 covers both parameters with descriptions ('Anchor symbol (name, qualname or id)', 'Max results'), so the baseline for this dimension is 3. The description reinforces that symbol is the seed of the PageRank but adds no syntax, defaults, or format details beyond the schema. This is acceptable given high coverage.

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 defines a concrete operation: it runs personalized PageRank seeded on an anchor symbol over the call graph, computed undirected, to surface related symbols. It immediately distinguishes itself from sibling tools like who_calls/what_it_calls by stating it goes beyond a plain caller/callee list. The 'structural analogue of semantic search' framing makes the resource and intent unmistakable.

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 frames when to use it: when deciding 'what else should I read before touching this,' and contrasts it with a plain caller/callee list for discovering indirect collaborators. It indicates this tool is the structural alternative to semantic search and does not need embeddings, which guides tool selection. It does not explicitly name sibling tools or state a hard when-not-to-use, so it falls just short of a 5.

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/GokulRaj2210/cartograph-mcp'

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