Skip to main content
Glama

Usage summary

usage_summary
Read-onlyIdempotent

Totals for a meter: event count, total quantity, accrued minor units.

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": {
      "meter_id": "<meter_id>"
    },
    "name": "usage_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
meter_idYesThe meter id returned by create_meter.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  2. Changed1 schema field changed
    • addedInput schema / properties / meter_id / description
      Added value: +"The meter id returned by create_meter."
  3. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare read-only, idempotent, non-destructive, and non-open-world behavior, so the safety profile is clear. The description adds the returned metric categories but omits important behavioral context such as the aggregation window or period over which totals are computed.

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?

One compact sentence with the resource and returned metrics front-loaded. Every phrase contributes useful information, with no redundant 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?

For a simple single-parameter read-only summary tool with an output schema and clear annotations, the definition is largely complete. The main remaining gap is that the description does not specify the time period or aggregation scope for the totals.

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%, and the single meter_id parameter is documented in the schema as the id returned by create_meter. The description does not add further meaning beyond what the schema already provides, so baseline 3 is appropriate.

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

Purpose4/5

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

States a specific resource (a meter) and the metrics returned: event count, total quantity, and accrued minor units. It is clear what the tool computes, but it does not explicitly differentiate itself from siblings such as usage_timeseries.

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

Usage Guidelines3/5

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

The word "Totals" implies this tool is for aggregate usage rather than event-level or time-series views. However, it does not explicitly say when to use it instead of usage_timeseries, list_events, or other usage-related siblings.

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.