collection_group_by
Group a list of objects by a specified key to organize records into categories for easier aggregation and analysis.
Instructions
Group a list of objects by a key.
Args: items: List of dictionaries to group. key: The key to group by.
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": {
"items": "<items>",
"key": "<key>"
},
"name": "collection_group_by"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| items | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |