Skip to main content
Glama

Get a DataLens chart screenshot

datalens_screenshots_chart_get
Read-onlyIdempotent

Capture a saved DataLens chart as a PNG or JPEG image, with optional page size, theme, query parameters, full-page capture, and S3 or base64 output.

Instructions

A picture of a saved chart, rendered by DataLens: by default a link to its file.

The picture shows the data. DataLens takes about three of these a minute. Experimental.

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_screenshots_chart_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
s3NoPut the file in S3 and `data` is its link; the default unless base64.
typeNoThe format of the picture: png (the default), jpeg or jpg.
widthNoThe width of the page in pixels, at most 6000.
base64NoPut the file itself in `data`, base64-encoded: large, ask first.
heightNoThe height of the page in pixels, at most 6000.
chart_idYesThe chart to capture.
full_pageNoCapture the whole page, not one screen of it.
query_paramsNoParameters of the page: values of the chart's parameters by name, {"_theme": "dark"} for the dark theme.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.145.0

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and openWorld, so the description's value is in what they do not say - and it delivers: a throughput limit of roughly three renders per minute, an experimental stability caveat, and the default return being a file link rather than inline data. Missing only error/timeout behaviour, which keeps it short of a 5.

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?

Three short, front-loaded sentences with no filler; the default output is stated immediately after the purpose. Phrasing is a little informal ('about three of these a minute') but the size-to-value ratio is good.

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 eight-parameter read-only rendering tool with full schema coverage and no output schema, the description covers purpose, default return type, rate limits and experimental status - enough to invoke it deliberately. The one real gap is the absent contrast with the dashboard screenshot sibling.

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 every one of the eight parameters is already documented, including the s3-vs-base64 output choice and the 6000px dimension caps. The description only reinforces the s3 default ('by default a link to its file') and adds no format, sizing, or query-parameter detail beyond the schema. 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 concrete verb and resource - it renders a picture of a saved chart - and names the default output shape (a link to the file). The word 'chart' distinguishes it from the dashboard screenshot sibling, though it never explicitly contrasts the two.

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 or when-not-to-use guidance. An agent gets no signal about choosing this over the sibling dashboard screenshot tool, or over the data-returning chart tools when a visual is not actually needed. The only hints are indirect ('Experimental', 'large, ask first' in the schema).

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