Run SQL
run_sqlRun one read-only ClickHouse SELECT on tiktok.* and get the rows back (at most 100 per request; 10 s per query). Name the columns you need and add a LIMIT.
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": "<sql>"
},
"name": "run_sql"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | One ClickHouse SELECT, e.g. SELECT username, followers FROM tiktok.creators WHERE country = 'US' ORDER BY followers DESC LIMIT 10 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | One array per row, values in the order of columns | |
| capped | Yes | true when the result was cut at the 100-row limit | |
| columns | Yes | ||
| rows_read | Yes | ||
| elapsed_ms | Yes |