Skip to main content
Glama

Delete DataLens workbook

datalens_workbooks_delete
Destructive

Delete a DataLens workbook and all its contents, including connections, datasets, charts, and dashboards. Use it to remove an entire workbook in one call instead of deleting each object separately.

Instructions

Delete a workbook with everything it holds: connections, datasets, charts, dashboards.

Deleting a workbook that is already deleted answers 500, not 404: after a server error, read the workbook before deleting it again.

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": {
      "workbook_id": "<workbook_id>"
    },
    "name": "datalens_workbooks_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNoSend nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none).
workbook_idYesWorkbook id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.142.2
    • addedInput schema / properties / dry_run
      Added value: +{
      +  "default": false,
      +  "description": "Send nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none).",
      +  "type": "boolean"
      +}
  2. Addedv0.122.1

TDQS

A3.9/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=false, so the safety profile is covered; the description goes beyond them by enumerating exactly what is destroyed alongside the workbook and by disclosing a non-obvious failure mode (deleting an already-deleted workbook returns 500, not 404) which explains why retries are unsafe and how to proceed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two compact sentences, with the destructive scope front-loaded where an agent needs it before calling. The second sentence is slightly awkwardly phrased ('answers 500, not 404') but conveys a specific, non-wasteful fact.

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 destructive tool with no output schema, the definition covers the two things an agent most needs: blast radius and the retry hazard. It does not mention return behavior or the dry_run preview, which would round it out for a mutation with no output schema.

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 100% and both parameters — workbook_id and the non-trivial dry_run flag — are documented in the schema itself. The description adds no parameter-level meaning (it never mentions that dry_run returns the prospective first write without sending anything), 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?

States a specific verb and resource ('Delete a workbook') and adds the crucial scope detail that everything inside it is destroyed: connections, datasets, charts, dashboards. That cascade makes it distinguishable in effect from siblings like datalens_workbooks_delete_bulk, but the description never explicitly contrasts itself with any sibling tool.

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?

There is no explicit when-to-use guidance versus alternatives (e.g., single delete vs datalens_workbooks_delete_bulk, or when to prefer updating/moving instead). It does provide a concrete recovery rule after a 500 — read the workbook before retrying — which is a real usage constraint, but that is narrow procedural advice rather than selection guidance.

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

Deploy Server

Other Tools