Skip to main content
Glama

Create DataLens QL chart

datalens_charts_ql_create

Create a DataLens QL chart from a template and data payload, optionally in a workbook, and return the API response. Use dry runs to preview the write request first.

Instructions

Create a QL chart; the reply is what DataLens answers, as it came.

The specification describes neither the content of a QL chart nor the reply.

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": {
      "template": "<template>",
      "data": "<data>"
    },
    "name": "datalens_charts_ql_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyNoThe entry's key, in a folder.
dataYesWhat the chart holds: its query and how it is shown.
nameNoThe chart's name.
dry_runNoSend nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none).
templateYesThe template of the chart; the API takes only `ql` today.
annotationNoA description of the chart.
workbook_idNoThe workbook to create it 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

C2.9/5.0
Behavior3/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 one genuine behavioral fact beyond them: the reply is the raw DataLens response, unmodified, so the agent should not expect a normalized shape. Beyond that it offers no info on permissions, side effects, or failure modes.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, front-loaded with the action, which is good. The second sentence is meta-commentary about what the specification omits rather than information the agent can act on, so it does not fully earn its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a create tool for a config-heavy resource with seven parameters, a free-form nested `data` object, and no output schema. The description explicitly declines to describe the chart content or the reply, leaving the agent without guidance on what a QL chart payload should contain, which is the hardest part of invoking this correctly.

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 seven parameters are already documented in the schema, including the unusual dry_run semantics. The description adds no meaning beyond that; baseline 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 states a specific verb and resource: 'Create a QL chart'. This distinguishes it by resource type from editor and wizard chart creators, but it never explicitly contrasts with them or with ql_update/ql_get, so the sibling differentiation is implied by name only.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no mention of prerequisites such as needing a workbook or a valid template, and no routing to alternatives like datalens_charts_editor_create or datalens_charts_wizard_create. The only constraint (template accepts only `ql`) lives in the schema, not the description.

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