Skip to main content
Glama

graph_stats

Read-onlyIdempotent

Report node counts by label, relationship counts by type, and the graph store path to help agents assess the size and structure of a local Relate repository graph.

Instructions

Size of the graph: node counts per label and relationship counts per type, plus the store path. Returns {store, nodes: {label: n}, relationships: {type: n}}.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare this read-only, idempotent, closed-world, and non-destructive, so the safety profile is covered. The description adds real value beyond that by specifying the exact return envelope ({store, nodes: {label: n}, relationships: {type: n}}), which is the key behavioral fact for a stats call and is not supplied by any output schema.

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 short sentences: the summary comes first, followed by the return shape. Every clause carries information and nothing is repeated from the schema or annotations.

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-argument, read-only stats tool with no output schema, the definition covers purpose and exact return structure, which is what an agent needs to call it and read the result. Only minor omissions remain, such as cost or behavior on a very large graph.

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 there is nothing for the descriptions to disambiguate; the baseline applies. The definition correctly spends its words on the return shape instead of inventing parameter detail.

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 names a specific resource and scope: node counts per label, relationship counts per type, and the store path. It is immediately clear what the tool reports, though it does not distinguish itself from the sibling 'graph_schema', which could plausibly sound similar to an agent scanning the catalog.

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?

Usage is only implied — an agent can infer this is the tool to call for a quick size/overview of the graph, but the definition never says when to prefer it over 'graph_schema' or 'cypher', nor does it give any prerequisite or exclusion. Adequate but with a clear routing gap.

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