create_document
Insert a new JSON document into a MongoDB collection using the collection name and document JSON. Adds a record to the database.
Instructions
Create a new 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_name": "<collection_name>",
"document_json": "<document_json>"
},
"name": "create_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_json | Yes | JSON string representing the document to create | |
| collection_name | Yes | Name of the collection |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||