Skip to main content
Glama

Get billing account

get_billing_account
Read-onlyIdempotent

Read the selected team's usable credit balance and billing eligibility. API keys inherit their owner's team billing permissions. OAuth integrations require explicit billing consent; account linking alone does not grant it. This read never submits a payment.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
teamIdYesTeam whose credits and billing access apply.
currencyNoPurchase currency (usd).
teamNameNoTeam display name.
creditPackNoAllowed credit quantities for a new order.
canPurchaseYesWhether this credential may buy credits right now.
accessExpiresAtNoWhen delegated billing access expires, in Unix seconds.
creditsRemainingYesUsable credit balance.
purchaseLimitMinorNoPer-purchase limit in minor currency units (cents).
purchaseRestrictionNoWhy purchases are unavailable, when canPurchase is false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive, and closed-world behavior, so the bar is low. The description still adds real value by disclosing authorization semantics — API keys inherit owner team permissions, and OAuth integrations need explicit billing consent that account linking does not provide — which annotations cannot express.

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?

Four short sentences, front-loaded with purpose before auth caveats. 'This read never submits a payment' somewhat restates readOnlyHint and is the weakest sentence, but it is brief and reads as a safety reassurance rather than filler.

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 parameterless read with an output schema and full annotation coverage, the description supplies everything an agent needs: what is returned conceptually (balance, eligibility), the authorization prerequisites, and confirmation no payment occurs. Nothing material is missing.

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?

There are zero input parameters, so the baseline of 4 applies. The description correctly frames the scope as the 'selected team', clarifying implicit context even though no parameter names exist to document.

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 uses a specific verb ('Read') and names the exact resources: the selected team's 'usable credit balance and billing eligibility'. That distinguishes it reasonably from order-oriented siblings such as get_billing_order or cancel_billing_order, though it never explicitly names an alternative.

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 context is implied rather than stated — an agent can infer this is the tool for checking balance and eligibility, but there is no explicit 'use this when...' or exclusion against order/refund tools. The auth-permission sentences describe prerequisites, not when-to-use selection.

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.