Aggregate
aggregateCount, total, average, min or max over a table, optionally grouped by up to 2 fields, computed in the database. Use this instead of reading all records to answer how many / how much questions. Multi-value fields (multiple select, links, users) count a record once per value. Dates group by day unless bucket is week, month or year.
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": {
"baseId": "<baseId>",
"table": "<table>",
"metrics": "<metrics>"
},
"name": "aggregate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| view | No | ||
| table | Yes | Table name or id | |
| baseId | Yes | ||
| filter | No | Structured filter, evaluated as SQL in the database (fast) | |
| groupBy | No | ||
| metrics | Yes | ||
| timezone | No | IANA time zone, such as Asia/Shanghai, for the day buckets of values with a time; UTC by default |