Skip to main content
Glama

Update DataLens editor chart

datalens_charts_editor_update
Idempotent

Save or publish a DataLens Editor chart to the server, keeping a draft or making it the shown version. Note: saving overwrites changes made since you last read the chart.

Instructions

Save a chart of the editor as given.

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": {
      "entry": "<entry>",
      "mode": "<mode>"
    },
    "name": "datalens_charts_editor_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYes`save` keeps a draft; `publish` makes it the version shown.
entryYesThe chart to save: its `entryId`, its kind (`type`) and its code.
dry_runNoSend nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none).

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

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

The annotations already establish that this is a non-read-only, idempotent, non-destructive operation. The description adds valuable behavior beyond that: there is no revision check, and a save can overwrite changes made since the chart was read. This is a meaningful concurrency and data-loss warning, though it could be clearer about its relationship to the declared non-destructive profile.

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?

The description is two short sentences, front-loads the action, and uses the second sentence for the most important non-obvious warning. There is no unnecessary wording.

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 mutation tool with no output schema, the description covers the critical overwrite behavior and the schema fully documents parameters and the dry_run response. It is nearly complete, though it omits return behavior for actual saves and any explicit routing relative to sibling update/create tools.

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 the schema already documents entry, mode, and dry_run in detail. The description adds no parameter-specific meaning beyond the schema, which is acceptable given full schema coverage.

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 description states a specific verb and resource: saving an editor chart. It is clear enough to identify the operation, but it does not distinguish this editor-chart save from sibling tools such as datalens_charts_editor_create or the ql/wizard update variants.

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

Usage Guidelines2/5

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

There is no explicit guidance on when to use this tool versus alternatives, nor any stated prerequisites such as reading the chart first. The warning about overwrites implies a read-before-save pattern, but it is not framed as usage guidance.

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