Skip to main content
Glama

Your credits and usage

get_usage
Read-only

Check remaining API credits, including free and purchased balances, plus today's and this month's spend before large batches to stay within budget.

Instructions

Shows the credits left on your API key (free this month and purchased) and what you spent today and this month. It costs nothing. Needs an API key. Example: call it before a long batch to stay within budget.

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

Output Schema

NameRequiredDescriptionDefault
buy_urlNo
calls_todayNo
credits_leftYes
calls_this_monthNo
credits_enforcedYes
free_credits_leftYes
purchased_creditsYes
credits_spent_todayNo
credits_spent_this_monthNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

The annotations already declare a safe read (readOnlyHint=true, destructiveHint=false), so the bar is low, but the description still adds two facts the annotations do not carry: the call itself consumes no credits and an API key is required for authentication. Rate limits and freshness of the reported figures are not addressed, so it is not a full 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, front-loaded with what is returned, then cost and auth prerequisites, then a usage tip. Nothing is padded and the most decision-relevant information comes first.

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?

For a zero-parameter read with an output schema that documents the return shape, the description covers everything an agent needs: the scope of the numbers, that the call is free, and that an API key must be configured. No behavioral gaps remain for a tool of this complexity.

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 no argument semantics to explain and the baseline of 4 applies. The description correctly implies a keyless, argument-free invocation rather than inventing parameters.

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 states a specific verb and resource (shows credits remaining plus spend today/this month) and enumerates the exact values returned: free-tier credits, purchased credits, and consumption windows. That precision makes it unmistakable against the area-oriented siblings without needing to name them.

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?

It gives a concrete call condition — 'call it before a long batch to stay within budget' — which tells the agent when the tool is worth invoking. It stops short of stating exclusions or naming an alternative to use instead, which keeps it at 4 rather than 5.

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