create-collection
Create a new collection in MongoDB, automatically creating the database if it doesn't exist.
Instructions
Creates a new collection in a database. If the database doesn't exist, it will be created automatically.
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": "create-collection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | Yes | Database name | |
| collection | Yes | Collection name |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| created | Yes | ||
| database | Yes | ||
| collection | Yes |