Skip to main content
Glama

Get usage and balance

get_usage
Read-onlyIdempotent

What this key's account has left: standard characters today and this month (limits, used, remaining, plan, requests per minute), the premium characters left (this month, used today and the daily limit), today's free premium trial, characters that expire soon, and when the daily limits reset (00:00 UTC). Free to call; no audio is made.

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

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, so the safety profile is covered. The description adds value beyond that: it states the call is free, produces no audio/side effects, and specifies the reset boundary at 00:00 UTC, which an agent cannot get from annotations. It omits how stale the numbers might be, but overall it enriches the annotation picture rather than restating it.

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?

The payload is front-loaded ('What this key's account has left') before the field enumeration, so the reader gets the gist immediately. It is a single dense sentence with a long parenthetical list, which is slightly heavy but every listed item carries informational weight given there is no output schema.

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?

With no output schema and no parameters, the description must carry the full burden of explaining what comes back, and it enumerates the main returned groups: standard limits/used/remaining/plan/RPM, premium monthly and daily figures, free trial, expiring characters, and reset time. Exact field names and units are not given, but the coverage is sufficient for an agent to decide when 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?

The tool takes zero parameters, so there is nothing for the description to disambiguate; baseline 4 applies. The description correctly offers no parameter discussion, matching the empty object schema.

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?

The description names the exact resource: this API key's account balance, split into standard characters (today and month), premium characters, trial quota, and expiry/reset timing. An agent can immediately tell this is a read-only quota/balance check rather than a generation call. It stops short of explicitly differentiating itself from siblings like estimate, but the resource framing is specific enough that no confusion is likely.

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?

Usage is only implied. 'Free to call; no audio is made' signals it is safe and cheap to call pre-flight, but the description never states when to prefer it (e.g., before text_to_speech or create_speech_job) nor any condition that rules it out. The agent must infer the natural 'check quota before generating' workflow.

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