Skip to main content
Glama
grafeo-mcp

grafeo-mcp

Official
by GrafeoDB

pagerank

Read-only

Rank graph nodes by link importance and return the top results, optionally filtered by label, to identify influential entities such as key people.

Instructions

Rank nodes by PageRank: how many links point at them, and from how important nodes. Returns the top_k.

For "the most important person", pass label="Person".

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": "pagerank"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changedv0.3.0
    • addedInput schema / properties / damping / description
      Added value: +"Between 0 and 1."
    • removedInput schema / properties / damping / title
      Removed value: -"Damping"
    • addedInput schema / properties / label
      Added value: +{
      +  "description": "Return only nodes with this label, e.g. \"Person\"; scores still cover the whole graph.",
      +  "type": "string"
      +}
    • removedInput schema / properties / max_iterations / title
      Removed value: -"Max Iterations"
    • removedInput schema / properties / tolerance / title
      Removed value: -"Tolerance"
    • 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: -"pagerankArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "result": {
      -      "title": "Result",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "result"
      -  ],
      -  "title": "pagerankOutput",
      -  "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 declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds that it returns a truncated top_k list and that label filtering does not narrow the computation, but says nothing about convergence, cost on large graphs, or what happens when tolerance/max_iterations cut the iteration short.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, front-loaded with the core action followed by a practical invocation hint. 'Returns the top_k' is mildly redundant with the top_k parameter and the example sentence is slightly clipped in phrasing, but nothing is wasted.

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

Completeness3/5

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

With no output schema, the description never says what a result row looks like (node identity plus score, presumably) and leaves two undocumented parameters unexplained. For a read-only analytical tool this is adequate to invoke, but not fully self-contained.

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 coverage is 60%: label, top_k, and damping are documented, while tolerance and max_iterations have no descriptions in either schema or description. The description reinforces the label semantics but adds no meaning for the three algorithmic parameters that govern accuracy and runtime.

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?

States a specific verb and resource: rank nodes by PageRank, with a plain-language gloss of the algorithm (links pointing at a node, weighted by source importance). This is enough to tell apart from non-centrality siblings like get_neighbors or louvain, though it never names betweenness_centrality as the closest alternative.

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

Usage Guidelines3/5

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

The example 'For "the most important person", pass label="Person"' implies the intended use case and shows a concrete invocation. There is no explicit when-to-use vs when-not-to-use framing or comparison to other centrality measures, so guidance is implied rather than stated.

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