cosmosdb_count_items
Count items in a Cosmos DB container. Optionally filter with a SQL WHERE clause to count specific items.
Instructions
Count items in a Cosmos DB container, with an optional filter.
where accepts a SQL WHERE clause body (without the WHERE keyword), e.g.: c.status = 'active' c.createdAt > '2025-01-01'
If where is omitted, counts all items in the container. Returns a JSON object with a 'count' field.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes | ||
| database | Yes | ||
| container | Yes | ||
| where | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |