Skip to main content
Glama

vault_delete

Delete a file from the vault and commit the deletion to git history for recoverability. Supports idempotent retries to prevent errors on retries.

Instructions

Delete a single file from the vault (destructive; recoverable via git).

Removes one file and, by default, commits the deletion so it stays recoverable from git history (git revert / git show). Files only — directories are rejected. A non-existent path is an error, unless idempotency_key is set (then a retry against an already-gone file is a no-op success).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectYesProject slug or '_meta' for cross-project content.
pathYesRelative path to the file within the project.
commitNoIf True (default), stage + commit the deletion. If False, unlink on disk but leave the removal staged for a later ``vault_commit`` (or obsidian-git). Same durability contract as ``vault_write``.
idempotency_keyNoOptional at-most-once token. If set, a retry with the same key is a no-op after the first delete (ADR-013), which also makes deleting an already-removed file succeed. Empty (default) disables idempotency.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

The description adds useful behavioral context like default commit, git recoverability, and idempotency behavior. However, the annotation destructiveHint is false while the description explicitly labels the operation 'destructive', which is a contradiction and could confuse the agent.

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 (two sentences) with the most critical information front-loaded. Every sentence serves a clear purpose, and there is no redundant or extraneous content.

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?

Given the presence of an output schema, the description covers all essential aspects: what the tool does, error conditions, recovery mechanism, and parameter behavior. It is complete for an agent to invoke correctly.

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?

Schema coverage is 100%, so the schema already documents parameters. The description adds value by explaining the default commit behavior, linking to vault_write for the same durability contract, and clarifying idempotency_key semantics for retries.

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 action 'Delete a single file from the vault' with the specific resource (file) and context (destructive but recoverable via git). It distinguishes from sibling tools like vault_write and vault_patch by explicitly mentioning it handles files only and not directories.

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 usage guidance: files only (directories are rejected), error on non-existent path unless idempotency_key is set. While it does not explicitly name alternative tools, the purpose and constraints differentiate it effectively from siblings.

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/mlorentedev/hive'

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