Skip to main content
Glama
maxkuminov

Obsidian MCP (pgvector + Ollama, self-hosted)

delete_note

Remove notes from Obsidian vault using soft-delete (moves to .trash) or permanent deletion. Automatically drops from search and embeddings.

Instructions

Delete a note from the vault. Requires a readwrite API key.

By default this is a soft-delete: the file is moved to .trash/<YYYYMMDD-HHMMSS>-<basename> inside the vault root. The indexer skips dot-prefixed directories, so search and embeddings drop the note automatically on the next reindex pass (≤ 5 minutes). Soft-deleted files accumulate in .trash/ — emptying that directory is the user's responsibility.

With permanent=True, the file is os.unlink-ed directly with no recovery path inside this server. Existing backups are the rollback story.

Dangling backlinks left behind by a delete are surfaced via get_backlinks and find_orphans. See get_vault_guide for context.

Args: path: Vault-relative path to the note. permanent: If True, unlink instead of soft-deleting.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
permanentNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

No annotations provided, but description fully compensates by detailing soft-delete (file moved to .trash/, indexer skips dot-prefixed, ≤5 min propagation, user cleans up), permanent delete (os.unlink, no recovery), and backlinks handling. Extremely transparent.

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?

Well-structured with paragraphs and an args section. Each sentence adds useful detail. Slightly verbose but not excessively; could be trimmed slightly but still effective.

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?

Covers all relevant aspects: soft-delete mechanics, permanent delete, indexer interaction, backlinks, and links to related tools (get_backlinks, find_orphans, get_vault_guide). Output schema exists (not shown) so return details are likely handled there. Complete for a tool with this complexity.

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

Parameters5/5

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

Input schema has two parameters with no descriptions (0% coverage). Description adds full semantics: 'path: Vault-relative path to the note' and 'permanent: If True, unlink instead of soft-deleting'. Clearly explains meaning beyond schema.

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?

Clearly states 'Delete a note from the vault' with specific verb and resource. Distinguishes from sibling tools like create_note, edit_note, move_note by focusing on deletion and soft-delete vs permanent behavior.

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?

Explains default soft-delete and permanent option, including implications for recovery (backups needed). Mentions related tools (get_backlinks, find_orphans, get_vault_guide) for post-delete actions. Could be more explicit about when NOT to use this tool, but overall provides solid guidance.

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/maxkuminov/obsidian-mcp'

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