aggregate_data_tool
Aggregate a column from Serbian government datasets using functions like sum, mean, median, min, max, count, std, or var. Returns the computed scalar value.
Instructions
Aggregate a single column using a function.
Shorthand for transform_data(operation='aggregate'). Returns the scalar result as {"value": ..., "column": ..., "function": ...}.
Functions: sum, mean, median, min, max, count, std, var.
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": {
"data": "<data>",
"column": "<column>"
},
"name": "aggregate_data_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Row dicts from get_resource_data() | |
| column | Yes | Column to aggregate | |
| function | No | Aggregation function (default "sum") | sum |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||