Skip to main content
Glama

topology_explore

Explore a symbol’s connections in the topology graph, returning neighbour nodes and edges within a bounded search radius. Truncation is reported when limits are exceeded.

Instructions

Bounded BFS neighbourhood around a named symbol in the topology index. Returns the centre node, neighbour nodes, and connecting edges up to depth/max_nodes/max_bytes. Reports truncation when limits are hit. Source is 'topology' (approximate — use LSP semantic tools for authoritative reference and definition lookups). Returns an error when topology is disabled or the symbol is not in the index.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindNoOptional node kind to disambiguate a shared name: function, method, type, class, constant, variable, field, …
nameNoSymbol name or qualified name to explore. Must exist in the topology index.
pathNoOptional file-path substring to disambiguate when several indexed symbols share this name (case-insensitive).
depthNoBFS depth from the centre node. Default 2, max 4.
max_bytesNoApproximate byte budget for neighbour data. Default 30000, max 100000.
max_nodesNoMaximum number of neighbour nodes to return. Default 50, max 200.
edge_kindsNoOptional filter on edge kinds: calls, imports, contains, defines, inherits, implements.
include_sourceNoHow much source detail to include per symbol: none (name only), signatures (default), or snippets/full (signature plus docstring). Symbols are always returned whole — max_bytes truncates on symbol boundaries, never mid-function.signatures
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses return contents (centre node, neighbours, edges), bounded behaviour (depth/max_nodes/max_bytes), truncation reporting, approximation, and error cases. It does not explicitly state read-only safety, but the BFS/query framing implies it, so minor gap.

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?

Four dense, purposeful sentences: what it does, what it returns, truncation, caveat about approximation, and error conditions. No fluff, no repetition. The key point is front-loaded.

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?

For an 8-parameter tool with no output schema, the description covers purpose, return types, limits, truncation, error cases, and alternative tools. It doesn't detail the exact JSON structure of returned nodes/edges, but that level is often unnecessary as long as the schema defines parameters. Overall sufficient.

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 description coverage is 100%, so the baseline is 3. The description adds no parameter-specific meaning beyond what the schema already provides (e.g., it mentions limits but not formats or semantics of edge_kinds/include_source). No extra value beyond the schema.

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 opens with 'Bounded BFS neighbourhood around a named symbol in the topology index', a specific verb+resource+scope. It also distinguishes itself from LSP semantic tools ('use LSP semantic tools for authoritative') and from sibling topology tools by emphasizing the bounded neighbourhood and limits.

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?

Provides explicit guidance: 'use LSP semantic tools for authoritative reference and definition lookups' tells the agent when not to rely on this tool. Also states error conditions (topology disabled, symbol not in index) which imply when the tool is unusable and helps with fallback decisions.

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/plumbkit/plumb'

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