nl_query
Translates plain-English questions into SQL queries for a selected database connection and can execute the generated SQL automatically.
Instructions
Natural language to SQL 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": {
"connectionId": "<connectionId>",
"question": "<question>"
},
"name": "nl_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| question | Yes | Natural language question | |
| autoExecute | No | Automatically execute the generated SQL | |
| connectionId | Yes | Connection ID |