insertOne
Insert a single document into a MongoDB collection, with automatic field validation and ObjectId conversion.
Instructions
Insert a single document into 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>",
"document": "<document>"
},
"name": "insertOne"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document | Yes | Document to insert | |
| collection | Yes | Collection name |