execute_sql
Execute SQL against a chosen PostgreSQL database, with limits on rows returned to avoid excessive data.
Instructions
Execute SQL (max 50 rows returned)
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": {
"sql": "<sql>"
},
"name": "execute_sql"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| db | No | Database id from list_databases | |
| sql | Yes | ||
| limit | No |