Skip to main content
Glama

Read rows of a DataLens dataset

datalens_datasets_data_get
Read-onlyIdempotent

Retrieve dataset rows for specified field columns, one page per call. Filter, sort, and paginate using guid-based column names from the dataset schema.

Instructions

Rows of a dataset: the columns asked for, one page per call.

Columns are named by the guid of a field, not by its title: read them with datasets_get. For the next page give offset together with sort.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sortNoThe order of the rows: a field's guid and `asc` or `desc`.
limitNoThe most rows to return; 100 when left out.
offsetNoHow many rows to skip; above zero it needs `sort`.
paramsNoValues for the dataset's parameters.
columnsYesThe guids of the fields to return (`dataset.result_schema[].guid`).
filtersNoThe rows to keep: a field's guid, an operation and its values.
dataset_idYesDataset id.
workbook_idNoThe workbook the dataset lies in.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.122.1

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint, so the safety profile is covered. The description adds genuine behavioral context beyond that: results are paginated (one page per call) and advancing pages requires offset combined with sort, which is a real pagination constraint the agent needs.

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

Conciseness5/5

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

Two tight sentences with zero waste. The core scope is front-loaded and the two operative constraints (guid-based columns, offset+sort paging) follow immediately.

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 read tool with full schema coverage and no output schema, the description covers the two non-obvious behaviors an agent needs (guid naming and pagination coupling). It does not describe the shape of returned rows, which is a minor gap given there is no output schema to lean on.

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 actionable meaning by clarifying that columns are identified by field guid rather than title and by pointing to datasets_get as the source of those guids. This resolves a likely confusion that the raw schema alone does not preempt.

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?

States a concrete verb+resource ('Rows of a dataset') and immediately scopes it to 'the columns asked for, one page per call', which tells the agent this is a paginated row reader, not a metadata fetch. It references the sibling datasets_get for column guids, giving some sibling differentiation, though it doesn't distinguish itself from other data-reading tools like charts_data_get.

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?

Provides real usage guidance for the mechanics (read guids via datasets_get; pass offset together with sort for the next page), but never states when to choose this tool over alternatives such as charts_data_get or sqlqueries_run. Usage context is implied rather than explicitly bounded.

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