Skip to main content
Glama

delete_database

Permanently delete a database and all its rows from a specified workspace and database path; this action cannot be undone.

Instructions

Delete a database and all its rows. This action is permanent.

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
workspaceYesWorkspace path or name
databasePathYesPath to the database folder (relative to documents folder)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden, and it does disclose the single most important trait: the operation is permanent and removes all rows. It is silent on whether deletion is recoverable/undoable, what happens to views, recipes, or other documents referencing the database, required permissions, and behavior when the path does not exist.

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?

Two short sentences, zero filler, with the destructive scope stated first and the permanence warning immediately after. Nothing is buried or repeated.

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?

For a two-parameter tool with no output schema and no annotations, the description covers the essential facts an agent needs before calling: it is destructive and irreversible. It would be complete at 5 with a note on failure modes or downstream references, but the core burden is met.

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 description coverage is 100%, so both workspace and databasePath are already documented in the schema with usable descriptions. The description adds no format, path-resolution, or validation detail beyond what the schema provides, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb and resource ('Delete a database') and crucially scopes it ('and all its rows'), which implicitly separates it from delete_rows and delete_column in the sibling set. It stops short of naming which sibling to use for narrower deletions, so the differentiation must be inferred rather than read.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: 'This action is permanent' signals this is a last-resort, whole-database operation rather than a row-level cleanup. There is no explicit when-to-use vs. when-not-to-use statement and no pointer to delete_rows or delete_document for narrower scopes.

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