call_rpc
Invoke a Supabase PostgreSQL function via REST API with service_role to bypass Row-Level Security.
Instructions
Call a Supabase PostgreSQL function (RPC) via the REST API. Uses service_role — bypasses RLS.
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": {
"fn": "<fn>"
},
"name": "call_rpc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fn | Yes | Function name (e.g. 'validate_api_key') | |
| args | No | Named arguments as JSON object or JSON string |