count_eta_documents
Count documents in a specified MongoDB collection with an optional query filter, returning the total number of matching records.
Instructions
Count documents in a collection with optional query filter
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": "count_eta_documents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | MongoDB query filter (optional, defaults to {} for all documents) | |
| collection | Yes | Name of the collection to count documents in |