Read your query history
get_query_historyGet your recent successful query history with natural language context. Use this to find previous queries that answered similar questions and reuse their SQL patterns. Only shows your own queries (private to your account). Returns the natural language question, SQL, execution details, and optional feedback.
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 |
|---|---|---|---|
| limit | No | Maximum number of queries to return (default: 20, max: 100) | |
| since | No | Only return queries after this date (ISO 8601 format, e.g., '2024-01-01') | |
| tables | No | Comma-separated list of table names to filter by (e.g., 'orders,users') | |
| datasource_id | No | Only return queries that ran against this datasource (UUID). Use this to disambiguate history when a project spans multiple datasources. |