Ask the database a question
askAnswer plain-language database questions and return the result, executed SQL, rows, and a latency/cost trace, showing whether a query actually ran.
Instructions
Answer a question about the database in plain language. Returns the answer, the SQL that was actually executed, the rows it returned, and a trace of every step with its latency and cost. sql_was_executed is false when the agent answered without running a query; in that case final_sql is null and claimed_sql holds whatever SQL the model typed into its answer without running it.
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": {
"question": "<question>"
},
"name": "ask"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| question | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||