Get DataLens dataset
datalens_datasets_getRetrieve a DataLens dataset by ID to inspect its sources, joins, and result schema fields. Use it to discover field GUIDs needed when querying dataset data.
Instructions
One dataset by id: its sources, their joins and its fields.
dataset.result_schema lists the fields with their guids, which datasets_data_get
takes as columns. A source or a field of a kind this server does not know comes as it is.
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": {
"dataset_id": "<dataset_id>"
},
"name": "datalens_datasets_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rev_id | No | The revision to read; the current one when left out. | |
| dataset_id | Yes | Dataset id. | |
| workbook_id | No | The workbook the dataset lies in. |