find_one
Retrieve a single document from a MongoDB collection using a query filter. Returns the first document that matches the specified condition.
Instructions
Find a single document in a 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": "find_one"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filter | No | Query filter (MongoDB query syntax) | |
| collection | Yes | Collection name |