Skip to main content
Glama
Obsidian MCP Server
by davidatoms

obsidian_list_folders

List folders in an Obsidian vault at a specific path or recursively, including note counts per folder, to browse and understand vault structure.

Instructions

Browse the vault's folder structure. Can list folders at a specific path or recursively show all folders. Includes note counts for each folder.

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

Input Schema

NameRequiredDescriptionDefault
pathNoParent folder path (omit for vault root)
formatNomarkdown
recursiveNoList all subfolders recursively

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does add useful behavior beyond the schema — that results include per-folder note counts and that recursion is optional — but it omits read-only safety framing, pagination/limit behavior, and any sense of how large vaults are handled.

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

Conciseness4/5

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

Three short sentences, front-loaded with the core action before the mode variants and the output detail. Minor redundancy between 'Browse the vault's folder structure' and 'list folders', but no filler.

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 three-optional-parameter read tool with no output schema, the description covers purpose, modes, and one notable output trait (note counts). It does not explain what the format parameter changes, nor whether folder paths are vault-relative, leaving a modest gap.

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%: path and recursive are already documented in the schema, and the description reinforces their meaning with 'at a specific path' and 'recursively show all folders'. The format parameter (markdown vs json) is left entirely unexplained in both schema and description, so no extra meaning is added for it.

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 concrete verb and resource ('Browse the vault's folder structure') and clarifies scope through the two listing modes. It is clearly distinguishable from note-oriented siblings like obsidian_list_notes, but it never names an alternative to contrast against.

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 implied by the phrase 'browse the vault's folder structure' and by the path/recursive modes, so an agent can infer when it applies. There is no explicit when-not guidance, no mention of when to prefer obsidian_list_notes or search tools instead, and no prerequisites stated.

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