Read app counters
tzcloud_read_countersRead your deployed app's counters by name per environment, summed hourly or daily over a window. These include your Logging package counters and email_sent, email_failed, push_delivered and push_failed delivery totals. A window with no writes returns no bucket. For platform usage, including backend actions and transferred bytes, use tzcloud_read_usage.
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": {
"application": "<application>",
"environment": "<environment>"
},
"name": "tzcloud_read_counters"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | One counter's name; omit it for every counter. | |
| grain | No | `hour` or `day`; `day` where none is given. | |
| limit | No | The most bucket rows returned, in bucket order; clamped to 1,000, the read ceiling, and the ceiling where omitted. A malformed value is ignored. | |
| since | No | Inclusive start of the time window: YYYY-MM-DD, T, HH:mm, optional :ss and a fraction of 1–9 digits, then Z or a signed HH:mm offset; T and Z may be lower case. Leave it out and the bound is open. A malformed, empty, or null value is refused `invalid_request`. | |
| until | No | Inclusive end of the time window: YYYY-MM-DD, T, HH:mm, optional :ss and a fraction of 1–9 digits, then Z or a signed HH:mm offset; T and Z may be lower case. Leave it out and the bound is open. A malformed, empty, or null value is refused `invalid_request`. | |
| application | Yes | Your account's application `id` from `tzcloud_list_applications`, not its name or label. | |
| environment | Yes | The stream to read: `development` or `production`, or `local` for the stream from your own computer. |