rename_collection
Renames a MongoDB collection within the same database, letting you set a new name and optionally drop an existing target collection.
Instructions
Rename a collection within the same database.
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>",
"new_name": "<new_name>"
},
"name": "rename_collection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | No | ||
| new_name | Yes | ||
| collection | Yes | ||
| connection | No | ||
| drop_target | No |