Skip to main content
Glama
obsidian-mcp

obsidian-mcp

by LWaetzig

List Folders

obsidian_list_folders
Read-onlyIdempotent

Lists folders in an Obsidian vault or subfolder with vault-relative paths and note counts, excluding hidden directories. Use it to browse vault structure and find folders before managing notes.

Instructions

List all folders in the vault (or a subfolder), with note counts.

Hidden directories (those starting with .) such as .obsidian and .trash are automatically excluded.

Args:

  • folder (string, optional): Vault-relative path to list subfolders of (default: vault root)

  • response_format: 'markdown' | 'json' (default: 'markdown')

Returns: List of folders with vault-relative paths, names, and note counts.

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
folderNoVault-relative folder to list subfolders of (default: vault root)
response_formatNoOutput format: 'markdown' for human-readable, 'json' for machine-readablemarkdown

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.1

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description adds some useful behavior – hidden dot-directories such as .obsidian and .trash are excluded, and note counts are included – which helps an agent predict results, but nothing about pagination, ordering, or depth limits is disclosed.

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?

Front-loaded with the core action, then hidden-directory behavior, then Args and Returns. The Args block largely duplicates the schema, which is mild waste, but the overall text is short and well organized.

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?

There is no output schema, so the Returns line carries value by naming the fields (vault-relative paths, names, note counts). Combined with annotations and a fully documented 2-parameter schema, an agent has enough to invoke it correctly; only ordering/depth behavior is left unstated.

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 description coverage is 100%, so the baseline is 3. The Args section restates what the schema already documents (folder default, response_format enum) without adding format, syntax, or edge-case meaning beyond it.

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?

States a specific verb and resource ('List all folders in the vault (or a subfolder), with note counts'), plus the scoping behavior. The resource (folders) is clearly distinct from sibling tools such as obsidian_list_notes and obsidian_create_folder.

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?

Implies the usage context via the folder argument and its default (vault root), so an agent can infer how to scope the listing. However, it never explicitly says when to prefer this over obsidian_list_notes or other sibling tools, and gives no exclusions beyond the hidden-directory note.

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