Skip to main content
Glama
obsidian-mcp

obsidian-mcp

by Soleil1043

delete_note

Remove a note from an Obsidian vault by moving it to the restorable .trash folder by default, or delete it permanently when explicitly requested. Prevents accidental data loss.

Instructions

删除 Obsidian vault 中的笔记。默认移入 vault 根 .trash/(Obsidian 原生可恢复位置,同名自动加时间戳后缀),仅在明确要求时传 permanent=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": "delete_note"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes要删除的笔记路径(vault 内 POSIX 风格相对路径,需以 .md 结尾)
if_matchNo乐观锁:传入上次 read_note 返回的 etag,与当前内容不符时拒绝删除
permanentNotrue=永久删除(不可恢复);默认 false=移入 vault 根 .trash/(Obsidian 可在其界面恢复)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/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 burden and does well: it discloses the default recoverable trash location, the Obsidian-native recovery path, the automatic timestamp suffix on name collisions, and that permanent=true is irreversible. It omits the optimistic-lock failure behavior and what the call returns, 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.

Conciseness5/5

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

Two sentences, no waste, with the default safe behavior front-loaded before the destructive opt-in. Every clause carries information an agent needs.

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 delete operation with no annotations and no output schema, the description covers the critical concerns: recoverability, where deleted files go, and the explicit opt-in for irreversible deletion. The only gap is that it does not surface the if_match conflict behavior, though the schema documents it fully.

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 all three parameters (path, if_match, permanent) are already documented in the schema. The description restates the permanent=true semantics and adds the collision-suffix detail, but adds no meaning for path or if_match beyond the schema. Baseline 3 applies.

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: '删除 Obsidian vault 中的笔记' (delete a note in the Obsidian vault). This clearly distinguishes it from sibling tools such as read_note, edit_note, and move_note.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit guidance that the default is a reversible move to .trash/, and that permanent=true should only be passed when explicitly requested. It does not name alternative tools for cases such as 'move the note instead', but the when-to-use condition for the destructive mode is clear.

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