collection_stats
Retrieve MongoDB collection statistics—document count, data, storage, and index sizes, average document size, and capped flag—to inspect collection storage usage.
Instructions
Document count, data / storage / index sizes (MB), average document size, index sizes, capped flag.
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": {
"collection": "<collection>"
},
"name": "collection_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | No | ||
| collection | Yes | ||
| connection | No |