aggregate
Run aggregation pipelines on MongoDB collections to process and analyze data using multiple stages for filtering, grouping, and transforming documents.
Instructions
Run an aggregation against a MongoDB collection
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | Yes | Database name | |
| collection | Yes | Collection name | |
| pipeline | Yes | An array of aggregation stages to execute. | |
| responseBytesLimit | No | The maximum number of bytes to return in the response. This value is capped by the server's configured maxBytesPerQuery and cannot be exceeded. Note to LLM: If the entire aggregation result is required, use the "export" tool instead of increasing this limit. |