Skip to main content
Glama
grafeo-mcp

grafeo-mcp

Official
by GrafeoDB

betweenness_centrality

Read-only

Rank nodes by betweenness centrality to identify bridges and bottlenecks in a graph, revealing which nodes lie on the most shortest paths between others.

Instructions

Rank nodes by betweenness: how often they lie on shortest paths between others (bridges, bottlenecks).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "betweenness_centrality"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelNoReturn only nodes with this label, e.g. "Person"; scores still cover the whole graph.
top_kNoNodes to return.
normalizedNoScale scores to 0..1.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.3.0
    • addedInput schema / properties / label
      Added value: +{
      +  "description": "Return only nodes with this label, e.g. \"Person\"; scores still cover the whole graph.",
      +  "type": "string"
      +}
    • addedInput schema / properties / normalized / description
      Added value: +"Scale scores to 0..1."
    • removedInput schema / properties / normalized / title
      Removed value: -"Normalized"
    • addedInput schema / properties / top_k / description
      Added value: +"Nodes to return."
    • removedInput schema / properties / top_k / title
      Removed value: -"Top K"
    • removedInput schema / title
      Removed value: -"betweenness_centralityArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "result": {
      -      "title": "Result",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "result"
      -  ],
      -  "title": "betweenness_centralityOutput",
      -  "type": "object"
      -}New value: +null
  2. First observedv0.2.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already establish that this is a read-only, closed-world operation. The description adds useful conceptual context by defining betweenness as lying on shortest paths, but it does not disclose any computational behavior, limitations, or result-shape expectations beyond that metric definition.

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 a single tightly written sentence with the verb and metric definition front-loaded. There is no redundant or filler language.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple read-only ranking tool with three fully documented parameters and no output schema, the description provides enough conceptual context to understand what is being ranked. A brief note about algorithm cost or output ordering could improve it, but nothing essential is missing for correct invocation.

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 input schema already explains label, top_k, and normalized, including the important note that label filtering does not change the graph-wide scores. The description adds no parameter-specific semantics, so the baseline score of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/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: "Rank nodes by betweenness," and explains the metric in accessible terms (shortest paths, bridges, bottlenecks). It does not explicitly compare itself with sibling centrality or community-detection tools such as pagerank or louvain, so it stops short of full sibling differentiation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explains what the metric means but gives no explicit guidance about when to choose this tool versus alternatives like pagerank, louvain, or connected_components. An agent must infer the use case from the metric definition alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.