Skip to main content
Glama
@omnidim-ai/mcp-server

@omnidim-ai/mcp-server

by Omnidim

getAccountBalance

Read-only

Read your organization's wallet balance, plan, and auto-recharge state, including minutes available and concurrency headroom, to catch low credit before calls fail with a payment error.

Instructions

Read your organization's wallet balance, plan and auto-recharge state.

The response also has the minutes the balance buys at your rates and your concurrency headroom.

Call it before a campaign, or on a schedule, so you learn about low credit here and not from a call failing with 402 payment_required.

The response always describes the organization the API key belongs to. There is no parameter for another account. Resellers read a client's figures through the Reseller endpoints.

A balance at or below zero does not always stop calls. An organization on usage-based billing (plan.is_usage_based) keeps placing calls and is metered to its payment method. Check that flag before treating zero as a stop condition.

The API key's user needs Billing access in your organization. If you get a 403, an administrator can grant it when Billing is enabled for your organization. When it is not, contact support.

(Tags: Account)

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": "getAccountBalance"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.14.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations declare readOnlyHint=true and the description is consistent with that, adding substantial context the annotations cannot convey: what the payload contains (minutes purchasable, concurrency headroom), the zero-balance/usage-based-billing caveat, the Billing-access permission requirement, and the meaning of a 403.

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 scope, and each paragraph carries distinct information (contents, timing, scope, zero-balance caveat, auth). Slightly verbose — the 403/support paragraph is the least essential and could be tightened.

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?

With no output schema, the description compensates by naming the fields returned and the meaning of edge values. Auth requirements, error semantics, and the zero-balance interpretation are all covered, leaving nothing an agent needs to call this correctly.

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?

Zero parameters, so the schema baseline is a 4; the description goes a step further by explaining why the parameter set is empty (it always reflects the API key's own organization) and redirects cross-account reads elsewhere. There is no further parameter meaning it could add.

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 concrete verb+resource ('Read your organization's wallet balance, plan and auto-recharge state') and immediately scopes it to the calling organization. It explicitly distinguishes itself from the Reseller endpoints, so an agent knows this cannot fetch another account's figures.

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 explicit when-to-use guidance ('before a campaign, or on a schedule') with the rationale (avoid discovering low credit via a 402 from a call). It also covers when-not/different-route: there is no account parameter, resellers must use Reseller endpoints.

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

Deploy Server

Other Tools