Skip to main content
Glama
marwansaab

obsidian-modified-mcp-server

by marwansaab

delete_file

Delete a file or directory from an Obsidian vault. Recursively removes entire directories and their contents in a single call.

Instructions

Delete a file or directory from the vault. When the path refers to a directory, the deletion is recursive: every contained file and subdirectory is removed before the directory itself is deleted, in a single tool call. The caller does not need to empty the directory beforehand. On a transport-layer timeout the wrapper performs a single direct-path verification query before reporting outcome, so the response always reflects the actual post-condition on the vault.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
vaultIdNoOptional vault ID (defaults to configured default vault).
filepathYesPath to the file or directory to delete (relative to vault root). Directories are deleted recursively.
Behavior5/5

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

With no annotations, the description fully carries the transparency burden. It discloses recursive deletion, single-call operation, and importantly the timeout verification behavior ensuring the response reflects actual post-condition. This is exemplary given the destructive nature of the tool.

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 concise yet packed with useful information across three sentences, front-loading the primary purpose and adding crucial behavioral details 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 straightforward delete tool with two parameters and no output schema, the description provides sufficient context: it explains recursion, the single-call nature, and the post-condition guarantee. While it does not cover error cases explicitly, the timeout verification statement implicitly addresses outcome reporting, making it complete for its complexity.

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?

The schema covers 100% of parameters, so the baseline is 3. The description reinforces the recursive behavior for filepath but does not add significant new parameter-level details beyond what the schema already provides.

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 file or directory from the vault, with specific detail on recursive behavior. It effectively distinguishes itself from all sibling tools, none of which perform 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, especially for recursive directory deletion, and clarifies that no prior emptying is needed. However, it does not explicitly discuss alternatives or when not to use the tool, though no alternative delete tool exists.

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/marwansaab/obsidian-modified-mcp-server'

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