Skip to main content
Glama

Delete DataLens connection

datalens_connections_delete
Destructive

Delete a DataLens connection by ID; datasets built on it lose their source and the API cannot restore it. Use dry_run to preview the request before committing.

Instructions

Delete a connection; the datasets built on it lose their source.

The API has no way to bring it back, and a chart that reads through 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": {
      "connection_id": "<connection_id>"
    },
    "name": "datalens_connections_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNoSend nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none).
connection_idYesConnection 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 declare destructiveHint=true and idempotentHint=false, but the description goes well beyond them: it discloses the cascading consequence for dependent datasets, that the API cannot restore the object, that charts retain the dangling id, and where the object appears in the UI with a Restore button. The measured/not-tried qualifications are an unusually honest statement of what is known versus inferred.

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?

The core action and its main consequence are front-loaded in the first sentence, with supporting detail after. Some parenthetical measurements ('measured', 'measured: the entry appears there; restoring was not tried') are slightly noisy and one clause is grammatically awkward, but no sentence is 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?

No output schema exists, and the description covers the destructive blast radius, reversibility, and UI recovery path, plus the dry_run parameter from the schema. It does not cover what happens when the call is repeated (idempotentHint=false implies a second delete errors) or what happens to dependents at call time, which for a destructive tool leaves a small gap.

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%, so both connection_id and dry_run are already documented in the schema; the description adds nothing about either. Baseline 3 applies - notably it never mentions that dry_run exists, which is the one parameter an agent might overlook.

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 connection,' and immediately qualifies scope with the cascade effect on datasets built on it. That differentiates it from sibling deletes on other resources (datasets, charts, workbooks) without needing to name them, though it does not name a sibling alternative such as update or get.

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 implied by the destructive framing and the note that datasets lose their source, which implicitly warns an agent to be sure before calling. There is no explicit 'use this when...' guidance, no statement about what to do instead (e.g., update the connection, or remove dependents first), and no mention of prerequisites such as ownership or permissions.

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