get_query_history
Retrieve and filter recent database query history by database, kind, time range, errors, or profile. Use it to analyze past activity and troubleshoot issues.
Instructions
Get recent query history. Filters: db, kind, since, until, onlyErrors, limit (default 50). v2.19: profileName (string | null) + groupBy='profile' (aggregates).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_query_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| db | No | ||
| kind | No | ||
| limit | No | ||
| since | No | ||
| until | No | ||
| groupBy | No | Aggregate query. v2.19. | |
| onlyErrors | No | ||
| profileName | No | Filter by profile. null = global-only; string = that profile. v2.19. |