get_document
Fetch a single document from a MongoDB collection using its object ID and collection name. Enables targeted retrieval for CRUD operations.
Instructions
Get a single document by ID.
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_name": "<collection_name>",
"document_id": "<document_id>"
},
"name": "get_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_id | Yes | The MongoDB object ID of the document | |
| collection_name | Yes | Name of the collection |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||