rename_collection
Rename a MongoDB collection to a new name. Optionally specify the database and drop an existing collection that uses the new name.
Instructions
Mengganti nama sebuah 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>",
"newName": "<newName>"
},
"name": "rename_collection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| newName | Yes | Nama baru untuk koleksi. | |
| database | No | Nama database tujuan. Opsional jika MONGODB_DB sudah diatur. | |
| collection | Yes | Nama koleksi. | |
| dropTarget | No | Hapus koleksi tujuan bila namanya sudah dipakai (default false). |