Skip to main content
Glama

Delete DataLens workbooks

datalens_workbooks_delete_bulk
Destructive

Deletes multiple DataLens workbooks and all their contents by workbook IDs, with an optional dry run to preview the request before making changes.

Instructions

Delete several workbooks with everything they hold.

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_ids": "<workbook_ids>"
    },
    "name": "datalens_workbooks_delete_bulk"
  }
}

Input Schema

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

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

B3.1/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, idempotentHint=false and openWorldHint=true, so the safety profile is covered. The description adds one genuine piece of extra context, "with everything they hold", signaling a cascade delete of contained objects such as charts and datasets. It does not state irreversibility, whether partial failures roll back, or that dry_run exists as a safeguard, so it adds some but not substantial value beyond annotations.

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?

A single front-loaded sentence with no filler; the destructive action and its bulk cardinality come first. It is arguably over-terse for a destructive tool, but nothing in it is redundant.

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 bulk delete with no output schema, the description is thin: it omits blast-radius warnings, partial-failure semantics, batch size limits, and any pointer to using dry_run first. An agent could invoke it correctly from the schema alone, but not safely or confidently.

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?

The schema already documents both parameters at 100% coverage, including a detailed dry_run description explaining the exact response shape. The tool description adds nothing about workbook_ids format or the value of dry_run before a mass deletion, 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?

"Delete several workbooks" gives a specific verb, resource and cardinality, which distinguishes it from the singular datalens_workbooks_delete sibling. The trailing "with everything they hold" adds a cascade scope. It stops short of naming the single-delete or collections_delete_bulk siblings explicitly, so the differentiation is implied rather than stated.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance: nothing says to prefer datalens_workbooks_delete for one item, or datalens_workbooks_move_bulk when the goal is reorganization rather than removal. The only hint is the word "several". No prerequisites, permission requirements, or confirmation advice are given for a destructive bulk operation.

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