Skip to main content
Glama
grafeo-mcp

grafeo-mcp

Official
by GrafeoDB

connected_components

Read-only

Group graph nodes into connected components while ignoring edge direction, and return the component count plus a mapping of component IDs to node IDs.

Instructions

Group nodes into connected components, ignoring edge direction.

Returns num_components and components ({component id: [node IDs]}).

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.3.0
    • removedInput schema / title
      Removed value: -"connected_componentsArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "result": {
      -      "title": "Result",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "result"
      -  ],
      -  "title": "connected_componentsOutput",
      -  "type": "object"
      -}New value: +null
  2. First observedv0.2.0

TDQS

A3.7/5.0
Behavior4/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 genuine behavioral value by disclosing the return shape (num_components plus a component-id-to-node-IDs map), which matters because there is no output schema. It omits any note about cost on large graphs, which is the main remaining gap.

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?

Two tight sentences with zero waste: the operation and its direction-agnostic semantics come first, followed by the return contract. Nothing is buried or redundant.

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 zero-parameter read-only tool with no output schema, the definition covers both what it computes and what it returns, which is what an agent needs to call it. The only shortfall is not stating that the computation spans the entire graph and may be expensive on large graphs.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool takes zero parameters, so the baseline is 4. The description correctly implies the operation runs over the whole graph rather than a filtered subgraph, though it does not state that scope explicitly.

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 ('Group nodes into connected components') and adds a precise algorithmic qualifier ('ignoring edge direction'), which pins down the semantics. It does not explicitly distinguish itself from the graph-algorithm siblings such as louvain, which also groups nodes, so it stops short of a 5.

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 or when-not-to-use guidance, and no mention of how this differs from louvain or other grouping tools. The agent is left to infer that this is the exact-connectivity tool while louvain is the community-detection one.

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