Run DataLens saved SQL query
datalens_sqlqueries_runExecutes a saved SQL query on its DataLens connection and returns each statement's result, including any data changes it makes.
Instructions
Run a saved SQL query on its connection and return the result of each statement.
The text runs as it is saved: one that changes data changes it. Experimental in the DataLens API and written from its document: not measured.
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": {
"sql_query_id": "<sql_query_id>"
},
"name": "datalens_sqlqueries_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | No | The values of the parameters, by name; one left out takes its default. | |
| dry_run | No | Send nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none). | |
| sql_query_id | Yes | SQL query id. |