Skip to main content
Glama

Get vault statistics

get_vault_stats
Read-only

Retrieves statistics about an Obsidian vault to help you assess its size and content composition at a glance.

Instructions

Get statistics about a vault

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_vault_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
vaultNoVault name. May be omitted when only one vault is configured; see list_vaults.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv2.0.1
    • addedInput schema / $schema
      Added value: +"http://json-schema.org/draft-07/schema#"
    • changedInput schema / properties / vault / description
      Previous value: -"Vault name"New value: +"Vault name. May be omitted when only one vault is configured; see list_vaults."
    • removedInput schema / required
      Removed value: -[
      -  "vault"
      -]
  2. First observedv1.0.0

TDQS

C2.3/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered without the description's help. The description adds nothing beyond that: it does not say whether stats are computed live or cached, whether the call is expensive on large vaults, or what shape the results take. With no output schema, the omission of result shape matters.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One short sentence with zero filler is structurally clean and front-loaded. However, it is undersized rather than appropriately sized — brevity here comes at the cost of all substance, which is not the same as conciseness.

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

Completeness2/5

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

With no output schema, the description is the only place where the return value could be explained, and it is not. An agent reading this cannot anticipate what fields come back or how to use them, which is a real gap for a read tool whose entire value is its 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?

There is a single optional parameter whose schema description is complete (100% coverage), including the fallback behavior when only one vault exists. The description contributes nothing about the parameter, but per the high-coverage baseline the schema does the work, so a 3 is appropriate.

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

Purpose2/5

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

The description 'Get statistics about a vault' is essentially a restatement of the title 'Get vault statistics' with word order swapped. It names a verb and resource but never says which statistics (counts of notes, tags, links, storage size), so an agent cannot tell what it actually returns. It is distinct from siblings only because no sibling mentions vault statistics.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no exclusions, and no mention of alternatives. The only routing hint anywhere in the definition — 'see list_vaults' for the optional vault parameter — lives in the schema, not the description, so the description itself provides no usage context.

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