Skip to main content
Glama

Delete DataLens Spark cluster

datalens_sparkclusters_delete
Destructive

Deletes a Spark cluster and returns the operation, letting you check its status with the lakehouse operations get tool.

Instructions

Delete a Spark cluster and return the operation; lakehouseoperations_get reads it.

Experimental API, not measured.

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": {
      "id": "<id>"
    },
    "name": "datalens_sparkclusters_delete"
  }
}

Input Schema

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

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
Behavior4/5

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

Annotations already declare destructive, non-idempotent, non-read-only behavior, so the bar is lower; the description adds real context by saying it returns an operation object that must be polled via lakehouseoperations_get, and flags the API as experimental. It does not say whether deletion cannot be undone or what happens to running jobs, so it stops short of 5.

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 short, front-loaded sentences with no filler; the action comes first and the follow-up reader tool second. The trailing "Experimental API, not measured" is terse to the point of being slightly cryptic about what is unmeasured.

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 destructive two-parameter tool with strong annotations and no output schema, the description covers the operation return path and stability caveat adequately. It would be complete with one line on irreversibility or preconditions (e.g., cluster must be stopped).

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% and both parameters (id, dry_run) are fully documented in the schema, so baseline 3 applies. The description adds no extra meaning about id format or about how dry_run interacts with the returned operation.

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 Spark cluster") plus a return-value note, which cleanly separates it from siblings like datalens_sparkclusters_stop or datalens_sparkclusters_list. An agent can identify the operation without opening the schema.

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 only implied by the tool name and verb; there is no explicit statement of when to delete versus stop, no precondition such as the cluster being idle or stopped, and no warning that deletion is irreversible. The pointer to lakehouseoperations_get is follow-up guidance 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