drop-collection
Remove a collection or view from a MongoDB database, including its associated indexes. Provide the database and collection names to complete the deletion.
Instructions
Removes a collection or view from the database. The method also removes any indexes associated with the dropped 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": {
"database": "<database>",
"collection": "<collection>"
},
"name": "drop-collection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | Yes | Database name | |
| collection | Yes | Collection name |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dropped | Yes | ||
| database | Yes | ||
| collection | Yes |