Skip to main content
Glama

apihub_balance

Read-only. Returns your current APIHub credit balance (in microdollars and USD), total lifetime spending (microdollars and USD), and total completed request count. Requires a valid API key. Use before apihub_call or apihub_call_external to confirm sufficient funds for a paid request, or periodically to audit usage. Does not modify state, send payments, or call upstream APIs; for top-ups use apihub_topup.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

TDQS

A4.9/5.0
Behavior5/5

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

No annotations are provided, so the description fully carries the burden. It discloses read-only behavior, no state modification, no payment sending, no upstream API calls, and the requirement for a valid API key. This is comprehensive for a zero-parameter endpoint.

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?

The description is concise, front-loaded with 'Read-only', and every sentence serves a purpose: what it returns, auth requirement, use cases, and exclusions. No redundant or vague language.

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?

For a simple zero-parameter, no-output-schema tool, the description is remarkably complete: it details return values (balance, spending, request count), units, authentication, usage guidance, and explicitly states what it does not do. The context is fully covered.

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 has zero parameters, so schema coverage is trivially 100%. The description correctly omits parameter details as none exist; baseline 4 for zero-parameter tools is appropriate.

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?

Clearly states it returns current balance, lifetime spending, and request count with specific units (microdollars and USD). Distinct from siblings by explicitly being read-only and focusing on account/usage information rather than executing calls or queries.

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?

Explicitly advises using before apihub_call or apihub_call_external to confirm sufficient funds and periodically for audits. Also names apihub_topup as the alternative for changing balance, providing clear when-to-use versus alternatives.

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.

TDQS

A4.2/5.0
Disambiguation5/5

Each tool has a clearly distinct role: balance check, service discovery (list/search), service details, paid calls (onboarded vs external vs content), and credit top-up. The similar pairs (search vs search_external, call vs call_external) are separated by onboarded vs external scope, and descriptions explicitly guide selection.

Naming Consistency4/5

All names share the 'apihub_' prefix and use snake_case, with verbs like get, list, search, call, read. However, 'balance' and 'topup' deviate from the verb_noun pattern, making the convention slightly inconsistent but still predictable and readable.

Tool Count5/5

With 9 tools, the set is well-scoped for a credit-based API marketplace. Each tool serves a distinct step in the workflow (discover, inspect, call, manage funds), with no redundant tools and nothing missing at the broad level.

Completeness4/5

The surface covers the full lifecycle: searching and listing services, retrieving details, making calls to both onboarded and external APIs, reading content, checking balance, and topping up credits. Minor gaps like transaction history or service ratings exist but do not hinder the core purpose.