Skip to main content
Glama

Update DataLens dataset

datalens_datasets_update
Idempotent

Replace a dataset's content to save changes. Validate first with datasets_validate, then re-read after saving to avoid stale revisions.

Instructions

Save a dataset as given: read it, change what it holds, send it back whole.

data.dataset replaces the content. Check a change first with datasets_validate. Read the dataset again after every save: content of an older revision is refused. The reply holds the content and the revisions; its id is null (measured).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYesThe content to save (`dataset`) and how (`mode`: `save` or `publish`). Its schema is not listed here: read `DatasetUpdate` with schema_get(service="datalens", name="DatasetUpdate"), then the definitions it refers to.
dataset_idYesDataset id.
workbook_idNoThe workbook the dataset lies in.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.122.1

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly=false, idempotent=true, destructive=false, so the safety bar is partly met. The description goes further, disclosing optimistic-concurrency behavior (older revisions are refused), the need to re-read after saving, and what the reply contains, which is meaningful context beyond the annotations.

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?

Three short, front-loaded sentences with no filler; the core action leads and the workflow caveats follow. The parenthetical '(measured)' and heavy backtick usage are slightly cryptic but do not bloat the text.

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?

With no output schema, the description carries the return-value burden and partially does so ('the reply holds the content and the revisions; its id is null'). It also covers revision conflicts and the validate workflow, though the ``publish`` vs ``save`` mode of the nested ``data`` object is left entirely to the referenced schema.

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 ``data`` parameter already points to ``schema_get`` for the ``DatasetUpdate`` type, so the schema does the heavy lifting. The description only reinforces that the ``dataset`` key replaces content, adding marginal meaning over the schema baseline of 3.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/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 a dataset by reading it, changing it, and returning it whole — and explicitly declares that ``data.dataset`` replaces the content. It differentiates from siblings by naming ``datasets_validate`` as the pre-check tool, so an agent can tell it apart from create/validate/delete without inspecting schemas.

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 gives concrete workflow context: validate a change first with ``datasets_validate``, and re-read the dataset after every save because older-revision content is refused. This is rich, actionable guidance, though it stops short of naming when-not-to-use cases or contrasting with ``datalens_datasets_create`` for net-new datasets.

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