Skip to main content
Glama

get_graph_stats

Retrieve vault-wide graph statistics—note counts, link totals, most-connected notes, and isolated clusters—to assess Obsidian knowledge structure and identify disconnected areas.

Instructions

Return vault-wide graph statistics: note count, link counts, most-connected notes, and isolated clusters.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations and no output schema, the description carries the full burden, and it does disclose the shape of the result by listing the four metric families returned. It stops short of stating that the operation is read-only, its cost on a large vault, or how 'isolated clusters' is defined.

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?

A single sentence with zero filler, front-loading the scope ('vault-wide') before the metric list. Every clause earns its place by naming a distinct returned quantity.

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-param read tool with no annotations or output schema, the description is nearly sufficient: it enumerates the return values, which is exactly what the missing output schema would have provided. The remaining gap is only the unstated read-only/cost behavior.

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 are no parameter semantics to explain and the baseline of 4 applies. Nothing in the description misleadingly implies filtering or scoping options that the empty schema does not support.

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 ('Return') and resource ('vault-wide graph statistics'), then enumerates the concrete metrics: note count, link counts, most-connected notes, isolated clusters. This distinguishes it in substance from siblings like get_backlinks or get_orphans, though it never names an alternative explicitly.

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: 'vault-wide' signals this is an aggregate overview rather than a per-note query, and the enumerated metrics hint at when it is useful. There is no explicit when-to-use, when-not-to-use, or pointer to the sibling tools that cover narrower graph questions.

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