run_query
Execute SQL queries on a ClickHouse datasource by specifying host and query. Read-only by default, supports write access when configured.
Instructions
Execute SQL on a ClickHouse datasource (host:port). Read-only by default; set CLICKHOUSE_ALLOW_WRITE_ACCESS=true for writes.
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": {
"host": "<host>",
"query": "<query>"
},
"name": "run_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| port | No | ||
| query | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |