Skip to main content
Glama
obsidian-mcp

obsidian-mcp

by Soleil1043

create_note

Create a new Markdown note in an Obsidian vault with initial content. Missing parent folders are created automatically, and existing notes are only replaced when overwrite is set.

Instructions

在 Obsidian vault 中创建新笔记并写入初始内容。路径为 vault 内相对路径(以 .md 结尾),不存在的父目录会自动创建;目标已存在时默认报错,仅当显式传 overwrite=true 才覆盖。

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

Input Schema

NameRequiredDescriptionDefault
pathYes新笔记路径(vault 内 POSIX 风格相对路径,需以 .md 结尾;父目录不存在时自动创建)
contentNo初始 Markdown 内容;默认为空笔记
if_matchNo乐观锁(overwrite=true 时可用):传入上次 read_note 返回的 etag,与当前内容不符时拒绝写入
overwriteNo目标已存在时是否覆盖;默认 false(报错)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does well: it discloses that missing parent directories are auto-created, that existing targets fail by default, and that overwriting requires an explicit flag. It omits what the call returns and says nothing about the optimistic-lock path, which keeps it short of 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.

Conciseness5/5

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

Two sentences, front-loaded with the action, then the path rule, then the overwrite rule in descending order of importance. Every clause contributes a distinct constraint and there is no filler.

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 4-parameter mutation tool with no annotations and no output schema, the description covers creation, path conventions, directory creation, and overwrite safety. The only real gap is return-value/pagination behavior and the etag conflict path, which the schema partially covers.

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%, so baseline is 3. The description reinforces path semantics (vault-relative, .md suffix, auto-created parents) and the overwrite default, but adds nothing about content or about if_match/etag usage beyond what the schema already states.

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 opens with a concrete verb-plus-resource ('在 Obsidian vault 中创建新笔记并写入初始内容') and immediately scopes the path convention. It implicitly separates itself from edit_note/read_note by being a creation tool, but never names a sibling, so differentiation is inferred rather than stated.

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?

It states a real usage rule – the target existing causes an error unless overwrite=true is explicitly passed – which tells the agent how to behave in the collision case. However, it never says to use edit_note for existing notes or delete_note/create_folder instead, so the when-not-to-use-this guidance is only implied.

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