Skip to main content
Glama

Create DataLens Spark cluster

datalens_sparkclusters_create

Creates a Spark cluster in a specified collection and cloud environment, returning an operation ID to track provisioning; clusters incur costs while running.

Instructions

Create a Spark cluster and return the operation that creates it.

A cluster is paid for while it runs: create one only when asked to. The operation goes on after the reply: lakehouseoperations_get with its id says how it ended. 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": {
      "collection_id": "<collection_id>",
      "cloud_environment_id": "<cloud_environment_id>",
      "name": "<name>",
      "config": "<config>"
    },
    "name": "datalens_sparkclusters_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesThe cluster's name.
configYesThe Spark version and the pools of the driver and executors.
labelsNoLabels of the cluster.
dry_runNoSend nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none).
descriptionNoA description of the cluster.
collection_idYesThe collection to create the cluster in.
cloud_environment_idYesThe cloud environment the cluster runs in.

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?

Beyond the annotations, it discloses two things the structured fields do not: the cluster accrues cost while running, and the call is asynchronous — the returned operation continues after the reply and is resolved via lakehouseoperations_get with its id. The 'Experimental API, not measured' caveat is useful but vague, and failure/partial-creation behavior is not covered.

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?

Four short sentences, front-loaded with the action and return value, followed by the cost warning and the polling instruction. The inline backtick markup and the trailing 'Experimental API, not measured' sentence are slightly noisy but each sentence carries content.

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 7-parameter, deeply nested creation tool with no output schema, the description adequately covers the async operation return and the follow-up tool for checking status. It leaves authorization requirements and partial-failure semantics unstated, which is a modest gap for a mutating tool.

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 the schema already documents all seven parameters, including the nested resource pools and the dry_run flag. The description adds no parameter-level meaning beyond what the schema provides, 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?

The description opens with a specific verb and resource ('Create a Spark cluster') and states the return value ('the operation that creates it'), so an agent knows exactly what the call does. It does not explicitly distinguish itself from the nearby datalens_sparkapplications_create sibling, so it stops short of full sibling differentiation.

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

Usage Guidelines4/5

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

It gives a clear gating condition: 'A cluster is paid for while it runs: create one only when asked to,' which tells the agent to avoid speculative creation. It stops short of naming when a different tool (e.g., a Spark application tool) would be the better choice, and gives no explicit when-not alternatives.

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