mongo_insert_one
Insert a single document into a MongoDB collection by specifying the collection name and document JSON.
Instructions
Insert a single document into a MongoDB collection. Blocked when readOnly mode is enabled.
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": "mongo_insert_one"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | No | ||
| document | Yes | JSON string of the document to insert. | |
| collection | Yes | ||
| connectionId | No | Id of the mongodb connection to use. Optional when only one mongodb connection is configured. |