Skip to main content
Glama
obsidian-mcp

obsidian-mcp

by Soleil1043

create_folder

Creates a directory inside an Obsidian vault, automatically creating missing parent folders while rejecting existing, hidden, or out-of-vault paths.

Instructions

在 Obsidian vault 中创建文件夹(多级父目录自动创建)。目录已存在时报错;点开头的隐藏目录(如 .obsidian 同类)与越出 vault 根的路径一律拒绝。

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "path": "<path>"
    },
    "name": "create_folder"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes要创建的目录路径(vault 内 POSIX 风格相对路径;父目录不存在时自动创建;不允许点开头的隐藏目录)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden and does so well: it discloses auto-creation of parent directories, non-idempotent behavior (error when the folder already exists), and two rejection rules (dot-prefixed hidden directories such as .obsidian, and paths escaping the vault root). It omits permission requirements and the failure/return shape, which keeps it from a 5.

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?

One dense sentence with a parenthetical: purpose first, then the failure and rejection rules. No filler, though the parenthetical and the semicolon-chained constraints make it slightly packed for a single-parameter tool.

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?

For a one-parameter creation tool with no annotations and no output schema, the description covers the important behavioral edges (existing directory, hidden directories, vault-escape). The only real gap is that the return value or success confirmation is never described, which matters since no output schema exists.

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 100% and the single path parameter already documents POSIX-style relative paths, auto-created parents, and the hidden-directory restriction. The description largely restates those constraints at the tool level rather than adding new syntax or format detail, so the baseline 3 applies.

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 gives a specific verb and resource ('在 Obsidian vault 中创建文件夹') plus a scope qualifier (multi-level parents auto-created). It is clearly a folder-creation tool, distinct from note-oriented siblings like create_note or move_note, though it never names an alternative explicitly.

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 action itself (create a directory when one does not exist) and reinforced by the note that an existing directory raises an error. There is no explicit when-to-use-vs-alternative routing, e.g. no guidance on whether to use this versus move_note when relocating content, so an agent must infer context.

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