Skip to main content
Glama

get_topology

Read-only

Map Kubernetes service/workload relationships to diagnose incidents. Visualize traffic or ownership hierarchies across namespaces, revealing dependencies without per-resource inspection.

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
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)
namespaceNofilter to a specific namespace for a multi-service incident map; recommended unless you need cross-namespace topology
Behavior4/5

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

Annotations already declare readOnlyHint=true, so the safety profile is known. The description adds behavioral context by listing the types of nodes and edges returned (Services, workloads, Pods, etc.) and the two view modes. It also implies that without a namespace the graph is cross-namespace, adding a scoping behavior not present in the schema. This goes beyond the annotations without over-explaining.

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 efficiently written and front-loaded with the primary use case. Every sentence earns its place: it explains purpose, return value, view modes, namespace guidance, and points to an alternative tool. No 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 tool's moderate complexity, existing annotations, and absence of an output schema, the description is remarkably complete. It covers what the tool returns, how to scope it, which view to choose, and when to use an alternative. It adequately explains the output for an agent to invoke it correctly without needing additional context.

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 parameter descriptions in the schema fully document each field. The description repeats the view modes and namespace recommendation but adds no new parameter syntax or format details. Per the baseline for high schema coverage, a score of 3 is appropriate.

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 the tool maps multi-service incidents or dependency graphs, returning Kubernetes resource nodes and edges. It distinguishes itself from get_neighborhood, which is for smaller focused graphs, and contrasts with inspecting resources one by one, making the purpose specific and unambiguous.

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 guidance is provided: use for incident/dependency mapping, prefer scoped namespaces, choose view=traffic for routing/connectivity questions and view=resources for ownership/hierarchy. It also directs users to get_neighborhood when the suspicious root is already known, naming an alternative. This fully addresses when and when not to use the tool.

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