mongo-count-documents
Count documents in a MongoDB collection using database name, collection name, and optional query filters to get document totals for data analysis and monitoring.
Instructions
Count documents in a MongoDB collection
Input Schema
| Name | Required | Description | Default | 
|---|---|---|---|
| collection | Yes | Collection name | |
| database | Yes | Database name | |
| filter | No | Query filter as JSON object (optional) | 
Input Schema (JSON Schema)
{
  "properties": {
    "collection": {
      "description": "Collection name",
      "type": "string"
    },
    "database": {
      "description": "Database name",
      "type": "string"
    },
    "filter": {
      "additionalProperties": {},
      "description": "Query filter as JSON object (optional)",
      "type": "object"
    }
  },
  "required": [
    "database",
    "collection"
  ],
  "type": "object"
}