Skip to main content
Glama

Update DataLens HTML page

datalens_htmlpages_update
Idempotent

Saves new HTML content for a DataLens page or makes an existing revision current, using save or publish mode to control whether changes are public.

Instructions

Save new HTML of a page, or make one of its revisions the current one.

mode save makes a new revision and leaves the public one; publish shows it to everyone. With revId, save copies that revision as the current draft.

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": {
      "body": "<body>"
    },
    "name": "datalens_htmlpages_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesEither new HTML, `{entryId, content, mode}`, or a revision to make current, `{entryId, revId, mode}`: one of the two, not both.
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

A4.4/5.0
Behavior4/5

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

Annotations already declare non-readOnly, idempotent, non-destructive behavior, and the description adds real substance on top: `save` makes a revision but leaves the public page unchanged, `publish` makes it visible to everyone, and `revId` + `save` copies a revision as the current draft. Remaining gaps, such as permissions required to publish or whether prior public content is preserved, are minor but real for a publication-affecting mutation.

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?

Three short sentences with the capability stated first, followed by mode semantics and the revision case. No filler, no redundancy, and the most decision-relevant information is front-loaded.

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 two-parameter mutation with full schema coverage and annotations present, the description covers the mode and revision semantics well; `dry_run` is documented in the schema and need not be repeated. It could be slightly more complete by noting publish side effects on existing public content or any permission requirements.

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, but the description goes further by explaining what `mode` actually does (`save` vs `publish`) and what supplying `revId` means functionally. This maps the schema fields to observable effects rather than restating their labels.

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?

States a specific verb and resource ('Save new HTML of a page, or make one of its revisions the current one'), covering both capabilities of the tool. This clearly separates it from siblings like datalens_htmlpages_create, _get, and _delete without needing to name them.

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?

Explicitly explains how to choose between `save` and `publish` modes and what `revId` selects, which is the main decision an agent must make. It stops short of stating when to prefer this tool over datalens_htmlpages_create or when not to use it at all.

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