codetopo
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| codetopo_indexC | Index a repository into a codetopo graph database. |
| codetopo_descendantsB | Nodes transitively reachable from a node over calls and imports edges. |
| codetopo_ancestorsA | Nodes from which a node is transitively reachable over calls and imports edges. |
| codetopo_blast_radiusB | Nodes that break if a node changes: dependents, overriders, and implementers. |
| codetopo_pathB | Shortest typed path between two nodes, or the reason there is none. |
| codetopo_statsA | Node and edge totals for an index, with per-kind breakdowns. |
| codetopo_verifyB | Verify the tamper-evident audit chain of an index. |
| codetopo_snapshotB | Export the whole graph as a portable snapshot, bound to the audit head. |
| codetopo_diagnosticsB | The diagnostics recorded when the index was built - dependency cycles, multi-definitions, unresolved calls, and the rest - as data, exactly as the CLI prints them. |
| codetopo_rankA | The top symbols by fan-in, fan-out, blast-radius size, cyclomatic complexity, or a centrality measure (pagerank, betweenness, closeness, eigenvector, katz) - measurements over the graph, with the measurement's method stated in the result. A measure that does not converge on the graph is reported as an absence with its reason, never a partial result. A ranking of measurements, never a score of code quality. |
| codetopo_diagnose_hotspotA | A composite over the atomic tools: the top-ranked symbols by the chosen measure, each with its blast-radius size, neighborhood size (depth 1), and the unresolved/external references touching it, plus the index-level diagnostics summary. Every number is an atomic query's output - the composite orchestrates and presents, it does not measure. What the graph could not resolve is stated per hotspot, never hidden. |
| codetopo_diffA | Compare two indexes (or two snapshot files): added, removed, and changed nodes and edges, plus the blast-radius movement of every touched symbol. Give exactly one before source and one after source. |
| codetopo_metricsA | Coupling and cohesion measurements for every type and package (CODE_SCHEMA section 9): CBO, RFC, LCOM pair counts, TCC, ATFD, WMC per type; Ca, Ce, instability, and separately-named external coupling per package. Every metric's method is stated in the result. Measurements only - no thresholds, no verdicts. |
| codetopo_communitiesA | The Leiden partition of the dependency graph (Traag et al. 2019; modularity quality, resolution 1.0, fixed published seed) over the undirected CODE_SCHEMA section 9 projection weighted by edge multiplicity: community count, the partition's modularity Q (absent when the graph has no edges), per-community sizes and internal/cut edge counts, and node assignments (limit caps the assignment list; summaries are always full and truncation is stated). Measurements with a stated method - no thresholds, no verdicts. |
| codetopo_topo_sortA | The safe change order of the graph: topological order of the SCC-condensed CODE_SCHEMA section 9 dependency DAG (Kahn's algorithm over Tarjan components). Groups are emitted in dependency order - every dependency of a group appears in an earlier group - members sorted by id. A multi-node group is a dependency cycle and is flagged cyclic, never disguised as an order. |
| codetopo_renderB | The graph's layout specification: 'layered' (layout spec v1, the default) or 'force' (Fruchterman-Reingold, layout spec v2 - deterministic, fixed parameters recorded in the spec). Above the force ceilings the answer is a stated decline naming the ceiling, not a partial drawing. The same spec objects serve the CLI's render command and the HTTP render route. |
| codetopo_historyA | Hotspots (change frequency x complexity, both factors stated) and change coupling (support/confidence as pair counts) over a local working tree's git history. History is local-only: without repo_path the answer is the unmeasured report (measured: false with the reason), never invented numbers. |
| codetopo_neighborhoodB | The subgraph within a few hops of a node, in both directions (contains/defines excluded). |
| codetopo_get_symbolA | One node in full - kind, location, tier, defines and refs - plus its incident edges grouped by kind and direction, with counts (containment excluded). Errors when the id is unknown. |
| codetopo_search_symbolsA | Find symbols by name (case-insensitive substring of the label) - the discovery step before the exact-id queries. |
| codetopo_describe_schemaA | The schema this server speaks: node and edge kinds, tier rules, and the query vocabulary. Needs no database. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 21 tools
Most tools have sharply distinct purposes (stats vs verify vs snapshot vs diagnostics are clearly separated, and composite tools like diagnose_hotspot and rank explicitly state they only orchestrate atomic queries). The main confusion risk is the cluster of graph-traversal tools — neighborhood, descendants, ancestors, blast_radius, and path — which all return related node sets, though the descriptions do disambiguate direction and edge kinds. A few analysis tools (metrics, rank, communities, diagnose_hotspot) overlap in flavor but differ in output.
Every tool uses the codetopo_ prefix with snake_case, which is highly predictable. The only minor deviation is that some names are verb-first (get_symbol, search_symbols, describe_schema, topo_sort) while others are bare nouns (metrics, stats, diagnostics, communities, history), but this reads naturally rather than chaotically.
21 tools is at the heavy end, but the domain (indexing, graph traversal, metrics, community detection, history, diffing, audit/snapshot) is genuinely broad and each tool maps to a distinct analysis. It could be trimmed by folding e.g. ancestors/descendants or stats/diagnostics, but nothing feels gratuitous.
The surface covers the full lifecycle: index creation, querying, structural traversal, measurement, visualization specs, snapshots, and audit verification. The notable gap is index management — there is no way to list existing indexes or delete/drop one, and no raw/arbitrary graph query escape hatch, so agents working with multiple indexes have a dead end.