Skip to main content
Glama

Get credit balance

get_credits
Read-onlyIdempotent

Use only the account's existing entitlements: when work is unavailable, explain the limit without offering purchases, upgrades, subscriptions or checkout links. Read the account's available credits, current plan and account-wide AI requests per minute, and what this month's free allowance still covers on any plan (for example images on one named model; a line the plan already includes reads included). A press the allowance covers costs no credits. AI requests share the rate limit across the app and agents; on RATE_LIMITED, wait retry_after_seconds before retrying.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
planYes
app_urlYes
messageYes
allowanceYes
available_creditsYes
ai_requests_per_minuteYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / allowance / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "eligible": {
      -        "type": "boolean"
      -      },
      -      "items": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "key": {
      -              "type": "string"
      -            },
      -            "kind": {
      -              "type": "string"
      -            },
      -            "model_id": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "remaining": {
      -              "type": "number"
      -            },
      -            "units": {
      -              "type": "number"
      -            },
      -            "used": {
      -              "type": "number"
      -            }
      -          },
      -          "required": [
      -            "key",
      -            "kind",
      -            "model_id",
      -            "units",
      -            "used",
      -            "remaining"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "reason": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "resets_at": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "eligible",
      -      "reason",
      -      "resets_at",
      -      "items"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "eligible": {
      +        "type": "boolean"
      +      },
      +      "items": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "included": {
      +              "type": "boolean"
      +            },
      +            "key": {
      +              "type": "string"
      +            },
      +            "kind": {
      +              "type": "string"
      +            },
      +            "model_id": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "remaining": {
      +              "type": "number"
      +            },
      +            "units": {
      +              "type": "number"
      +            },
      +            "used": {
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "key",
      +            "kind",
      +            "model_id",
      +            "units",
      +            "used",
      +            "remaining",
      +            "included"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "reason": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "resets_at": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "eligible",
      +      "reason",
      +      "resets_at",
      +      "items"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, non-destructive behavior, so the bar is lower. The description still adds meaningful non-obvious context: AI requests share one rate limit across the app and agents, a covered generation consumes no credits, an included line reads `included`, and RATE_LIMITED should be retried after retry_after_seconds. It stops short of describing pagination or response shape, but the failure-mode and quota semantics are genuinely useful.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It opens with a policy instruction rather than the tool's purpose, so the most decision-relevant content (what it reads) arrives second. Sentences are packed with multiple ideas and one clause ('A press the allowance covers costs no credits') is garbled enough to slow parsing. Nothing is strictly wasted, but the front-loading is suboptimal.

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 return values need no explanation here. Combined with the annotations and the description's coverage of quota semantics and rate-limit handling, an agent has what it needs to call this correctly. The missing piece is only cross-tool routing against get_usage/get_account_context.

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, which sets the baseline at 4 per the rubric. Schema description coverage is 100% and there are no enums to disambiguate, so nothing further is needed from the description.

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 names specific resources it reads: available credits, current plan, account-wide AI requests per minute, and this month's free allowance coverage. That is a clear verb+resource statement beyond the title. It does not differentiate itself from near siblings such as get_usage or get_account_context, so it falls short of 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 Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives a real usage constraint ('use only the account's existing entitlements... do not offer purchases, upgrades, subscriptions or checkout links') and tells the agent what to do on RATE_LIMITED (wait retry_after_seconds). However it never states when to call get_credits versus get_usage or get_account_context, so the routing guidance is only implied.

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.

Resources