sql_aggregate_enhanced
Run aggregate functions (count, sum, avg, min, max) on any Supabase table using raw SQL, bypassing client limitations. Supports filters and grouping.
Instructions
Execute aggregate functions using raw SQL (bypasses Supabase client limitations)
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": {
"table": "<table>",
"function": "<function>"
},
"name": "sql_aggregate_enhanced"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | Table name to aggregate | |
| column | No | Column to aggregate (not needed for count) | |
| filters | No | WHERE clause filters (key-value pairs) | |
| function | Yes | Aggregate function (count, sum, avg, min, max) | |
| group_by | No | Column to group by (optional) |