validate_mongo_query
Validate MongoDB find filters and aggregation pipelines without executing them, ensuring query correctness before running.
Instructions
Validate a find filter or aggregation pipeline without executing it.
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>",
"operation": "<operation>"
},
"name": "validate_mongo_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filter | No | ||
| pipeline | No | ||
| operation | Yes | ||
| collection | Yes | ||
| connection_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | Yes | ||
| warnings | Yes | ||
| operation | Yes | Operation family exposed through MCP and audit. | |
| collection | Yes | ||
| executable | Yes | ||
| blocked_reasons | Yes |