execute_mongo_aggregate
Runs a MongoDB aggregation pipeline against a specified collection using a connection ID, validating the pipeline and enforcing find() limits.
Instructions
Execute one validated aggregation pipeline under the same limits as find().
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_rows | No | ||
| pipeline | Yes | ||
| collection | Yes | ||
| connection_id | Yes | ||
| timeout_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | ||
| executed | Yes | ||
| documents | No | ||
| operation | Yes | Operation family exposed through MCP and audit. | |
| row_limit | No | ||
| truncated | No | ||
| collection | Yes | ||
| error_code | No | ||
| validation | Yes | Complete result of applying the document read-only operator policy. | |
| duration_ms | No | ||
| connection_id | Yes | ||
| document_count | No | ||
| contract_version | No | 1.0.0 | |
| serialized_bytes | No |