ai_sql
AI text-to-SQL — Turn a plain-English question into one SQL query, optionally constrained to your schema and dialect, with statement type and read-only flag. Pass ?question=, optional ?schema= and ?dialect= (default postgresql). Price: $0.01 USDC (Base, via x402).
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": "ai_sql"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schema | No | optional CREATE TABLE text or column list | |
| dialect | No | optional, default postgresql | |
| question | Yes | what you want to query |