Skip to main content
Glama

Credit usage

account_usage
Read-only

Track API credits spent per operation and the remaining balance for a billing period to monitor usage and manage costs.

Instructions

Credits spent per operation in a billing period, and the remaining balance. Needs API key scope keys:manage. Free (no credits). Returns the API answer as JSON, with provenance (freshness, coverage, source).

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": "account_usage"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum rows.
periodNoBilling period start, `YYYY-MM-01`; defaults to the current one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true. The description adds useful context beyond them: the required API key scope, that the operation consumes no credits, and that the response includes provenance metadata (freshness, coverage, source).

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 the core purpose, then prerequisites, cost, and return shape. No filler or repetition.

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 read-only tool with two optional parameters and no output schema, the description covers purpose, auth scope, cost, and return format including provenance. It could mention pagination behavior, but the schema already documents the limit parameter.

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%, so both parameters (limit and period) are fully documented in the schema. The description adds no additional parameter semantics, which is acceptable given the schema already carries that burden.

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 states a specific resource and scope: credits spent per operation in a billing period plus the remaining balance. It is clear what the tool returns, though it does not explicitly distinguish itself from siblings such as account_entitlements.

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 description gives a prerequisite ('Needs API key scope `keys:manage`') and notes the call is free, which implies when it is appropriate. It does not say when to prefer this over alternatives or explicitly exclude other billing-related tools.

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