Get query insights
helix_get_query_insightsGet per-query statistics for one database over a time window: how often each query ran and failed, its average and maximum latency, and what the query planner found. Latency percentiles are helix_get_query_latency's, and recommendations helix_list_query_recommendations's.
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": {
"database": "<database>"
},
"name": "helix_get_query_insights"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | Exclusive RFC3339 end time. Supply together with start instead of period. | |
| sort | No | How to order the queries; last_seen when empty. | |
| limit | No | Maximum insights to return, from 1 through 20. | |
| start | No | Inclusive RFC3339 start time. Supply together with end instead of period. | |
| period | No | A period ending now. Or give start and end instead. | |
| database | Yes | Database reference in cluster:<id> or tenant:<id> form. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| window | Yes | ||
| database | Yes | ||
| insights | Yes | ||
| content_trust | Yes |