Skip to main content
Glama

usage_timeseries

Usage time series bucketed on each event's recorded_at (UTC; bucket=day|hour), grouped across meters by provider — a real time-series primitive, independent of meter creation times. Includes per-bucket breakdowns by consumer_class / channel / provider. est_accrued_minor is an estimate; authoritative billing stays with usage_summary.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sinceNo
untilNo
bucketNoday
channelNo
meter_idNo
providerNo
include_testNo
consumer_classNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses that the time series is bucketed by recorded_at (UTC, day/hour), is independent of meter creation times, includes breakdowns by consumer_class/channel/provider, and that est_accrued_minor is an estimate. This provides useful behavioral context, though it does not mention auth requirements or rate limits.

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

Conciseness5/5

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

The description is three concise sentences that front-load the key information (time series bucketing, grouping, independence) and add supporting details (breakdowns, estimate note). Every sentence earns its place with no redundant or vague wording.

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?

Given the tool has 8 parameters, an output schema, and no required params, the description provides a solid overview of purpose, behavioral notes, and parameter roles. The output schema covers return values, so details on that are unnecessary. Minor missing details like date format or handling of missing data prevent a perfect score.

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?

The schema has 0% parameter description coverage, so the description must compensate. It explicitly mentions bucket (day|hour), channel, provider, and consumer_class, giving meaning to those parameters. However, since/until and include_test are only implicitly referenced, and meter_id is not addressed at all. The description adds value but leaves gaps.

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?

The description clearly identifies the tool as a usage time series bucketed by recorded_at (UTC, day/hour), grouped by provider, and distinguishes it from usage_summary by noting that authoritative billing is elsewhere. It specifies the resource (usage timeseries) and the key breakdowns, making the purpose highly clear.

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 description explicitly mentions that est_accrued_minor is an estimate and that authoritative billing stays with usage_summary, providing guidance on when to use this tool vs. the sibling usage_summary. However, it does not explicitly state conditions for using this tool over other siblings like list_events or verify_chain, though the time-series focus is implied.

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.

TDQS

A3.5/5.0
Disambiguation5/5

Each tool targets a distinct aspect of usage metering: creating meters, recording events, generating reports, flagging synthetic data, closing periods, and verifying chain integrity. No two tools have overlapping purposes.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern in snake_case (e.g., close_period, create_meter, list_events). No deviations or mixed conventions.

Tool Count5/5

With 11 tools, the set is well-scoped for a metering server. It covers creation, recording, listing, reporting, admin flags, period closing, and chain verification without being unnecessarily large.

Completeness4/5

The core lifecycle is covered: create meter, record usage, list events, generate reports, close period. Missing are tools to update/delete meters or retrieve invoices, but these are minor gaps given the immutable design intent.