query
Query MongoDB collections with filters, projections, and limit options. Optionally analyze execution plan statistics for query optimization.
Instructions
Execute a MongoDB query with optional execution plan analysis
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of documents to return | |
| filter | No | MongoDB query filter | |
| explain | No | Optional: Get query execution information | |
| collection | Yes | Name of the collection to query | |
| projection | No | Fields to include/exclude | |
| objectIdMode | No | Control how 24-character hex strings are handled | auto |