aggregate_documents
Run bounded read aggregations on MongoDB collections using supported pipeline stages, enabling grouped and transformed results without joins, writes or JavaScript.
Instructions
Run a bounded read aggregation using supported stages; no joins, writes or JS.
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": {
"database": "<database>",
"collection": "<collection>",
"pipeline": "<pipeline>"
},
"name": "aggregate_documents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | Yes | ||
| pipeline | Yes | ||
| collection | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||