Skip to main content
Glama

get_edge_bottlenecks

Read-onlyIdempotent

Finds architectural bottleneck edges in dependency graphs using betweenness centrality, bridge detection, and co-change weight. Helps prioritize edges to monitor and decouple during refactoring.

Instructions

Find architectural bottleneck edges in the import graph: edges sitting on many shortest paths (edge betweenness, Brandes), edges whose removal would disconnect the graph (bridges, Tarjan), and nodes that are single points of failure (articulation points). Score combines structural centrality with co-change weight (bottleneckScore = betweenness × (1 + coChangeWeight)). Use to identify edges to monitor during refactoring and to prioritize decoupling work. For general importance use get_pagerank instead. Read-only. Returns JSON: { edges: [{ sourceFile, targetFile, betweenness, coChangeWeight, bottleneckScore, isBridge }], articulationPoints: [...], stats }.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
top_nNoMax ranked edges (default: 50; 0 = return all)
min_scoreNoFilter edges with bottleneckScore < min_score (default: 0)
samplingNoauto (default): √V source sampling for graphs >500 nodes; full: always compute exactly
Behavior5/5

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

Annotations already declare readOnly, non-destructive, idempotent. Description adds substantial behavioral detail: mentions algorithm names (Brandes, Tarjan), output JSON structure, and score composition. No contradictions.

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, front-loaded with purpose and algorithm explanation, then usage guidance. No extraneous words, every sentence adds value.

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?

Despite no output schema, the description details the return format (edges with fields, articulationPoints, stats) and scoring formula. Combined with high schema coverage and annotations, the tool is fully documented for agent use.

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 covers all three parameters with descriptions (100% coverage). The description does not add new parameter details beyond what the schema already provides, so baseline 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?

Description explicitly identifies the tool's purpose: finding architectural bottleneck edges using betweenness, bridges, and articulation points. It explains the scoring formula and distinguishes from get_pagerank, all with specific verbs and domain terms.

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?

Clearly states when to use ('identify edges to monitor during refactoring, prioritize decoupling work') and explicitly advises to use get_pagerank for general importance, providing an alternative.

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/nikolai-vysotskyi/trace-mcp'

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