Skip to main content
Glama
stonematt

mcp-obsidian-cli

by stonematt

obsidian_delete

Delete a note by file name or exact path. Sends it to trash by default; set permanent to true for irreversible deletion.

Instructions

Delete a note, selecting it by file name or exact path.

Wraps the CLI's delete Verb. DESTRUCTIVE: by default the note is moved to the system trash (recoverable). Pass permanent: true to skip the trash and delete irrecoverably — there is no undo for a permanent delete.

Parameters: file (optional) — note name using wikilink resolution (e.g. 'My Note') path (optional) — exact vault-relative path (e.g. 'folder/My Note.md') permanent (optional) — true to skip trash and delete permanently (irreversible) One of file or path is required.

Examples: obsidian_delete({ file: "Old Draft" }) — moves to trash obsidian_delete({ path: "Inbox/spam.md", permanent: true }) — irreversible

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileNoFile name (wikilink resolution)
pathNoExact file path
permanentNoSkip trash and delete permanently (irreversible)
Behavior5/5

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

With no annotations, the description carries the full burden. It explicitly warns that the operation is DESTRUCTIVE, explains the default trash behavior (recoverable), and clearly states that permanent deletes are irreversible. This is exemplary transparency.

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 description is well-organized with a clear purpose statement, destructive warning, parameter list, and examples. It is slightly longer than necessary due to duplicating schema details, but every sentence adds value and the structure is easy to scan.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a delete tool with three parameters and no output schema, the description covers the essential usage, safety implications, and parameter semantics. It is complete enough for an agent to invoke correctly without additional context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema already covers all three parameters, but the description adds meaning by explaining the mutual exclusivity of file/path, providing examples, and clarifying the irreversible nature of permanent. This exceeds the schema baseline.

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?

The description clearly states the tool deletes a note, with specific selection methods (file name or exact path). It distinguishes from sibling tools like create, move, and rename by focusing solely on deletion.

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?

The description provides clear context for when to use the tool (to delete notes) and the key requirement that one of file or path is needed. It does not explicitly name alternative tools or exclusions, but the purpose is unambiguous.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/stonematt/mcp-obsidian-cli'

If you have feedback or need assistance with the MCP directory API, please join our Discord server