aggregate_sift
Run a MongoDB aggregation pipeline on a sift's records to compute grouped or filtered results.
Instructions
Run a MongoDB aggregation pipeline against a sift's records.
Args:
sift_id: The sift identifier
pipeline: MongoDB aggregation pipeline stages
e.g. [{"$group": {"_id": "$client", "total": {"$sum": "$total"}}}]
Returns:
Array of aggregated rows
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": {
"sift_id": "<sift_id>",
"pipeline": "<pipeline>"
},
"name": "aggregate_sift"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sift_id | Yes | ||
| pipeline | Yes |