query_natural
Ask a natural-language question about a PostgreSQL table; it generates and runs SQL from the table schema and returns matching rows, so you avoid writing SQL manually.
Instructions
Ask a question in natural language about data in a PostgreSQL table. The AI generates a SQL query from the question and table schema, executes it, and returns the results. Use this instead of writing SQL manually.
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>",
"table": "<table>"
},
"name": "query_natural"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum rows to return (default: 100). Pass -1 for unlimited — no cap, returns every matching row. | |
| table | Yes | PostgreSQL table name to query | |
| schema | No | PostgreSQL schema (default: public) | |
| database | No | Database name (default: datris) | |
| question | Yes | Natural language question about the data |