create-index
Create indexes for MongoDB collections to improve query performance and enable efficient data retrieval.
Instructions
Create an index for a 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>",
"definition": "<definition>"
},
"name": "create-index"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | Yes | Database name | |
| collection | Yes | Collection name | |
| name | No | The name of the index | |
| definition | Yes | The index definition. Use 'classic' for standard indexes. |