Skip to main content
Glama

Programmability Cancel Code Bundle Execution

programmability_cancel_code_bundle_execution
Destructive

Cancels a running code bundle execution in Snowflake after confirmation, helping stop unwanted or stuck bundle runs.

Instructions

Preview: Cancel a code bundle execution. Requires confirmation. https://docs.snowflake.com/en/developer-guide/code-bundles/code-bundles

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": {
      "execution_id": "<execution_id>"
    },
    "name": "programmability_cancel_code_bundle_execution"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNo
execution_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv3.3.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and openWorldHint=true, so the safety profile is covered. The description adds the confirmation requirement and a docs pointer. This is useful context, but it does not state what cancellation destroys or how an in-flight execution is handled before the bar is cleared.

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?

Three short fragments: purpose, precondition, docs link. The action is front-loaded. The docs URL earns its place for a preview feature, though the phrase 'Preview:' sits oddly before the verb.

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?

An output schema exists and annotations cover destructiveness, so the description needn't spell out return values. But for a destructive preview tool with zero schema parameter descriptions, the definition is thin on what the cancellation irreversibly does.

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 0% for both parameters, so the description must compensate. 'Requires confirmation' gives the agent the semantics of confirm, but execution_id format and what happens when confirm is false are never explained, leaving half the surface undirected.

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 (cancel) and resource (code bundle execution), which clearly separates it from list/get/execute siblings. The 'Preview:' prefix adds a maturity caveat but does not blur what the tool does; the only gap is that no sibling is named as the alternative for non-code-bundle cancellations.

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?

'Requires confirmation' is a real precondition telling the agent it must supply confirm=true before the cancellation takes effect. Beyond that there is no when-to-use versus when-not framing, e.g. whether to use queries_cancel_query for a related running query, so usage is implied rather than explained.

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