Skip to main content
Glama
pvliesdonk

markdown-vault-mcp

by pvliesdonk

Delete Note

delete
DestructiveIdempotent

Permanently remove a document or attachment from the vault. For Markdown files, the search index is refreshed; attachments only need file removal. Confirm the path first because this action is irreversible.

Instructions

Permanently delete a document or attachment.

For .md documents: removes the file and queues an index refresh. For attachments: only the file is deleted (no index to update). IRREVERSIBLE unless git history exists. Confirm the path with the user before calling.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesRelative path to the document or attachment to delete.
if_matchNoOptional etag obtained from a previous 'read' call. When provided, the deletion only proceeds if the file has not been modified since that read (optimistic concurrency). Omit to delete unconditionally.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv4.0.0

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the destructiveHint annotation, the description reveals important side effects: .md deletions queue an index refresh, attachments do not, and deletion is irreversible unless git history exists. It also instructs the agent to confirm the path with the user, adding meaningful behavioral context not present in the structured annotation.

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?

The description is compact and front-loaded, starting with a clear one-sentence summary. Every sentence earns its place: resource scope, index-refresh behavior, irreversibility, and user confirmation are all stated without redundancy.

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 destructive two-parameter tool with a full output schema and detailed annotations, the description supplies all essential context: what is deleted, side effects on the index, irreversibility, and the required confirmation step. The if_match concurrency behavior is already covered by the schema, so no critical guidance is missing.

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%, and the schema already thoroughly documents both 'path' and 'if_match', including optimistic concurrency semantics. The description reinforces the relative-path convention and the confirmation requirement but does not add significant new parameter-level meaning beyond the 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?

The description explicitly states 'Permanently delete a document or attachment', naming both the action and the specific resource types. It clearly distinguishes this tool from siblings like edit, write, and rename by focusing on destructive deletion with a clear scope.

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 gives clear context for use: it is destructive, irreversible, and requires user confirmation before calling. It does not name explicit alternatives or exclusion cases, but the conditional handling of .md documents vs attachments provides practical guidance on when the tool behaves differently.

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