insert_many
Insert multiple JSON documents into a MongoDB collection in a single operation. Specify the collection and optional database to store many records at once.
Instructions
Sisipkan BANYAK dokumen sekaligus ke dalam koleksi.
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>"
},
"name": "insert_many"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | No | Nama database tujuan. Opsional jika MONGODB_DB sudah diatur. | |
| documents | No | Array dokumen JSON untuk disimpan sekaligus. Contoh: [{"nama": "Ani"}, {"nama": "Budi"}]. | |
| collection | Yes | Nama koleksi. |