aggregate
Execute custom aggregation pipelines on MongoDB collections to filter, group, transform, and compute aggregated results from document data.
Instructions
Run an aggregation pipeline
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": {
"collection": "<collection>",
"pipeline": "<pipeline>"
},
"name": "aggregate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pipeline | Yes | Aggregation pipeline stages | |
| collection | Yes | Collection name |