collection-indexes
Retrieve all indexes for a MongoDB collection by providing connection ID, database, and collection name.
Instructions
Describe the indexes 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": {
"connectionId": "<connectionId>",
"database": "<database>",
"collection": "<collection>"
},
"name": "collection-indexes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | Yes | Database name | |
| collection | Yes | Collection name | |
| connectionId | Yes | The connection to run the operation against. Use the id returned by one of the connect tools, or "preconfigured" to use the connection string the server was configured with. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| searchIndexes | Yes | ||
| classicIndexes | Yes | ||
| searchIndexesCount | Yes | ||
| classicIndexesCount | Yes |