Skip to main content
Glama
GetABrain🧠 | Live Human-in-the-Loop MCP for AI Agents

GetABrain🧠 | Live Human-in-the-Loop MCP for AI Agents

get_balance

Read-only

Check prepaid balance and account mode before funding submit_query calls. Reports available cents, sandbox credit, and auto-reload status to prevent stalled live queries.

Instructions

Check the prepaid balance (in cents) available to fund submit_query calls, plus account mode. Call before submit_query if unsure funds suffice, or whenever a query fails/stalls for balance reasons. Read-only, no side effects, free to call. Response includes mode ("test" = sandbox key: SIMULATED answers from an AI stand-in, not real people; "live" = real key, real people, real spend), sandbox_credit_cents (promotional credit, simulated answers only, no cash value), and when relevant whether auto_reload is on, plus an auto_reload_setup_url + hint to enable it so a live account does not stall at zero balance. Disambiguation: reports funds available to spend; does not list queries (list_queries) or responses (get_responses/wait_for_responses).

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
hintNo
modeNo
company_nameNo
balance_centsNo
auto_reload_enabledNo
sandbox_credit_centsNo
auto_reload_setup_urlNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.4
    • addedOutput schema / properties / sandbox_credit_cents
      Added value: +{
      +  "type": "number"
      +}
  2. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true, and the description goes well beyond that by explaining cost ('free to call'), the meaning of mode values ('test' = sandbox key with SIMULATED answers from an AI stand-in, not real people), the nature of sandbox_credit_cents (promotional, no cash value), and the auto_reload remediation path with a setup URL. That is material behavioral context an agent could not derive from the structured fields alone, even though the 'read-only, no side effects' clause is partly redundant with the annotation.

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 purpose and call triggers, then response interpretation, then disambiguation — a sensible ordering. It is dense but somewhat long, and the recital of response fields (sandbox_credit_cents, auto_reload_setup_url) partly duplicates the output schema, so a little could be trimmed.

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?

Covers everything an agent needs for a zero-param read tool: what it returns, how to interpret mode and sandbox credit, what to do when balance is zero (auto_reload), and how it differs from sibling tools. The output schema carries the field-level detail the description wisely summarizes rather than restates.

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 there is nothing schema-wise or descriptive to clarify; the baseline for a zero-parameter tool applies. The description correctly avoids inventing parameter guidance.

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?

Opens with a specific verb and resource ('Check the prepaid balance (in cents)') and immediately scopes it to a purpose ('available to fund submit_query calls, plus account mode'). The closing disambiguation paragraph explicitly separates it from list_queries, get_responses, and wait_for_responses, so an agent can pick it without opening another schema.

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 concrete triggers: call it before submit_query when unsure funds suffice, or whenever a query fails or stalls for balance reasons. It also names the alternatives it is not (list_queries, get_responses, wait_for_responses), which is explicit when-not guidance rather than inference.

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