Skip to main content
Glama

Get credit balance

get_credit_balance
Read-onlyIdempotent

MightyAI credit balance for this workspace plus the last 10 ledger entries (grants, purchases, spend) — this is how you check what MCP calls and AI usage cost.

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
okNo
errorNoPresent only when ok is false.
balance_usdNo
balance_microsNo
lifetime_spent_usdNo
recent_transactionsNo
lifetime_granted_usdNo
lifetime_purchased_usdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the basic annotations, the description adds vital functional behavior by specifying that the returned data includes 'the last 10 ledger entries' covering 'grants, purchases, spend.' It provides the 'why' (checking costs) in addition to the 'what' (the balance).

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 single sentence is highly efficient. It front-loads the key data points—current balance and ledger entries—and ends with the operational goal (tracking cost), ensuring zero wasted words.

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?

Given the lack of input parameters, the description is completely self-contained, clearly defining the full scope of the output (balance + ledger details). It requires no further context for an agent to understand its value.

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. According to the rules, the baseline score for 0 parameters is high because there is no input complexity to clarify. The description adds no specific meaning beyond the name, which is appropriate here.

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 identifies the resource ('MightyAI credit balance') and the scope ('plus the last 10 ledger entries'). It is immediately clear this is a billing/usage operation and is distinct from the surrounding management tools.

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?

While there are no specific alternatives listed, the description sets a very clear context for its use: tracking AI usage costs and calling frequency. This eliminates ambiguity about when an agent should deploy this tool.

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