Skip to main content
Glama

cancel_job_run

Stops a running or pending Databricks job run by run ID, helping halt execution and release cluster resources when a job is no longer needed.

Instructions

Cancel a running or pending job run.

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": {
      "run_id": "<run_id>"
    },
    "name": "cancel_job_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
run_idYesThe unique identifier of the run to cancel

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose a meaningful behavioral constraint — only running or pending runs are eligible — which is beyond the schema. It stops short of disclosing irreversibility, error behavior for already-terminal runs, or permission requirements, which matter for a mutating cancel operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single short sentence with the verb and the eligibility condition front-loaded. Nothing is redundant and nothing wastes the agent's attention.

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 one-parameter tool with no output schema, the description covers the essential purpose adequately. Given the absence of annotations, it could go further by stating what a successful cancellation returns or how already-finished runs are handled.

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?

There is a single required parameter with 100% schema description coverage ('The unique identifier of the run to cancel'), so the schema already fully documents it. The description adds no format, sourcing, or ID-type hints beyond that, which is the expected baseline for a one-parameter tool.

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+resource pair ('Cancel a ... job run') and narrows scope to 'running or pending' runs, so an agent immediately knows what the tool does. It does not name a sibling or explicitly contrast with run_job/delete_job, but the operation is unambiguous on its own.

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 or pending' implies when this tool applies, which is real usage context. However, there is no explicit guidance on alternatives (e.g., checking status via get_job_run_status first) or on what to do if the run has already completed.

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