Skip to main content
Glama

Update DataLens dashboard

datalens_dashboards_update
Idempotent

Save or publish a DataLens dashboard by sending its full updated definition with entryId, data, meta, and revId; choose draft or public mode. Saving overwrites changes made since it was read.

Instructions

Save a dashboard as given: read it, change data, 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": {
      "entry": "<entry>",
      "mode": "<mode>"
    },
    "name": "datalens_dashboards_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYes`save` keeps the dashboard as a draft; `publish` shows it to all.
entryYesThe dashboard to save: its `entryId`, `data`, `meta` and `revId`. Its schema is not listed here: read `DashboardUpdate` with schema_get(service="datalens", name="DashboardUpdate"), then the definitions it refers to.
dry_runNoSend nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none).
lock_tokenNoThe token of the lock held on the dashboard, when it is locked.

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

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

The annotations already cover safety (readOnlyHint=false, destructiveHint=false, idempotentHint=true), but the description adds the one thing they cannot: there is no revision check, so a save silently overwrites anything written since the read. Flagging that as 'measured' tells an agent to re-read immediately before saving, which is genuine value beyond structured fields.

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 tight sentences: the operation first, the hazard second. Nothing is padded, though the parenthetical '(measured)' is terse enough to be slightly opaque without surrounding context.

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 nested-object mutation tool with no output schema, the description covers the operation shape and the main failure mode (lost updates). The unresolved `DashboardUpdate` schema is redirected to `schema_get` in the schema itself, so nothing critical is left dangling, though lock handling is only implied.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, and the description earns a bump by clarifying that `entry` is transmitted whole rather than as a patch — which is exactly the semantics an agent must not get wrong. It says nothing about `mode`, `dry_run` or `lock_token`, but those are fully documented in 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?

The description gives a specific verb and resource (save a dashboard) and pins down the shape of the operation: read it, change `data`, send it back whole. That full-replacement framing implicitly separates it from create/delete siblings, though no sibling is named.

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?

It implies the correct usage pattern (read-modify-write, whole object) but never states when to choose this over `datalens_dashboards_create` or when not to call it, e.g. that a freshly created dashboard should go through a different path.

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