Skip to main content
Glama

run_notebook

Execute a Databricks notebook on a specified cluster and wait for results, with optional parameters and timeout control.

Instructions

Execute a notebook and wait for results. Requires specifying an existing cluster or providing cluster configuration.

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": {
      "notebook_path": "<notebook_path>",
      "cluster_id": "<cluster_id>"
    },
    "name": "run_notebook"
  }
}

Input Schema

NameRequiredDescriptionDefault
cluster_idYesID of an existing cluster to run the notebook on
notebook_pathYesFull workspace path to the notebook to run
base_parametersNoParameters to pass to the notebook as key-value pairs
timeout_secondsNoMaximum time to wait for notebook execution (default: 3600)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/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 burden, and it discloses only that execution is blocking and waits for results. It says nothing about permission requirements, side effects on existing notebook state, what happens when the timeout is exceeded, or how failures are surfaced. Worse, it advertises 'providing cluster configuration' as an option, but the schema requires cluster_id and offers no configuration object, so the stated behavior contradicts the actual contract.

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 and its blocking nature, with no filler. The second sentence's inaccurate 'cluster configuration' clause is the only element that does not earn its place.

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 simple launch-and-wait tool with full schema coverage and no output schema, the core contract is largely conveyed. However, with zero annotations and no output schema, the description should at minimum explain how results are obtained afterward (e.g., via get_job_run_output) and how timeouts surface, and it should not imply a cluster-configuration parameter that does not exist.

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 all four parameters, including the nested base_parameters, are already documented and the baseline is 3. The description adds no syntax or format detail beyond the schema, and its mention of an alternative cluster-configuration input does not exist among the parameters.

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 uses a specific verb and resource ('Execute a notebook') and adds the synchronous semantics of waiting for results, so an agent knows this is a blocking run, not a queued submission. It does not name or differentiate itself from the sibling run_job, so it stops short of a 5.

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

Usage Guidelines2/5

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

It states a precondition (an existing cluster) but gives no when-to-use versus when-not guidance and never mentions alternatives such as run_job or cancel_job_run for aborting a long execution. An agent must infer the selection rules from the tool name alone.

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