Skip to main content
Glama

Create DataLens HTML page

datalens_htmlpages_create

Create and publish an HTML page in DataLens, returning its entry and HTML warnings so you can validate the published output.

Instructions

Create an HTML page; the reply has it under entry and warnings about its HTML.

Creating publishes: the page is saved and published at once. A draft comes with the first htmlpages_update with mode="save".

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": {
      "content": "<content>"
    },
    "name": "datalens_htmlpages_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyNoThe page's key, in a folder.
nameNoThe page's name, in a workbook.
contentYesThe HTML of the page.
dry_runNoSend nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none).
annotationNoA description of the page.
workbook_idNoThe workbook to create the page in.

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

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

Annotations declare non-read-only, non-destructive, non-idempotent and open-world, but the description adds the important side effect that creation also publishes at once — a behavioral trait not derivable from the hints. It also discloses the response fields ('entry', 'warnings'), which matters since there is no output schema; permission or rate-limit details are absent.

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 paragraphs, front-loaded with purpose and then the publish-on-create caveat; almost every sentence earns its place. The phrasing 'the reply has it under `entry` and `warnings` about its HTML' is slightly awkward but not wasteful.

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, describing the return shape and warning behavior fills a real gap, and the publish-vs-draft note covers the main surprise for an agent. What is missing is guidance on placement semantics (folder `key` vs workbook `name`/`workbook_id`) for a tool with six parameters.

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%, so all six parameters are already documented in the input schema. The description adds no meaning about `key` vs `name` vs `workbook_id` scoping, and the only parameter-adjacent information (`mode="save"`) belongs to a different tool, so the baseline of 3 applies.

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 opens with a specific verb+resource: 'Create an HTML page,' and immediately characterizes the return value ('entry' and 'warnings'). It is clearly distinct from the sibling list, though it does not explicitly contrast itself with other create tools such as charts or dashboards creators.

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 states a genuine when-to-use distinction: calling this publishes immediately, whereas a draft requires `htmlpages_update` with `mode="save"`. That names an alternative and the condition that selects it, but no exclusion guidance is given for e.g. when to preview first.

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