Skip to main content
Glama

Get credits and plan

getAccount
Read-onlyIdempotent

Show your account's credit balance, plan and auto top-up settings. credits.available is what generations can spend right now (plan_credits + extra - used); resets_at is when the plan's monthly credits refill (unix seconds). When team_pool is true the balance is your team's shared pool, and auto_topup is null because the team owner manages it. Check this before an expensive generation instead of waiting for a 402. Auto top-up is changed in the web app at billing_url. This is a free read-only lookup (no credits, no generation).

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already cover readOnly/idempotent/non-destructive, and the description adds real value on top: it is free with no credit consumption, and it explains conditional return behavior (team_pool=true means a shared balance and auto_topup is null because the owner manages it). That is meaningful behavioral context the annotations do not carry.

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 the core purpose, then field semantics, then the usage trigger. Dense but nearly every clause carries information; the inline field-level explanations are slightly verbose given there is no output schema to hold them.

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?

With no output schema, the description carries the full burden of explaining return values, and it does so: credits.available composition, resets_at units, and the team_pool/auto_topup conditional. An agent has everything needed to call and interpret this correctly.

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 no parameters, so the baseline is 4 and there is no parameter meaning to add. The description instead spends its words on the shape of the response fields, which is a reasonable substitute.

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 and resource: shows the account's credit balance, plan, and auto top-up settings. It also disambiguates from billing-adjacent siblings by noting that top-up configuration itself lives in the web app, not here.

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 an explicit trigger: 'Check this before an expensive generation instead of waiting for a 402.' It also redirects the mutation case (changing auto top-up) to billing_url in the web app, so the agent knows what this tool is not for.

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.