Get saved query
get_queryGet one saved query by id: its name, SQL, connectionId, folder and declared {{variables}} with each variable's type, default, required flag and dropdown options. Call it before run_saved_query to learn which values to pass and in what format. Read-only.
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": {
"id": "<id>"
},
"name": "get_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Saved query id from list_queries. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| sql | No | ||
| name | No | ||
| isShared | No | ||
| updatedAt | No | ||
| variables | No | Declared {{name}} variables, filled in by run_saved_query. | |
| folderPath | No | ||
| connectionId | No |