Get Query History
get_query_historyRetrieve recent SQL queries from the local audit log and filter by tool, status, or query type to review model actions, verify outputs, and support post-mortem inspection.
Instructions
Retrieve recent SQL queries executed by the assistant from the local audit log. Useful for reviewing model actions, verifying hallucinations, and post-mortem inspection.
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 |
|---|---|---|---|
| tool | No | Optional tool filter ('execute_query', 'execute_mutation', 'explain_query', 'export_query_results'). | |
| limit | No | Number of recent queries to return (default: 20, max: 200). | |
| status | No | Optional status filter ('SUCCESS', 'FAILED', 'BLOCKED_BY_SAFETY'). | |
| query_type | No | Optional type filter ('READ', 'MUTATION', 'EXPLAIN', 'EXPORT'). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |