Skip to main content
Glama

Update DataLens QL chart

datalens_charts_ql_update
Idempotent

Save or publish a QL chart by replacing its full data; saves overwrite existing content without revision checks.

Instructions

Save a QL chart as given; the reply is what DataLens answers, as it came.

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_id": "<entry_id>",
      "template": "<template>",
      "mode": "<mode>",
      "data": "<data>"
    },
    "name": "datalens_charts_ql_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYesWhat the chart holds; it replaces the whole of it.
modeYes`save` keeps a draft; `publish` makes it the version shown.
dry_runNoSend nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none).
entry_idYesChart id.
templateYesThe template of the chart; the API takes only `ql` today.
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.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, but the description adds genuinely new behavior: no revision check, and a save silently overwrites anything written since the read. That is supplied context an agent cannot get from the annotations, and it is worth flagging against the non-destructive hint. It also discloses that the reply is the raw DataLens response.

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 operation stated first and the concurrency caveat second. Some phrasing ("as it came", "(measured)") is idiosyncratic and costs a little clarity, but nothing is padded.

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 mutation tool with a nested free-form `data` object and no output schema, the description covers the overwrite risk and the return shape but leaves the save-vs-publish consequence and dry_run affordance entirely to the schema. Adequate, not complete.

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%, including the `mode` save/publish distinction, `dry_run`, and the whole-object replacement semantics of `data`, so the schema carries the parameter burden. The description adds no parameter-level detail beyond "as given", which is fine but not additive.

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?

States a specific verb and resource ("Save a QL chart") and the second sentence makes clear this is an overwrite of an existing chart rather than a create. It does not name the sibling alternatives (ql_create, editor_update, wizard_update), so differentiation is implied rather than explicit.

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 note about reading before saving implies a read-modify-write workflow and warns of the concurrency hazard, which nudges correct usage. However, there is no explicit when-to-use vs. ql_create or ql_get, and no guidance on when to prefer `dry_run` or `mode: save` vs `publish`.

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