Skip to main content
Glama

Account balance

get_account
Read-onlyIdempotent

Retrieve authenticated account details—prepaid balance, permissions, spending and rate limits, and recent spend—to confirm funds before purchase or verify a charge after an uncertain result.

Instructions

Get the authenticated account: id, prepaid USD balance and the link to add funds, this API key's or app connection's permission level, spending limits (per order and per rolling 24 hours), spend in the last 24 hours and auto-mode, per-endpoint-group rate limits, plus any limits the owner set on this server. Use it before buying to confirm sufficient funds, and after an uncertain purchase result to see whether a charge landed. The balance is topped up with crypto: create_deposit gives an address to pay, or the user pays in the dashboard.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
accessYes
accountYes
owner_limitsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv2.0.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedOutput schema / properties / access
      Added value: +{
      +  "additionalProperties": {},
      +  "properties": {
      +    "auto_mode": {
      +      "type": "boolean"
      +    },
      +    "deposit_url": {
      +      "type": "string"
      +    },
      +    "permission": {
      +      "enum": [
      +        "view",
      +        "manage",
      +        "buy"
      +      ],
      +      "type": "string"
      +    },
      +    "settings_url": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "permission",
      +    "auto_mode",
      +    "settings_url",
      +    "deposit_url"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / account / properties / deposit_url
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / account / properties / key
      Added value: +{
      +  "additionalProperties": {},
      +  "properties": {
      +    "auto_mode": {
      +      "type": "boolean"
      +    },
      +    "daily_limit_cents": {
      +      "anyOf": [
      +        {
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "id": {
      +      "type": "string"
      +    },
      +    "kind": {
      +      "enum": [
      +        "key",
      +        "oauth"
      +      ],
      +      "type": "string"
      +    },
      +    "max_order_cents": {
      +      "anyOf": [
      +        {
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "name": {
      +      "type": "string"
      +    },
      +    "permission": {
      +      "enum": [
      +        "view",
      +        "manage",
      +        "buy"
      +      ],
      +      "type": "string"
      +    },
      +    "spent_24h_cents": {
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "id",
      +    "kind",
      +    "name",
      +    "permission",
      +    "max_order_cents",
      +    "daily_limit_cents",
      +    "spent_24h_cents",
      +    "auto_mode"
      +  ],
      +  "type": "object"
      +}
    • removedOutput schema / properties / owner_limits / properties / read_only
      Removed value: -{
      -  "type": "boolean"
      -}
    • changedOutput schema / properties / owner_limits / required
      Previous value: -[
      -  "read_only",
      -  "max_order_cents",
      -  "budget_cents",
      -  "budget_counted_cents",
      -  "budget_remaining_cents"
      -]New value: +[
      +  "max_order_cents",
      +  "budget_cents",
      +  "budget_counted_cents",
      +  "budget_remaining_cents"
      +]
    • changedOutput schema / required
      Previous value: -[
      -  "account",
      -  "owner_limits"
      -]New value: +[
      +  "account",
      +  "access",
      +  "owner_limits"
      +]
  2. Changed1 schema field changedv1.2.1
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "properties": {
      +    "account": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "balance": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "amount_cents": {
      +              "maximum": 9007199254740991,
      +              "minimum": -9007199254740991,
      +              "type": "integer"
      +            },
      +            "currency": {
      +              "const": "USD",
      +              "type": "string"
      +            },
      +            "formatted": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "amount_cents",
      +            "currency",
      +            "formatted"
      +          ],
      +          "type": "object"
      +        },
      +        "created_at": {
      +          "type": "string"
      +        },
      +        "id": {
      +          "type": "string"
      +        },
      +        "rate_limits": {
      +          "additionalProperties": {
      +            "additionalProperties": {},
      +            "properties": {
      +              "limit": {
      +                "type": "number"
      +              },
      +              "window_seconds": {
      +                "type": "number"
      +              }
      +            },
      +            "required": [
      +              "limit",
      +              "window_seconds"
      +            ],
      +            "type": "object"
      +          },
      +          "propertyNames": {
      +            "type": "string"
      +          },
      +          "type": "object"
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "balance",
      +        "rate_limits",
      +        "created_at"
      +      ],
      +      "type": "object"
      +    },
      +    "owner_limits": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "budget_cents": {
      +          "anyOf": [
      +            {
      +              "maximum": 9007199254740991,
      +              "minimum": -9007199254740991,
      +              "type": "integer"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "budget_counted_cents": {
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        },
      +        "budget_remaining_cents": {
      +          "anyOf": [
      +            {
      +              "maximum": 9007199254740991,
      +              "minimum": -9007199254740991,
      +              "type": "integer"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "max_order_cents": {
      +          "anyOf": [
      +            {
      +              "maximum": 9007199254740991,
      +              "minimum": -9007199254740991,
      +              "type": "integer"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "read_only": {
      +          "type": "boolean"
      +        }
      +      },
      +      "required": [
      +        "read_only",
      +        "max_order_cents",
      +        "budget_cents",
      +        "budget_counted_cents",
      +        "budget_remaining_cents"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "account",
      +    "owner_limits"
      +  ],
      +  "type": "object"
      +}
  3. First observedv1.1.3

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile is covered; the description adds the operational context of pre-purchase balance checks and post-purchase charge verification. It does not mention caching or freshness of the 24h spend/balance figures, which would have completed the picture.

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 usage triggers, then the top-up alternative. The long comma-separated field inventory is dense but each item is a distinct decision-relevant field, so little is wasted.

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?

An output schema exists, so enumerating every field is partly redundant, but the description still supplies the one thing the schema cannot: why and when to call this versus create_deposit. Nothing essential to correct invocation 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?

The tool takes no parameters, so the baseline is 4; the description correctly adds no parameter guidance it cannot support.

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 (get the authenticated account) and enumerates the distinct contents — id, prepaid USD balance, permission level, spending limits, 24h spend, auto-mode, rate limits, owner-set limits — which clearly separates it from siblings like create_deposit and get_deposit.

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 explicit when-to-use triggers: before buying to confirm sufficient funds, and after an uncertain purchase result to check whether a charge landed. It also routes the top-up case to create_deposit or the dashboard, so the agent's next step is unambiguous.

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