findOne
Retrieve a single document from a MongoDB collection using a filter query. Specify fields to include or exclude with projection.
Instructions
Find a single document in 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": "findOne"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filter | No | MongoDB filter query | |
| collection | Yes | Collection name | |
| projection | No | Fields to include/exclude |