Skip to main content
Glama

edit_cluster

Modify an existing Databricks cluster’s configuration—such as name, size, node type, Spark version, tags, and autoscaling—while it is terminated; required cluster_id identifies the target.

Instructions

Edit the configuration of an existing cluster. The cluster must be in TERMINATED state to edit most properties.

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": "edit_cluster"
  }
}

Input Schema

NameRequiredDescriptionDefault
cluster_idYesThe unique identifier of the cluster to edit
spark_confNoNew Spark configuration properties
custom_tagsNoNew custom tags
num_workersNoNew number of worker nodes
cluster_nameNoNew cluster name
node_type_idNoNew node type for workers
spark_versionNoNew Spark version
autoscale_max_workersNoNew maximum workers for autoscaling
autoscale_min_workersNoNew minimum workers for autoscaling
autotermination_minutesNoNew auto-termination timeout in minutes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It discloses one real trait (the TERMINATED-state precondition), but says nothing about required permissions, whether changes are reversible, whether a restart is needed to apply them, or what happens to the fields not supplied.

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 with the action front-loaded and the constraint immediately after; nothing is wasted. The only weakness is that "most properties" is imprecise where a precise list would be short enough to include.

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

Completeness3/5

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

For a ten-parameter mutation with no annotations and no output schema, the definition covers the essential precondition but omits the behavioral details an agent needs before calling it (permissions, restart/redeploy effects, partial-update semantics). It is adequate but not complete.

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% and every one of the ten parameters has its own description, so the schema already does the heavy lifting. The description adds only the vague qualifier "most properties," without clarifying which edits are allowed on a running cluster.

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 states a specific verb and resource ("Edit the configuration of an existing cluster"), which clearly separates it from create_cluster, restart_cluster, and terminate_cluster. It stops short of naming a sibling such as resize_cluster, so the boundary with worker-count changes is left implicit.

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 precondition "must be in TERMINATED state to edit most properties" is a genuinely useful usage constraint. However, it gives no guidance on when to use this tool versus resize_cluster for num_workers/autoscale fields, nor what to do if the cluster is running.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.