Skip to main content
Glama

Stop DataLens Spark cluster

datalens_sparkclusters_stop

Stops a running Spark cluster by ID and returns the operation so you can track shutdown status; supports dry-run to preview the request.

Instructions

Stop a running 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": {
      "cluster_id": "<cluster_id>"
    },
    "name": "datalens_sparkclusters_stop"
  }
}

Input Schema

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

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

Annotations cover the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false, openWorldHint=true), and the description adds genuinely new behavior: the call is asynchronous and returns an operation that must be resolved via lakehouseoperations_get, plus an 'Experimental API, not measured' reliability caveat. The dry_run behavior is left to the schema, which documents it fully.

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 sentences, front-loaded with the action, followed by the follow-up mechanism and the experimental caveat; no filler. 'Not measured' is slightly cryptic, but it still earns its place as a stability warning.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter mutation with no output schema, the description covers the action, the async return contract, the polling tool needed to consume that return, and a stability caveat. Nothing an agent needs to invoke and then follow up correctly is missing.

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%, with both cluster_id and dry_run documented in the schema, so the baseline of 3 applies. The description adds no further meaning about parameter values or edge cases beyond what the schema already states.

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 ('Stop a running Spark cluster') and adds that it returns an operation handle, which is essential to understanding what the call produces. It does not explicitly differentiate from close siblings like datalens_sparkclusters_delete or datalens_sparkclusters_start, but the action itself is unambiguous.

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?

The phrase 'running Spark cluster' implies the precondition that the cluster must be running, and the description usefully routes the agent to lakehouseoperations_get to read the resulting operation. There is no explicit guidance on when to stop versus delete a cluster, nor on what happens if the cluster is already stopped.

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