insert_documents
Insert a single JSON document or an array into a MongoDB collection and return the inserted _ids; set ordered=false to continue after failed documents.
Instructions
Insert one document (JSON object) or many (JSON array). Returns the inserted _ids. ordered=false keeps inserting after a failing document.
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>",
"documents": "<documents>"
},
"name": "insert_documents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ordered | No | ||
| database | No | ||
| documents | Yes | ||
| collection | Yes | ||
| connection | No |