Skip to main content
Glama

delete_database

Delete a database and all its rows only after explicit confirmation, moving the folder to workspace trash for 30 days so it can be restored.

Instructions

Delete a database and all its rows. Blocked unless confirm is true (the error reports how many rows would be lost). Recoverable: the folder is moved to the workspace trash and the result reports trashPath (.hillnote/trash//…, kept 30 days) — restore_from_trash puts it back.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "workspace": "<workspace>",
      "databasePath": "<databasePath>"
    },
    "name": "delete_database"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNoMust be true to actually delete — this removes the database folder, its config, views, and every row (to the workspace trash)
workspaceYesWorkspace path or name
databasePathYesPath to the database folder (relative to documents folder)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.19.0
    • addedInput schema / properties / confirm
      Added value: +{
      +  "description": "Must be true to actually delete — this removes the database folder, its config, views, and every row (to the workspace trash)",
      +  "type": "boolean"
      +}
  2. First observedv0.6.0

TDQS

A4.3/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden — and it does well: it discloses the confirm gate, that a blocked call returns a row count, that the operation is recoverable via workspace trash, the trashPath format, and the 30-day retention window. Remaining gaps are permission/auth requirements and whether anything is permanently purged after 30 days.

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?

Three tight sentences, each front-loading the most decision-relevant fact in order: what it does, what gates it, and how to undo it. No filler.

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 tool with no annotations and no output schema, the description supplies the safety profile, the failure mode, the recovery route, and the shape of the returned location. An agent has everything needed to call it responsibly.

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 all three parameters. The description goes beyond it by explaining the behavioral consequence of confirm (a blocked call reports how many rows would be lost), which tells the agent what to expect when omitting it.

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?

"Delete a database and all its rows" states a specific verb and resource with scope, and the trash mechanism plus trashPath makes clear it targets the database folder (config, views, rows) rather than something like delete_rows or delete_column.

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?

It states the precondition that blocks the call (confirm must be true) and names restore_from_trash as the recovery path, which effectively routes the agent for the undo case. It does not explicitly contrast with sibling deletion tools, but the scope statement does most of that work.

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