Skip to main content
Glama
aleksakarac

Obsidian MCP Extended

by aleksakarac

note_statistics_fs_tool

Get comprehensive statistics for any Obsidian note: word and character counts, links, tags, headings, code blocks, and file metadata. Analyze note complexity and structure.

Instructions

Get comprehensive statistics about a single note.

Analyzes the note for words, characters, lines, links (wikilinks and markdown), tags (frontmatter and inline), headings, code blocks, and file metadata.

Returns detailed metrics including:

  • Word count (excluding frontmatter and code blocks)

  • Character counts (with and without spaces)

  • Line count

  • Links: wikilinks, markdown links, total links

  • Tags: frontmatter and inline tags

  • Headings: count, by level, structure

  • Code: fenced code blocks and inline code

  • File metadata: size, timestamps

When to use:

  • Analyzing individual note complexity

  • Tracking note growth over time

  • Understanding note structure

  • Content auditing

Performance:

  • Any note size: < 1 second

Returns: Comprehensive statistics dictionary

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filepathYesPath to note (relative to vault or absolute)
vault_pathNoPath to vault root (optional, uses OBSIDIAN_VAULT_PATH env if not provided)
ctxNo
Behavior4/5

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

With no annotations provided, the description carries the full burden. It covers performance (<1 second), exclusions (word count excludes frontmatter and code blocks), and return details. It lacks mention of side effects or dependencies, but overall is transparent.

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 well-structured with clear sections for purpose, analyzed elements, returned metrics, usage, and performance. Every sentence adds value without redundancy.

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?

Given the tool's complexity and absence of an output schema, the description effectively lists all returned metrics (e.g., word count, tags, headings). It lacks exact structure but provides sufficient context for understanding tool output.

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 67% (2 of 3 parameters have descriptions). The description adds examples and clarifications (e.g., relative vs absolute path, optional vault_path), but doesn't significantly extend beyond the schema. Baseline 3 is appropriate.

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 clearly states 'Get comprehensive statistics about a single note' and lists detailed analysis areas, distinguishing it from vault-wide tools like vault_statistics_fs_tool. However, it does not explicitly differentiate from all sibling tools, so it scores 4.

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?

The 'When to use' section provides clear use cases such as analyzing note complexity and tracking growth. It does not mention when not to use or alternatives, but the context is adequate.

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