Skip to main content
Glama

Update DataLens report

datalens_reports_update
Idempotent

Save or publish a DataLens report by replacing its full data; confirm before overwriting because layout and settings may be dropped.

Instructions

Save a report; it LOSES the layout of its slide elements and some settings.

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

Measured (2026-10-06): DataLens drops them on a save through the API, without a word, though every value is sent. Ask the person before saving an existing report. Otherwise: read it, change data, send it back whole.

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>",
      "data": "<data>",
      "mode": "<mode>",
      "meta": "<meta>"
    },
    "name": "datalens_reports_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYesWhat the report holds: its slides and its settings; it replaces the whole of it. Its schema is not listed here: read `ReportData` with schema_get(service="datalens", name="ReportData"), then the definitions it refers to.
metaYesMetadata of the entry; null for none. Required.
modeYes`save` keeps the report as a draft; `publish` shows it to all.
rev_idNoThe revision of the report the change is made on.
dry_runNoSend nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none).
entry_idYesReport id.
annotationNoA description of the report.

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

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

The description is unusually candid: it discloses silent loss of ``layout`` and some ``settings``, absence of a revision check, and overwrite of anything saved since the read, with a measurement date. However, that directly conflicts with the supplied destructiveHint=false annotation, which tells the agent the operation is additive; the agent receives contradictory safety signals on the one point that matters most.

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?

The most important warning is front-loaded and capitalized, followed by the concurrency caveat and then the recommended workflow. There is mild redundancy between 'it LOSES the layout ... and some settings' and 'DataLens drops them on a save', but no filler.

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 7-parameter, nested-object write tool with no output schema, the description covers the risky behaviors, the overwrite semantics, and points to schema_get for ReportData. It leaves dry_run and mode/save-vs-publish entirely to the schema, which is acceptable given full schema coverage.

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 coverage is 100%, so baseline is 3. The description does add real meaning beyond the schema in one place: it warns that ``rev_id`` is not actually honored ('DataLens does not check a revision here'), which contradicts the schema's implication of optimistic concurrency. The 'send it back whole' phrasing about ``data`` only restates what the schema already says.

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 report" gives a specific verb and resource, and the body clarifies that this is a whole-object write ('send it back whole'). It stops short of naming how it differs from datalens_reports_create, so an agent must infer that this one targets existing reports.

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

Usage Guidelines4/5

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

It prescribes a concrete workflow ('read it, change data, send it back whole') and an explicit precondition ('Ask the person before saving an existing report'). The only gap is that the read step is described rather than routed to the named sibling datalens_reports_get.

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