mongo_find
Query MongoDB collection documents by specifying filter, sort, projection, skip, and limit parameters.
Instructions
Query documents from a MongoDB collection.
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": {
"collection": "<collection>"
},
"name": "mongo_find"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| skip | No | Number of documents to skip. | |
| sort | No | JSON string sort specification (e.g. '{"createdAt":-1}'). | |
| limit | No | Max documents to return (default 100). | |
| filter | No | JSON string filter query (e.g. '{"status":"active"}'). | |
| database | No | Database name. | |
| collection | Yes | Collection name. | |
| projection | No | JSON string field projection (e.g. '{"name":1}'). | |
| connectionId | No | Id of the mongodb connection to use. Optional when only one mongodb connection is configured. |