Skip to main content
Glama

topology_impact

Analyze a symbol's dependencies and reverse dependencies to assess blast radius before refactoring. Shows what it depends on and what depends on it, including cross-file callers.

Instructions

Bidirectional BFS blast-radius analysis around a named symbol. Returns two sections: 'depends on' (outward — what the symbol depends on) and 'depended on by' (inward — what depends on this symbol). Primary use: assess blast radius before a refactor. Source is 'topology' (approximate); the topology call graph is intra-file, so for a function/method the inward section is augmented with a 'cross-file callers' block resolved via the language server (source=lsp) when one is available. Returns a clear message 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 analyse. Must exist in the topology index.
pathNoOptional file-path substring to disambiguate when several indexed symbols share this name (case-insensitive).
depthNoBFS depth for both traversals. Default 3, max 4.
max_bytesNoApproximate byte budget per direction. Default 30000, max 100000.
max_nodesNoMaximum neighbour nodes per direction. Default 100, max 200.
edge_kindsNoOptional filter on edge kinds: calls, imports, contains, defines, inherits, implements. Defaults to imports, calls.
Behavior5/5

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

With no annotations provided, the description carries the full burden of disclosing behavior, and it does so thoroughly. It explains that the analysis is approximate, intra-file, augmented by LSP when available, and that it returns a clear message when topology is disabled or the symbol is not indexed. This goes well beyond a typical description, covering limitations, fallback behavior, and error conditions.

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 front-loaded with the core definition, then proceeds through output structure, primary use, and important caveats. Every sentence adds unique value; there is no repetition of schema content or filler. It is appropriately sized for the tool's complexity and remains highly scannable.

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?

Given that there is no output schema, the description compensates by explaining the two returned sections and their directionality. It also addresses source reliability, cross-file augmentation, and failure modes. This is a complete picture for an agent to know what to expect and when the tool is appropriate, making it self-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?

Input schema description coverage is 100%, with every parameter already documented (name, path, depth, max_bytes, max_nodes, edge_kinds). The description adds high-level context about BFS traversal and blast radius, but does not need to compensate for missing schema information. Per the calibration baseline, a score of 3 is appropriate when the schema already covers all 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 opens with a specific, action-oriented definition: 'Bidirectional BFS blast-radius analysis around a named symbol.' It clearly distinguishes the tool from siblings by naming the two output sections ('depends on' and 'depended on by') and states its primary purpose ('assess blast radius before a refactor'). This is unambiguous and differentiates it from other topology and reference tools.

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 explicitly states the primary use case: 'Primary use: assess blast radius before a refactor.' It also provides practical context with caveats about the topology source being approximate and intra-file, and mentions the LSP fallback for cross-file callers. It does not explicitly name alternative tools to use instead, but the guidance is clear enough for an agent to decide when to invoke it.

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