Skip to main content
Glama

Start DataLens workbook import

datalens_workbookimports_start

Create a workbook from an export and get the import and workbook IDs. Poll the import status until it succeeds, then restore connection credentials with connections_update.

Instructions

Start making a workbook from an export; returns the ids of the import and the workbook.

The workbook exists at once and is filled as the import runs: ask workbookimports_status_get until status is success. Its connections come without their secrets (a notification …CONN.CHECK_CREDENTIALS says so): give each its password or token again with connections_update.

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": {
      "data": "<data>",
      "title": "<title>"
    },
    "name": "datalens_workbookimports_start"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYesThe ``data`` of ``workbookexports_result_get``: ``export``, ``hash``.
titleYesThe title of the new workbook.
dry_runNoSend nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none).
descriptionNoThe description of the new workbook.
collection_idNoThe collection to make it in; the root when left out.

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

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses that the workbook is created immediately but filled asynchronously, that connections arrive without secrets, and that a CONN.CHECK_CREDENTIALS notification signals the required follow-up write. These are non-obvious side effects and preconditions an agent could not infer from readOnlyHint=false / destructiveHint=false.

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?

Three tight sentences, front-loaded with the action and return, followed by the async lifecycle and the credentials caveat. No filler or restatement of the title.

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

Completeness5/5

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

With no output schema, the description supplies the return values and the full post-call workflow, including the credential repair step. Nothing an agent needs in order to call this correctly or continue the flow is missing.

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 five parameters including dry_run and collection_id are already documented. The description only implies the data parameter's provenance ('from an export') and does not add syntax or constraints, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Start making a workbook from an export') plus the immediate return value (import and workbook ids), distinguishing it from the export-side sibling and from the status poller by name.

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

Usage Guidelines4/5

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

Explicitly routes the agent to datalens_workbookimports_status_get polling until status is success, and to connections_update to restore secrets. It does not state when not to use this tool or its prerequisites (e.g. that the data must come from workbookexports_result_get), which keeps it just short of a 5.

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