Skip to main content
Glama

Balance

balance

Remaining sats and the hourly buy limit. maxBuysPerHour and remainingBuysHour are on this result. Do not call this before buying. A paid top-up is credited from the payment event. session_budget_sats sets the session cap up to the saved limit. reset_session starts a new session within that saved limit. Set issue_link_code only when the human asks for a one-time code to show this agent on an email sign-in, or to move this balance onto another sign-in. When Lightning payments are temporarily paused, the result includes paymentsPaused and retryAfter.

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

Input Schema

NameRequiredDescriptionDefault
reset_sessionNoStart a new session. Clears this session spend and restores the session cap to the saved account limit. It does not raise that limit or the daily limit.
issue_link_codeNoSet true only when the human wants a one-time code. Paste it at https://amazap.com/balance to show this agent on an email sign-in. https://amazap.com/credits#link-agent moves the balance onto a different signed-in agent. Leave unset for a normal balance check.
session_budget_satsNoSet the session cap to this many sats, up to the account saved limit. A higher number is refused and nothing changes. A lower cap can be raised again up to that saved limit. (minimum 1).

Output Schema

NameRequiredDescriptionDefault
codeNoapproval_required, limit_exceeded, or insufficient_balance.
paidNo
whichNoper_call, per_day, per_session, per_hour_buys, per_minute_calls, or per_minute_sats.
statusNo
messageNo
quoteIdNo
resultsNoSearch rows when this is a search result.
totalCostNo
totalSatsNo
approvalUrlNoPage where the person approves this exact price.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / issue_link_code / description
      Previous value: -"Set true only when the human wants a one-time code to attach this balance to another Amazap sign-in. Leave unset for a normal balance check."New value: +"Set true only when the human wants a one-time code. Paste it at https://amazap.com/balance to show this agent on an email sign-in. https://amazap.com/credits#link-agent moves the balance onto a different signed-in agent. Leave unset for a normal balance check."
  2. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations declare readOnlyHint=false and destructiveHint=false, so the agent knows this can change session state but is not destructive; the description aligns by outlining what reset_session and session_budget_sats change. It adds some operational context (top-up crediting from the payment event, paymentsPaused and retryAfter during Lightning outages) but says nothing about account/auth requirements or what happens to in-flight sessions.

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?

Purpose is front-loaded, but the rest is a run-on sequence of parameter restatements and edge-case notes with no grouping, and 'Do not call this before buying' is a confusing fragment that costs more than it contributes. Several sentences duplicate the schema verbatim.

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?

With an output schema, full parameter descriptions, and annotations present, the definition covers purpose, the mutating optional parameters, and the paused-payment edge case well. The main omission is routing relative to sibling spend_summary or buy, which is a guidance gap rather than a completeness failure.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so all three optional parameters are already documented, and the description largely restates them (cap limited by saved limit, reset starts a new session, link code only when the human asks). It adds the one detail that a paid top-up is credited from the payment event, which is only loosely tied to a parameter. Baseline 3 is appropriate.

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 opening line states the resource and returned content clearly: remaining sats and the hourly buy limit, with maxBuysPerHour and remainingBuysHour named as result fields. It does not differentiate this from spend_summary or explain why a separate balance tool exists, so it stops 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?

There is real guidance for issue_link_code ('only when the human asks for a one-time code') and for session_budget_sats and reset_session, but no guidance on when to call balance at all versus spend_summary or orders. The line 'Do not call this before buying' is ambiguous — it is unclear whether it forbids the call or merely says it is unnecessary.

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