aggregate
Run aggregation pipelines on MongoDB collections to process, transform, and analyze data with filtering and limiting results.
Instructions
Run an aggregation pipeline on a MongoDB collection
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 |
|---|---|---|---|
| limit | No | Maximum documents to return | |
| pipeline | Yes | MongoDB aggregation pipeline | |
| collection | Yes | Collection name |