Skip to main content
Glama

Cancel DataLens workbook export

datalens_workbookexports_cancel
Idempotent

Cancel a running workbook export by export ID. The export status changes to error with WORKBOOK_EXPORT_CANCELLED; completed exports keep their final state and the call returns the same result.

Instructions

Stop an export: its status becomes error, with WORKBOOK_EXPORT_CANCELLED.

An export that is over stays as it ended, and the call answers the same.

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": {
      "export_id": "<export_id>"
    },
    "name": "datalens_workbookexports_cancel"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNoSend nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none).
export_idYesExport id, from ``workbookexports_start``.

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.7/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=false and idempotentHint=true, yet the description still adds real substance: the terminal status written on success (error/WORKBOOK_EXPORT_CANCELLED) and the no-op behavior for already-finished exports. It does not mention permissions, openWorld implications, or the dry_run probe path the schema exposes, so 4 not 5.

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, effect stated first and the idempotent/no-op case second, so it is front-loaded with zero filler. The doubled-backtick markup is minor noise but not wasteful.

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 two-parameter mutation with full annotation coverage and no output schema, the description gives the agent everything essential: the state transition, the error code, and the already-terminal case. Extra detail on return payload or permissions would help but is not strictly needed.

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%, with both export_id and dry_run fully documented in the schema, so the schema carries the parameter burden. The description adds no new meaning about either parameter, which matches the baseline 3.

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?

"Stop an export: its status becomes ``error``, with ``WORKBOOK_EXPORT_CANCELLED``" names a specific verb (stop) and resource (export) plus the exact resulting state, which clearly separates it from workbookexports_status_get or result_get. It stops short of naming a sibling explicitly, so it earns a 4 rather than 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 Guidelines3/5

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

Usage is only implied: an agent can infer you call this when an export should be halted, and the second sentence hints that calling it on a finished export is pointless. There is no explicit when-to-use/when-not statement or pointer to workbookexports_status_get for checking whether cancel is even needed.

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