Skip to main content
Glama

Read USD account usage

get_usage
Read-only

Reads account-wide settled charges, refunds, and net USD usage by UTC booking date, defaulting to a 30-day range. Use it to audit spend; pending reservations appear in get_account.

Instructions

Read account-wide settled charges, refunds and net USD usage by UTC booking date. Default range is 30d. Pending reservations are reported by get_account.

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_usage"
  }
}

Input Schema

NameRequiredDescriptionDefault
rangeNo30d

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.1

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already establish this is a safe, closed-world read. The description adds genuinely useful behavioral detail beyond them: figures are settled (not pending), denominated in USD, and bucketed by UTC booking date, with pending activity explicitly delegated elsewhere. It does not mention latency, caching, or account/permission prerequisites, keeping it from a 5.

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?

Three short sentences, zero filler, with the primary scope front-loaded and the sibling routing and default appended after. Every sentence contributes distinct information.

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 single-parameter read tool with no output schema, the description covers scope, unit (USD), time basis (UTC booking date), default range, and the settled-vs-pending boundary. Slight gap: it does not indicate whether results are aggregated per day or returned as a total-plus-breakdown, which matters for interpreting the response.

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 0%, so the description must carry the load. It supplies the default value (30d) and, importantly, anchors the meaning of the range to UTC booking date rather than local time; the enum values themselves (today, yesterday, 7d, 30d, 90d) are self-explanatory from the schema.

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 (Read) and precise scope: account-wide settled charges, refunds and net USD usage, grouped by UTC booking date. It also distinguishes itself from get_account by declaring that pending reservations belong to that sibling, so an agent can route correctly 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?

Gives clear when-to-use context (account-wide settled billing totals) plus an explicit exclusion routing pending reservations to get_account, and notes the default range. It does not discuss alternatives such as estimate_cost for forward-looking figures, so it falls just short of full when/when-not coverage.

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