collection-storage-size
Retrieve the storage size of a MongoDB collection to monitor data growth and capacity. Specify the database and collection name to get the size.
Instructions
Gets the size of the 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": "collection-storage-size"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | Yes | Database name | |
| collection | Yes | Collection name |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | Yes | ||
| units | Yes |