Skip to main content
Glama

Get consumption for a date window

get_my_usage
Read-onlyIdempotent

Get consumption for a date window

Sums the metered consumption recorded for this account over a date window, broken down into voice minutes and chat sessions. With no query parameters the window runs from midnight on the first day of the current month in server local time up to the moment of the request, which makes the bare call a current-month total. Both bounds are inclusive. The two counters are returned as 0 when nothing was metered in the window rather than being omitted, and the echoed period tells you exactly which window was measured. This reports usage only; for what is left to spend, call GET /users/me/limits.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_my_usage"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoEnd of the window, inclusive. Defaults to the current server time.
fromNoStart of the window, inclusive. Defaults to the first day of the current month. Parsed as a date; an unparseable value yields an empty result rather than an error.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, closed-world and non-destructive, so the safety profile is covered. The description adds genuinely non-obvious behavior: the default window anchored to server local time, inclusive bounds, and zero-valued rather than omitted counters. It stops short of describing pagination or unit granularity, but for a two-param read that is a minor gap.

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?

Front-loaded with purpose, then defaults, then return-shape caveats, then the sibling pointer — a sensible order. The opening line merely restates the title, and the inclusive-bounds sentence duplicates the schema, so it is slightly longer than strictly needed.

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

Completeness5/5

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

No output schema exists, and the description compensates by explaining the returned counters, the zero-instead-of-omitted convention, and the echoed period field. Combined with the default-window rules, an agent has everything needed to call it and interpret the result.

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

Parameters4/5

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

Schema coverage is 100% and already documents each bound and the unparseable-value fallback, so the baseline is 3. The description goes beyond per-parameter docs by explaining the combined-default case (both omitted = current-month total), which the schema cannot express.

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?

States a specific verb (sums/reports) and resource (metered consumption: voice minutes and chat sessions) over a date window, and explicitly contrasts with the sibling that reports remaining spend. An agent can pick this over get_my_limits 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 Guidelines5/5

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

Gives concrete when-to-use guidance: a bare call is a current-month total, and explicit bounds narrow the window. It also names the alternative for a different question ('for what is left to spend, call GET /users/me/limits'), so the routing decision is fully determined.

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.