query_range
Execute time-window aggregations over time-series data with GreptimeDB's RANGE syntax, specifying table, select, alignment, and optional grouping or fill.
Instructions
Execute time-window aggregation query using GreptimeDB's RANGE query syntax.
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": {
"table": "<table>",
"select": "<select>",
"align": "<align>"
},
"name": "query_range"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | No | ||
| fill | No | ||
| align | Yes | ||
| limit | No | ||
| table | Yes | ||
| where | No | ||
| format | No | json | |
| select | Yes | ||
| order_by | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |