supabase_execute_sql
Run SQL statements against a Supabase project's database via the Management API; destructive queries require confirm: true.
Instructions
Run a SQL statement against a Supabase project's database via the Management API. Destructive statements require confirm: true.
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": {
"project_ref": "<project_ref>",
"sql": "<sql>"
},
"name": "supabase_execute_sql"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | The SQL to run. | |
| api_key | No | Legacy token alias. | |
| confirm | No | Set true to allow a destructive statement the guard would block. | |
| project_ref | Yes | Supabase project ref (the xxxx in xxxx.supabase.co). | |
| access_token | No | Optional Supabase access token. Omit to use the connected login. |