mongo_aggregate
Run MongoDB aggregation pipelines to transform and analyze collection data; read-only connections reject $out and $merge stages.
Instructions
Run a MongoDB aggregation pipeline. Read-only connections reject $out/$merge.
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": {
"connection_id": "<connection_id>",
"collection": "<collection>",
"pipeline": "<pipeline>"
},
"name": "mongo_aggregate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| database | No | ||
| pipeline | Yes | ||
| collection | Yes | ||
| connection_id | Yes |