Skip to main content
Glama

Turn Zero Cloud for Backend & Hosting

Read app counters

tzcloud_read_counters
Read-onlyIdempotent

Read 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

NameRequiredDescriptionDefault
nameNoOne counter's name; omit it for every counter.
grainNo`hour` or `day`; `day` where none is given.
limitNoThe most bucket rows returned, in bucket order; clamped to 1,000, the read ceiling, and the ceiling where omitted. A malformed value is ignored.
sinceNoInclusive 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`.
untilNoInclusive 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`.
applicationYesYour account's application `id` from `tzcloud_list_applications`, not its name or label.
environmentYesThe stream to read: `development` or `production`, or `local` for the stream from your own computer.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.1/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly, idempotent, non-destructive, closed-world, so the safety profile is covered. The description adds genuine behavioral context beyond that: the concrete counter names it returns (Logging package counters plus email_sent, email_failed, push_delivered, push_failed) and the empty-window rule that no bucket is returned rather than zeroes — a detail an agent needs to interpret results correctly. It does not describe the bucket row shape, which matters given there is no output schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four short sentences, front-loaded with the core action and closing with the sibling routing, with no filler. The counter enumeration is useful rather than wasteful, though the sentence could be slightly tightened.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter read tool with no output schema, the description covers what is counted, the aggregation and window concept, the empty-result case, and the disambiguation from tzcloud_read_usage. The remaining gap is that it never sketches the returned bucket shape or mentions pagination behavior alongside the limit parameter.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, with detailed per-parameter text covering name, grain, limit clamping, since/until formats, and application/environment values, so the baseline is 3. The description adds only the general framing 'by name per environment, summed hourly or daily' plus example counter names, which does not meaningfully extend the schema's own semantics.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb and resource ('Read your deployed app's counters'), plus the aggregation axis (hourly or daily over a window) and scoping (by name per environment). It explicitly distinguishes itself from tzcloud_read_usage, so an agent can separate the two without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The final sentence routes the agent to tzcloud_read_usage for platform usage such as backend actions and transferred bytes, which is a concrete when-not condition with a named alternative. What is missing is guidance on when to pick hour vs day grain or when to omit the name parameter, both of which are left entirely to the schema defaults.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources