Skip to main content
Glama

Create DataLens report

datalens_reports_create

Create a DataLens report in a workbook from report data and metadata; note the API does not preserve slide element layout or some settings.

Instructions

Create a report in a workbook; the API keeps no layout of slide elements.

Measured (2026-10-06): a report made through the API loses the layout of the elements of its slides and part of its settings, so a copy of a report read with reports_get loses where its elements stood. Say so before making one. DataLens refuses a report with no slide: data.slides holds at least one.

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": {
      "data": "<data>",
      "meta": "<meta>"
    },
    "name": "datalens_reports_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyNoThe report's key, in a folder.
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.
nameNoThe report's name.
dry_runNoSend nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none).
annotationNoA description of the report.
workbook_idNoThe workbook to create the report in.
include_permissionsNoAlso say what the caller may do with the new 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

A4/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false, openWorldHint=true). The description adds real substance beyond them: reports made via the API lose element layout and part of their settings, so copies read back with reports_get no longer preserve placement, and DataLens rejects a report with zero slides. Those are exactly the consequences an agent needs to surface before a write.

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 purpose and the critical warning are front-loaded, and the whole thing is roughly four sentences. The mid-text measurement date and the restatement of the loss (layout first, then the reports_get consequence) are slightly redundant but not wasteful enough to obscure the message.

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 an 8-parameter mutation with nested objects and no output schema, the description covers the highest-risk unknown (silent layout/settings loss) and the hard validation rule. It never states what the call returns or how include_permissions and dry_run change the response, which is the main remaining gap given there is no output schema.

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 adds a genuine constraint on the `data` parameter: data.slides must contain at least one slide or the API refuses the request. That constraint is stated only in the description's narrative, not in the `data` schema text, so it earns a point above baseline.

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?

Clear specific verb and resource ("Create a report in a workbook") plus a scope caveat about slide layout. It does not name sibling alternatives such as reports_update or reports_get, so its differentiation comes from the content of the caveat rather than explicit routing.

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 gives one actionable precondition-style instruction, "Say so before making one," which tells the agent to warn the caller before invoking. It offers no guidance on when to create versus update an existing report, and no prerequisites about permissions or workbook existence beyond what the schema implies.

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