run_query
Execute arbitrary read-only SQL to retrieve up to 1000 rows of telemetry data, including TimescaleDB functions, with a 30-second timeout, for queries not covered by other tools.
Instructions
Run arbitrary read-only SQL and return rows INLINE, capped at 1000.
The escape hatch for questions the other tools do not cover. Runs in a
Postgres READ ONLY transaction with a 30 s statement timeout.
TimescaleDB functions like time_bucket are available. Remember the
camelCase columns need double quotes.
If you are collecting data to plot, use export_query instead -- this
tool spends context on every row it returns.
Name any topic you filtered on in your answer to the user.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| car | No | ||
| sql | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||