Skip to main content
Glama

get_topology

Read-only

Map Kubernetes service dependencies and ownership relationships to diagnose incidents. Use traffic view for connectivity, resources view for deployment hierarchy.

Instructions

Use to map a multi-service incident or dependency graph, preferably scoped to a namespace. Returns Kubernetes resource nodes and edges (Services, workloads, Pods, Ingresses, ConfigMaps, Secrets, owners) so you can see service-to-workload traffic and ownership relationships instead of inspecting resources one by one. Use view=traffic for routing/connectivity questions and view=resources for ownership/deployment hierarchy. Always specify namespace unless you specifically need a cross-namespace graph. If you already know the suspicious root, use get_neighborhood for a smaller focused graph.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
namespaceNofilter to a specific namespace for a multi-service incident map; recommended unless you need cross-namespace topology
viewNoview mode: traffic for service routing/connectivity or resources for ownership hierarchy
formatNooutput format: graph (default, full node/edge data) or summary (text description of resource chains)
Behavior5/5

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

Annotations already declare readOnlyHint=true. The description adds significant context by detailing the returned data (nodes and edges for Services, workloads, Pods, etc.) and explaining the two views (traffic vs resources), which agents need to interpret the output correctly.

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?

Description is concise with four sentences, all front-loaded with the primary purpose. Each sentence adds necessary guidance without redundancy or fluff.

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 the complexity of a topology mapping tool, the description covers purpose, parameters, return values, and usage alternatives. With no output schema but readOnlyHint, the description adequately explains what the agent will receive.

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 coverage is 100% so baseline is 3. The description adds value beyond the schema by explaining the purpose of the 'view' parameter (traffic vs resources) and strongly recommending the 'namespace' parameter, providing meaningful usage context.

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 that the tool maps a multi-service incident or dependency graph, returning Kubernetes resource nodes and edges. It explicitly distinguishes itself from the sibling tool get_neighborhood, which is for smaller focused graphs.

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 on when to use the tool (multi-service incident, dependency graph), when to specify namespace, which view to use for different questions, and recommends get_neighborhood as an alternative when the suspicious root is known.

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/skyhook-io/radar'

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