Skip to main content
Glama

Create DataLens wizard chart

datalens_charts_wizard_create

Creates a wizard chart in a DataLens workbook and returns its id. Use it to add a sources-and-visualization chart, then read or update it with the wizard chart tools.

Instructions

Create a chart of the wizard in a workbook and return it with its id.

The entry.data of a chart read with charts_wizard_get is a valid data.

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>"
    },
    "name": "datalens_charts_wizard_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyNoThe entry's key, in a folder.
dataYesWhat the chart holds: `sources` and `visualization`. Its schema is not listed here: read `WizardChartData` with schema_get(service="datalens", name="WizardChartData"), then the definitions it refers to.
nameNoThe chart's name.
dry_runNoSend nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none).
annotationNoA description of the chart.
workbook_idNoThe workbook to create it in.

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

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false and openWorldHint=true, so the safety profile is covered. The description adds only that the created object is returned with its id — valuable because there is no output schema — but says nothing about name/key collisions, missing workbook_id behavior, or permission requirements for a network write.

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 with the primary action front-loaded and no filler. The second sentence is dense and slightly cryptic in phrasing ("is a valid ``data``"), but it is compact and carries usable information.

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 six-parameter create tool with a nested object and no output schema, the description at least states the return shape (chart with id). However, it omits practical creation concerns — how name/key defaults are handled, whether workbook_id is effectively required, and error behavior — leaving the agent to discover these by trial.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 100% schema description coverage the schema does all the parameter work, including the pointer to schema_get("WizardChartData") for the nested `data` object and the dry_run contract. The description itself contributes no parameter meaning beyond the bare existence of `data`, so it sits below the 3 baseline for relying entirely on structured fields.

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 first sentence gives a specific verb and resource ("Create a chart of the wizard in a workbook") and adds a concrete outcome (returns the chart with its id). The qualifier "of the wizard" implicitly separates it from the editor and ql chart variants in the sibling list, but no sibling is named explicitly, so differentiation requires the agent to infer the chart-type distinction.

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 by the create semantics; there is no explicit statement of when to choose a wizard chart over datalens_charts_editor_create or datalens_charts_ql_create, nor any prerequisite or exclusion. The second sentence does supply a useful round-trip tip (reuse the `entry.data` from datalens_charts_wizard_get), which is genuine guidance, but it addresses payload construction rather than tool selection.

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