Skip to main content
Glama

get_balance

Read-only

Get the prepaid balance (in euro cents and mills), the low-balance threshold, the top-up amounts on offer and the auto top-up setting. Proofs past the plan's included amount are drawn from this balance; once billing is live, an account whose balance is at or below zero is refused new proof requests (402 balance_empty) until it tops up. billing_enabled says whether billing is live. Topping up and changing auto top-up are done by the owner in the dashboard, on the Billing page (https://proof.holdings/billing).

ACCESS: needs a Proof account. Authenticate this client (Claude Code: /mcp → Authenticate), then call this tool again. start_login does NOT open this tool.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
balanceYes
auto_top_upYes
top_up_amountsYesThe top-up amounts on offer, in euros.
top_up_chargesNoWhat each amount in `top_up_amounts` charges this account, VAT included, as Stripe Tax works it out from the account's company details: an automatic top-up charges the saved card this total. Null when it cannot be worked out (billing off, no payment made yet, or Stripe not answering); absent from an API that predates it.
billing_enabledYesWhether billing is live. While it is off, nothing is drawn from the balance and nothing is paused.
low_balance_thresholdYesThe balance in euro cents below which the owner is sent a low-balance notice.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / top_up_charges
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "amount_eur": {
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          },
      +          "total": {
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          },
      +          "vat": {
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "amount_eur",
      +          "vat",
      +          "total"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "What each amount in `top_up_amounts` charges this account, VAT included, as Stripe Tax works it out from the account's company details: an automatic top-up charges the saved card this total. Null when it cannot be worked out (billing off, no payment made yet, or Stripe not answering); absent from an API that predates it."
      +}
  2. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true, yet the description still adds substantive behavior: units of the returned values (euro cents and mills), the exact failure condition (402 balance_empty at or below zero balance), the meaning of billing_enabled, and the fact that the balance is consumed by proofs exceeding the plan's included amount. It also discloses the authentication prerequisite and that start_login will not unlock this tool, which is a non-obvious access constraint.

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 returned fields are front-loaded in the first sentence, followed by the consequence of a depleted balance and then the redirect to the dashboard, which is a sensible order. The separate ACCESS block is slightly repetitive with the mention of the dashboard URL, but every sentence carries operational information 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?

With an output schema present the description need not document return shapes, and it still names the key fields so an agent can reason about them. It covers the billing lifecycle implications, the error case, the authentication requirement, and where out-of-scope mutations live. For a zero-parameter read tool this leaves no meaningful gap.

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 parameter meaning to add and the baseline of 4 applies. Nothing in the description overstates or misdescribes the (empty) input surface.

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 opens with a specific verb and resource ('Get the prepaid balance') and enumerates exactly what is returned: balance in euro cents and mills, low-balance threshold, top-up amounts, and auto top-up setting. That is far more precise than a bare name restatement. It does not, however, distinguish itself from the sibling list_balance_ledger or explain how the two differ, which keeps it from a 5.

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 real decision context: proofs beyond the plan's included amount draw from this balance, and at or below zero an account is refused new proof requests with 402 balance_empty. It also routes the agent away from mutation actions by stating that topping up and changing auto top-up happen in the dashboard, owned by the owner. What is missing is an explicit statement of when to call this versus the ledger tool, so no exclusions are named for the read alternatives.

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.