Skip to main content
Glama
aleksakarac

Obsidian MCP Extended

by aleksakarac

vault_statistics_fs_tool

Analyze your entire Obsidian vault to get aggregate statistics including total notes, word count, links, unique tags, and average words per note.

Instructions

Get aggregate statistics for the entire vault.

Walks through the vault directory, analyzes all markdown files (excluding .obsidian), and aggregates statistics. Uses memory-efficient generator-based iteration.

Returns:

  • Total notes count

  • Total words across all notes

  • Total links (wikilinks + markdown links)

  • Unique tags count and sorted list

  • Average words per note

When to use:

  • Understanding vault size and complexity

  • Content inventory and auditing

  • Identifying most-used tags

  • Tracking vault growth

Performance:

  • 1,000 notes: < 30 seconds

  • 10,000 notes: < 5 minutes

Returns: Vault-wide aggregate statistics

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
vault_pathNoPath to vault root (optional, uses OBSIDIAN_VAULT_PATH env if not provided)
ctxNo
Behavior5/5

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

No annotations provided, but the description details how it works (walks directory, uses generator-based iteration, excludes .obsidian) and includes performance estimates. This fully compensates for missing annotations.

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?

Well-structured with clear sections, bullet points for returns and use cases. Each sentence adds value; no redundancy. Front-loaded purpose and returns.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite no output schema, description lists all return fields. Covers performance, exclusions, and usage intent. Complete for the tool's single-purpose aggregation function.

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?

Schema coverage is 50% (vault_path described, ctx not). The description adds meaning by noting vault_path is optional and defaults to env variable, but fails to explain the ctx parameter. Partial compensation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states it gets aggregate statistics for the entire vault and lists specific metrics (total notes, words, links, tags, average words). It implicitly distinguishes from sibling note_statistics_fs_tool by focusing on vault-wide aggregation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides explicit when-to-use scenarios like understanding vault size, content inventory, and tracking growth. Does not mention when not to use or alternatives, but the use cases are clear and helpful.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aleksakarac/obsidian-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server