Skip to main content
Glama

Delete DataLens dataset

datalens_datasets_delete
Destructive

Permanently delete a DataLens dataset, breaking charts built on it. Use dry_run first to review the request, since the API cannot restore it.

Instructions

Delete a dataset; the charts built on it lose their data.

The API has no way to bring it back, and a chart built on it keeps naming its id (measured).

The interface lists what was deleted under Service settings, Deleted objects, with a Restore button (measured: the entry appears there; restoring was not tried).

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": {
      "dataset_id": "<dataset_id>"
    },
    "name": "datalens_datasets_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNoSend nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none).
dataset_idYesDataset 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.7/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=false, but the description goes well beyond them: it discloses that dependent charts lose their data, that the API offers no restore path, that a chart continues to reference the deleted dataset id, and that recovery only exists through the UI. It is also explicit about evidentiary confidence ('measured', 'restoring was not tried'), which is unusually honest, though the dry_run-first workflow is not suggested.

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?

Short and front-loaded: the destructive consequence leads, followed by irreversibility and the recovery route. The parenthetical hedging ('measured', 'was not tried') is slightly awkward but genuinely informative rather than filler.

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 description covers consequence, irreversibility, and the recovery path, which is the core of what an agent needs. Remaining gaps are the unmentioned dry_run workflow and any permission or scope prerequisites.

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 dataset_id and dry_run are both documented in the schema, and the description adds no syntax or format detail beyond that. The irreversibility note implicitly motivates dry_run but never explains or names 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?

States a specific verb and resource ('Delete a dataset') and immediately adds the consequence ('the charts built on it lose their data'). The resource word 'dataset' separates it cleanly from the many sibling deletes that target charts, connections, workbooks, and dashboards.

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 explicit when-to-use or when-not-to-use guidance and no mention of alternatives (e.g. update, or the non-destructive read siblings). The stated consequence implies caution but never tells the agent what condition should gate the call, and the dry_run escape hatch is never recommended.

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