Skip to main content
Glama

Get Hedra API Wallet Balance

hedra_get_balance
Read-onlyIdempotent

Get the current prepaid USD balance for Hedra API generations. Use it to confirm sufficient funds before submitting expensive jobs or when a submit fails with an INSUFFICIENT_BALANCE error.

Instructions

Get the current spendable balance of the Hedra API wallet — the prepaid USD balance that pays for API generations. This is SEPARATE from Hedra Studio credits; funding one does not fund the other.

Check this before submitting expensive or bulk jobs to confirm there's enough balance, or when a submit was refused with an INSUFFICIENT_BALANCE error.

Returns: JSON {balance, currency}.

Examples:

  • Use when: about to submit a batch of jobs and want to sanity-check funds first

  • Use when: a hedra_submit_job call failed with a billing error and you want to confirm the current balance before advising the person

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Annotations already convey read-only, idempotent, and non-destructive behavior. The description adds valuable context beyond annotations: the return shape (JSON {balance, currency}), the meaning of the balance (prepaid USD for API generations), and the distinction from Studio credits, all of which help the agent understand what to expect and how to interpret results.

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 well-structured and front-loaded: it states the core purpose, adds a critical distinction (separate from Studio credits), and provides concrete use cases and return format. Every sentence contributes meaning; no filler or repetition.

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 zero-parameter read-only balance lookup, the description fully covers what the tool does, what it returns, and when to use it. The explicit return format compensates for the lack of an output schema, making the tool's behavior predictable.

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; the schema is an empty object. A baseline of 4 is appropriate because there is no parameter semantics for the description to 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?

The description explicitly states 'Get the current spendable balance of the Hedra API wallet' with a specific verb and resource, and distinguishes this from Hedra Studio credits. This eliminates any ambiguity with sibling tools like hedra_estimate_cost or hedra_get_usage.

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?

Provides clear 'Use when' examples: checking balance before bulk jobs and when a hedra_submit_job fails with INSUFFICIENT_BALANCE. It also clarifies the separation from Studio credits, which helps with tool selection, though it does not explicitly name alternative tools for non-balance queries.

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/HemanthDonga/hedra-mcp-server'

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