execute_sql
Execute SQL queries directly on your self-hosted Supabase database for data retrieval, updates, and management operations.
Instructions
Executes an arbitrary SQL query against the database, using direct database connection when available or RPC function as fallback.
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 |
|---|---|---|---|
| sql | Yes | The SQL query to execute. | |
| read_only | No | Hint for the RPC function whether the query is read-only (best effort). |