Skip to main content
Glama
grafeo-mcp

grafeo-mcp

Official
by GrafeoDB

louvain

Read-only

Detect densely linked node communities and assign each to a numbered cluster; adjust resolution to return more, smaller or fewer, larger communities.

Instructions

Find communities (Louvain): groups of densely linked nodes, numbered from 0 by their smallest node ID.

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

Input Schema

NameRequiredDescriptionDefault
resolutionNoAbove 1: more, smaller communities; below 1: fewer, larger ones.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.3.0
    • addedInput schema / properties / resolution / description
      Added value: +"Above 1: more, smaller communities; below 1: fewer, larger ones."
    • removedInput schema / properties / resolution / title
      Removed value: -"Resolution"
    • removedInput schema / title
      Removed value: -"louvainArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "result": {
      -      "title": "Result",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "result"
      -  ],
      -  "title": "louvainOutput",
      -  "type": "object"
      -}New value: +null
  2. First observedv0.2.0

TDQS

B3.3/5.0
Behavior3/5

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

The annotations already state readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds a useful output convention—communities numbered from 0 by smallest node ID—but it does not explain determinism, handling of disconnected graphs, or the exact return shape.

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 one compact sentence, front-loaded with the algorithm and result. The parenthetical algorithm name and the numbering detail both earn their place.

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?

For a simple read-only graph algorithm with one fully documented parameter, the description explains what communities are and how they are numbered. However, without an output schema it leaves the exact return structure—such as whether it returns a node-to-community mapping or a list of communities—unstated.

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?

The single optional 'resolution' parameter has full schema description coverage, including its directional effect on community size. The description adds no further meaning beyond the schema, so the baseline 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?

States a specific verb ('Find') and resource ('communities'), identifies the Louvain algorithm, and defines communities as groups of densely linked nodes. It is clear, but it does not explicitly distinguish itself from siblings such as connected_components.

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?

There is no when-to-use guidance, no condition for choosing Louvain over alternatives like connected_components or other graph algorithms, and no exclusions or prerequisites. Only an implied community-detection use is present.

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