get_collection_stats
Retrieve detailed collection statistics for MongoDB, including document count, size, storage metrics, index usage, and average document size. Optimize database performance and analyze data efficiently.
Instructions
Get detailed statistics about a collection.
Returns information about:
- Document count and size
- Storage metrics
- Index sizes and usage
- Average document size
- Padding factor
Input Schema
Name | Required | Description | Default |
---|---|---|---|
collection | Yes | Collection name | |
database | No | Database name (optional if default database is configured) |
Input Schema (JSON Schema)
You must be authenticated.
Other Tools from MongoDB MCP Server
Related Tools
- @jonfreeland/mongodb-mcp
- @jonfreeland/mongodb-mcp
- @jonfreeland/mongodb-mcp
- @jonfreeland/mongodb-mcp
- @jonfreeland/mongodb-mcp