Skip to main content
Glama
yuz0101

@gammainfra/mcp-server

by yuz0101

get_balance

Retrieve GammaInfra balances for the authenticated customer: managed USD and currency. Optionally include BYOK balance by setting include_byok=true.

Instructions

Return the authenticated customer's GammaInfra balances: managed (USD) and currency. Pass include_byok=true to also fetch the BYOK (USD if enrolled) balance; when omitted, byok_balance_usd is null and no BYOK request is made. With include_byok=true, BYOK is reported inline as a byok_error string if the BYOK endpoint fails (e.g., customer has no BYOK enrollment).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
include_byokNoAlso fetch the BYOK (bring-your-own-key) balance. Off by default to avoid an extra request — and a guaranteed 404 — for customers without BYOK enrollment. When false, byok_balance_usd is null with no byok_error.
Behavior4/5

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

With no annotations, the description carries full burden. It discloses the conditional BYOK request, error handling (byok_error), and default behavior (null when omitted). It implies read-only access via 'authenticated customer' and idempotency but could explicitly state that it is a safe read operation.

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 sentences efficiently convey purpose and parameter behavior with no redundant text. Every sentence adds necessary detail.

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?

Given the tool's simplicity (1 optional param, no output schema), the description covers the input behavior and high-level output (balances, BYOK field). It could explicitly mention the response structure (e.g., object with fields like managed_usd, currency, byok_balance_usd) but is adequate for a straightforward read operation.

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?

Schema coverage is 100% for the single parameter, but the description adds value beyond the schema by explaining the effect of include_byok on the response (including BYOK balance, null vs value, error handling).

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?

The description clearly states the verb ('Return') and the resource ('the authenticated customer's GammaInfra balances: managed (USD) and currency'), with a specific scope and differentiation from sibling tools (get_status, chat_completions, list_models).

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?

The description explains when to use the include_byok parameter and the behavior for both true and false cases. It implicitly states the tool's purpose for balance retrieval but does not explicitly exclude alternatives or provide when-not-to-use guidance, which is acceptable given unrelated siblings.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/yuz0101/gammainfra-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server