Skip to main content
Glama
Obsidian MCP Server
by davidatoms

obsidian_get_vault_stats

Retrieve vault statistics like total notes, tags, links, folders, average note length, and orphan count to assess vault size and health.

Instructions

Get comprehensive statistics about the vault including total notes, tags, links, folders, average note length, and orphan count. Useful for understanding vault size and health.

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

Input Schema

NameRequiredDescriptionDefault
formatNomarkdown

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden. It usefully names the computed metrics, but it does not state that the operation is read-only, how metrics like average note length or orphan count are calculated, or how the optional format affects output.

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 two tight sentences with the primary purpose front-loaded and no wasted wording. The metric list is directly relevant to the tool's behavior.

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 statistics tool, the description adequately names the metrics returned. However, with no annotations or output schema, it should say more about the optional format parameter, output presentation, and concise behavioral expectations.

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

Parameters2/5

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

There is one optional parameter, format, with enum values markdown and json and a default of markdown, but schema description coverage is 0% and the tool description never mentions it. The schema enum conveys the possible output formats, but the description adds no meaning about when or why to use each format.

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 uses a specific verb and resource, 'Get comprehensive statistics about the vault', and enumerates included metrics such as total notes, tags, links, folders, average note length, and orphan count. It is clearly an aggregate-stats tool, though it does not explicitly distinguish itself from sibling tools like obsidian_list_notes or obsidian_get_orphans.

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 phrase 'Useful for understanding vault size and health' gives a broad context for use, but it does not state when to choose this tool over alternatives such as listing notes, tags, or orphans. The guidance is implied rather than explicit.

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