Skip to main content
Glama

delete_notebook

Remove a notebook or directory from a Databricks workspace, with an optional recursive mode for deleting directories and their contents.

Instructions

Delete a notebook or directory from the workspace. Use recursive=true to delete directories with contents.

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": {
      "path": "<path>"
    },
    "name": "delete_notebook"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesFull workspace path to delete
recursiveNoWhether to recursively delete directories (default: false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full disclosure burden for a destructive operation. It never states whether deletion is permanent or recoverable, what happens to a non-empty directory when recursive=false, whether permissions are required, or what happens if 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 sentences, front-loaded with the action and scope, followed immediately by the one behavioral knob that matters. No filler and nothing buried.

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

Completeness2/5

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

For a destructive, unannotated tool with no output schema, the description omits the details an agent most needs before invoking it: irreversibility, the failure mode for non-empty directories without recursive, and error conditions for missing paths. The recursive hint alone is not enough for a delete operation.

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 parameters are already documented, and the description only restates the recursive flag's effect for directories. Baseline 3 is appropriate since no format, path-syntax, or edge-case meaning is added beyond the schema.

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 notebook or directory from the workspace"), which cleanly separates it from sibling deletes like delete_catalog, delete_table, and delete_schema by resource type. It stops short of naming an alternative, but the resource scope is unambiguous.

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?

One conditional is stated: use recursive=true for directories with contents. That is genuinely useful routing guidance, but there is no guidance on when the operation should be avoided, whether prerequisites exist, or how it relates to other notebook operations like move_notebook as a safer alternative.

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