Skip to main content
Glama

Read the data of a DataLens chart

datalens_charts_data_get
Read-onlyIdempotent

Fetch the rows and columns that a saved chart displays, using its saved settings and optional parameter values for inspection or reuse.

Instructions

The data a saved chart shows, as tables of columns and rows.

The chart runs with its saved settings. chartType says how it is built (wizard, ql, editor). A pivot table is not supported, and a chart whose source cannot be reached answers with an error. A chart of the editor with no source did not answer within the client's wait: the call ends with a timeout after about two minutes (measured, twice). entries_list with the scope widget finds charts.

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": {
      "chart_id": "<chart_id>"
    },
    "name": "datalens_charts_data_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
paramsNoValues for the chart's parameters, by name: one value or several.
chart_idYesChart id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.122.1

TDQS

A3.6/5.0
Behavior4/5

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

Beyond the readOnly/openWorld/idempotent annotations, the description discloses that the chart runs with its saved settings, that pivot tables are unsupported, that an unreachable source yields an error, and that an editor chart with no source can hang for roughly two minutes before timing out. Those failure modes and the latency ceiling are exactly the kind of context annotations cannot convey. It stops short of describing pagination or result-size behavior.

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?

The purpose is front-loaded, which is good, but the timeout sentence is anecdotal and wordy ("did not answer within the client's wait ... (measured, twice)"), and the reStructuredText double-backtick markup clutters otherwise plain prose. The total length is defensible given the number of caveats, but the phrasing could be tightened.

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 burden of describing the return value, and it does: tables of columns and rows plus a chartType indicator. Combined with the documented error and timeout behavior, an agent has enough to call it and interpret the result; only result volume/pagination is unaddressed.

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 coverage is 100%, so both chart_id and params are already documented in the schema, which sets the baseline at 3. The description only implicitly adds that params feed the chart's own saved parameters ("runs with its saved settings"); it adds no syntax or typing detail beyond the schema.

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 data a saved chart shows, as tables of columns and rows" gives a specific resource (chart data) and output shape, and it clarifies that the chart is executed rather than its definition being returned. It never explicitly contrasts itself with the sibling definition-readers (datalens_charts_wizard_get / ql_get / editor_get), so the distinction must be inferred from the tool name.

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 supplies useful navigation: ``entries_list`` with scope ``widget`` is named as the way to find charts, which tells the agent how to obtain the required chart_id. It also rules out pivot tables and unreachable sources. However, there is no explicit statement of when to prefer this over datalens_datasets_data_get or the per-type chart getters, so the when-to-use guidance is implied rather than stated.

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