Skip to main content
Glama

MongoDB MCP Server

Official
by mongodb-js
Apache 2.0
11,259
602
  • Apple
  • Linux

collection-storage-size

This tool retrieves the storage size of a specified MongoDB collection, enabling users to monitor and manage database resources effectively. It requires database and collection names as inputs to deliver precise results.

Instructions

Gets the size of the collection

Input Schema

NameRequiredDescriptionDefault
collectionYesCollection name
databaseYesDatabase name

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "collection": { "description": "Collection name", "type": "string" }, "database": { "description": "Database name", "type": "string" } }, "required": [ "database", "collection" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mongodb-js/mongodb-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server