Skip to main content
Glama

PrivateByte

Get wallet balance

get_balance
Read-only

Read the account wallet balance, in whole minor units with its currency. Check it before create_server or pay_invoice.

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds genuinely non-obvious behavior: the value is expressed in whole minor units (so an agent won't misread cents as dollars) and is paired with its currency. It doesn't address auth scope or failure modes for an empty wallet, which keeps it short of a 5.

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

Conciseness5/5

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

Two short sentences with zero padding. The resource and unit convention come first, and the precondition guidance follows, so the most load-bearing information is front-loaded before any agent truncation risk.

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 no input schema to explain and no output schema present, the description carries the return-value burden itself and does so by naming the unit and currency. The only remaining gap is whether the balance is account-wide or scoped to some context, which is a minor omission for a no-parameter read.

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 schema carries nothing to misinterpret and the baseline is 4. The description correctly refrains from inventing input detail and instead spends its words on the output shape.

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 (read) and resource (account wallet balance) and immediately specifies the return representation: whole minor units with currency. This is materially different from the list_* siblings, which enumerate invoices or products rather than reporting account credit.

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?

Explicitly tells the agent when to call it: before create_server or pay_invoice, naming the two sibling tools whose preconditions it gates. No exclusion cases are given, but for a zero-parameter balance read there is no plausible alternative tool to route away from, so this is close to full coverage.

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