Skip to main content
Glama

Delete note

bm_delete
DestructiveIdempotent

Delete a Basic Memory note or directory; directory deletion requires recursive=true, and expected_checksum prevents deleting a note that changed since read.

Instructions

Delete a Basic Memory note (identifier) or a directory (path). A directory delete removes every file under it and needs recursive=true. Pass expected_checksum (from bm_read) to delete a note only if it is still the revision you read. A note that does not exist is an error. This cannot be undone.

Input Schema

NameRequiredDescriptionDefault
pathNoThe directory to delete, with everything in it.
projectNoProject name, 'workspace/project', or project external id. Omit to use the default project.
recursiveNoRequired true to delete a directory and everything under it.
identifierNoThe note to delete: a path, permalink, memory:// URL or exact title.
output_formatNotext
expected_checksumNoDelete the note only while it is still this revision (from bm_read).

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.24.1

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the bar is lower, yet the description still adds real value: irreversibility, the cascading scope of a directory delete, and the error behavior for a missing note. It stops short of noting permission requirements or what the response reports after deletion.

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?

Four tight sentences, each carrying a distinct rule — target selection, recursive requirement, concurrency guard, error case, and irreversibility. No filler and the destructive warning lands at the end where it is read.

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

Completeness4/5

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

An output schema exists so return values need not be explained, and the description covers both deletion modes, the safety precondition, and failure semantics. Only the project-scoping parameter and post-delete response behavior are left entirely to structured fields.

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 83%, so the schema already documents most parameters. The description reinforces the identifier/path split and the checksum's provenance from bm_read, but says nothing about `project` or `output_format`, so it only marginally exceeds the 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?

Specific verb plus two clearly delineated resources: a note via `identifier` or a directory via `path`. The description makes the two deletion modes and their parameter mapping explicit, which distinguishes it from read/edit siblings.

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?

Gives concrete conditional rules: `recursive=true` is required for directories, and `expected_checksum` (sourced from bm_read) guards against concurrent modification. It does not name or rule out alternatives such as the sibling `delete_note`, so routing is implied rather than explicit.

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