aggregate
Count or sum values in a table grouped by specified columns, providing quick aggregation without SQL complexity.
Instructions
Simplified aggregation on a DuckDB table.
Easier than SQL for common count/sum/group-by queries.
Example: aggregate(table="t_abc_0", group_by=["xã"], agg="count")
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>",
"group_by": "<group_by>"
},
"name": "aggregate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agg | No | count | |
| table | Yes | ||
| filter | No | ||
| group_by | Yes | ||
| agg_column | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||