Skip to main content
Glama

Prepaid balance

get_credit_balance
Read-onlyIdempotent

Use this when you want to know how much prepaid balance (sats and USDC) is left before running more calls or feeds. Read-only. Example: get_credit_balance(credit_token="btf_...")

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "credit_token": "<credit_token>"
    },
    "name": "get_credit_balance"
  }
}

Input Schema

NameRequiredDescriptionDefault
credit_tokenYesPrepaid token (btf_...), returned once by buy_credits or create_feed. Send it on every later feed or credit call.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the sentence 'Read-only.' restates structured data rather than adding to it. The only extra behavioral signal is the framing as a pre-check before 'more calls or feeds'; nothing is said about expired/invalid tokens, error behavior, or whether balance is cached or real-time.

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?

Three short front-loaded sentences: usage condition first, safety second, example third, with zero padding. The 'Read-only.' sentence is slightly wasteful given the readOnlyHint annotation, which keeps it from a 5.

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?

For a single-parameter read tool with full schema coverage and explicit annotations, the description covers purpose, trigger condition, and units of the result (sats and USDC), which is what an agent needs since there is no output schema. Missing only edge-case guidance such as what happens with an invalid or exhausted token.

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 coverage is 100%, and the schema already explains that credit_token is the 'btf_...' token returned by buy_credits or create_feed and must be sent on later calls. The description's example call merely repeats the token format, so it adds little meaning beyond the schema; baseline 3 applies.

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 a specific resource and result: 'how much prepaid balance (sats and USDC) is left', which is far more concrete than the title 'Prepaid balance'. It does not explicitly contrast with a related sibling such as get_pricing, but no sibling in the list appears to read a balance, so ambiguity is low.

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?

It states a clear usage condition: 'Use this when you want to know how much prepaid balance ... before running more calls or feeds', which tells the agent this is a pre-flight check. It gives no explicit when-not guidance or named alternative, which is the only thing separating it from a 5.

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