Skip to main content
Glama

Get network topology

get_td_topology
Read-only

Map nodes and connections under a network root, flagging structural issues. Use to verify wiring and diagnose topology problems.

Instructions

Read-only: return the nodes AND the connections (wiring) under a network root, flagging obvious structural issues. Returns {nodeCount, connectionCount, issues[], topology}. Use this when you need how nodes are wired together; use get_td_nodes/find_td_nodes when you only need the node list without connections, or snapshot_td_graph when you also want each node's parameters captured for diffing. Token economy: point it at a specific network root rather than the project root, and leave recursion off unless you need nested networks.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
root_pathNoNetwork root to map./project1

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesThe network root that was mapped, echoing the request.
issuesYesPlain-language structural problems detected, e.g. dangling or orphaned nodes.
topologyYesThe full graph: the node list and the connection list.
nodeCountYesTotal number of nodes found under the root.
connectionCountYesTotal number of wires (connections) between those nodes.
Behavior4/5

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

Starts with 'Read-only' which aligns with annotations, and adds behavioral details beyond them: flagging structural issues and returning a structured payload with nodeCount, connectionCount, issues, and topology. The recursion advice is also useful. Annotations cover read-only/destructive hints, so this description adds meaningful context without contradiction.

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?

Three sentences, no repetition of schema or annotation. Each sentence earns its place: purpose, alternatives, and practical advice. Front-loaded with 'Read-only' and the core action, making it easy to scan. Highly concise yet complete.

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?

With one parameter, a solid output schema, and annotations already present, the description covers all necessary context: what it does, when to use it, what distinguishes it, and practical usage tips. Nothing important is left unaddressed for an agent to select and invoke it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema covers root_path 100%, and the description enhances it by advising to use a specific network root rather than the project root, plus a note on recursion behavior. This adds practical meaning beyond the default value and basic type, though it does not go into deep detail.

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 states a specific verb and resource ('return the nodes AND the connections under a network root') and clearly distinguishes itself from sibling tools like get_td_nodes and snapshot_td_graph. It also notes a unique function: flagging structural issues. This fully clarifies what the tool does and how it differs.

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?

Explicit usage guidance is provided: use when wiring is needed, use get_td_nodes/find_td_nodes for node lists without connections, and snapshot_td_graph when parameters are required for diffing. Even advises token economy by targeting a specific root and leaving recursion off. This is exemplary.

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/Pantani/tdmcp'

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