Skip to main content
Glama
obsidian-mcp

obsidian-mcp

by Soleil1043

move_note

Move or rename Obsidian notes while automatically updating [[wikilinks]] and Markdown relative links; ambiguous links are reported, and existing targets are not overwritten.

Instructions

移动或重命名 Obsidian vault 中的笔记,并自动更新 vault 内指向该笔记的 [[wikilink]] 与 Markdown 相对链接(无法唯一解析的歧义链接保持原样并在结果中报告);被移动笔记自身的相对链接也会重新指向正确位置。目标已存在时报错且不覆盖;目标父目录不存在时自动创建。

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": {
      "from": "<from>",
      "to": "<to>"
    },
    "name": "move_note"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYes目标路径(vault 内 POSIX 风格相对路径,需以 .md 结尾);同目录即重命名,跨目录即移动;目标父目录不存在时自动创建
fromYes源笔记路径(vault 内 POSIX 风格相对路径,需以 .md 结尾)
if_matchNo乐观锁:传入上次 read_note 返回的 etag,与源笔记当前内容不符时拒绝移动

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden of behavioral disclosure, and it discharges that burden well: it discloses automatic link rewriting, the treatment of ambiguous links (left unchanged and reported), the non-overwrite error behavior, and automatic parent-directory creation. The remaining gap concerns the result contract: when it says ambiguous links are "reported", it does not specify the shape or fields of that report.

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?

The purpose is front-loaded and every clause conveys information: the link-rewrite scope, the ambiguity handling, the non-overwrite rule, and the parent-directory rule. The single dense run-on with nested parentheses is harder to scan than a short bulleted structure would be, but it wastes little.

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 mutation tool with no annotations and no output schema, the description covers the important side effects and failure modes. The one shortfall is the return-value contract: because no output schema exists, the vague phrase "在结果中报告" leaves the agent unsure what it receives after the operation succeeds.

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 the schema already documents how both required paths work and the if_match etag. The description mostly restates the semantics of `to` (rename versus move, auto-create parent) rather than adding new meaning, and it never mentions `if_match` or the optimistic-locking precondition at all. With full schema coverage, this meets the baseline 3.

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?

Combines a specific verb and resource (移动或重命名 Obsidian vault 中的笔记) with the distinctive side effect of automatically rewriting [[wikilink]] and relative links. This makes it clearly distinguishable from content-editing siblings such as edit_note or manage_frontmatter.

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?

The description states an implied rule for how to use the tool: the target path determines whether the operation is a rename (same directory) or a move (different directory), and the target existence and parent-directory-creation behaviors are described. However, it never says when to choose this tool over siblings such as edit_note or create_note, and it gives no explicit when-not guidance.

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