get_query_history
Retrieves recent query history for a database connection to help re-run or fix previously executed queries.
Instructions
Return recent query history for a connection.
Useful for the editor AI to understand what has been executed recently, especially when the user says "run that again" or "fix the last query."
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": {
"connection": "<connection>"
},
"name": "get_query_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| last_n | No | Number of recent queries to return (max 50, default 10). | |
| connection | Yes | Database alias. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |