Skip to main content
Glama

Update DataLens wizard chart

datalens_charts_wizard_update
Idempotent

Save a DataLens wizard chart by replacing its full data, either keeping a draft or publishing the version shown. Use it after reading a chart to apply changes; saves overwrite without revision checks.

Instructions

Save a chart of the wizard as given: read it, change it, send it back whole.

DataLens does not check a revision here: a save overwrites what was saved since you read it (measured).

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": {
      "chart_id": "<chart_id>",
      "mode": "<mode>",
      "data": "<data>"
    },
    "name": "datalens_charts_wizard_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYesWhat the chart holds; it replaces the whole of it. Its schema is not listed here: read `WizardChartData` with schema_get(service="datalens", name="WizardChartData"), then the definitions it refers to.
modeYes`save` keeps a draft; `publish` makes it the version shown.
rev_idNoThe revision the change is made on; DataLens does not check it (measured).
dry_runNoSend nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none).
chart_idYesChart id.
annotationNoA description of the chart.

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?

Annotations already declare readOnlyHint=false, idempotentHint=true and destructiveHint=false, but the description adds the genuinely important fact that no revision check occurs and a save silently overwrites anything written since the read. That last-write-wins warning is exactly the kind of concurrency risk structured fields cannot express and is consistent with idempotentHint=true. It does not describe the response beyond the dry_run echo, but the core hazard is disclosed.

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 action front-loaded and the overwrite warning second. No filler, though the elliptical phrasing ("as given", "(measured)") is terse enough to need a second read.

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 six-parameter mutation with a nested free-form data object and no output schema, the description supplies the essential model: whole-object replacement plus unconditional overwrite. The gap around the data payload is delegated to schema_get via the schema itself, and return values for a real (non-dry-run) save are unspecified, but nothing critical for calling it correctly 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% and the schema already states that data "replaces the whole of it" and that rev_id is unchecked, so the description mostly reinforces existing parameter documentation. The reinforcement of whole-object replacement is useful, but nothing new about argument syntax or formats is added beyond the schema.

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?

"Save a chart of the wizard as given" states a specific verb (save) and resource (wizard chart), and the qualifying "of the wizard" distinguishes it from the editor and ql update siblings. It stops short of naming a sibling outright, so the separation from datalens_charts_wizard_create relies on the "read it, change it, send it back whole" wording rather than an explicit contrast.

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 read-modify-write sequence ("read it, change it, send it back whole") implies the expected workflow and therefore implies when the tool is used rather than an alternative. There is no explicit statement of when not to use it, no mention of the wizard_create sibling for new charts, and no prerequisites such as permissions are given.

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