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.

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

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.1/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint=false, so safety and idempotency are covered structurally. The description adds the workspace scoping and the ledger entry categories, but with a full output schema present the returned structure is already documented, so the marginal behavioral disclosure is modest.

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?

One front-loaded sentence names the resource first and the returned contents second, with no filler. The comma splice joining the payload list and the usage framing makes it slightly run-on, but every clause carries information.

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?

With zero parameters, rich annotations, and a full output schema, the description only needs to establish scope and contents, which it does. The one soft gap is that 'last 10 ledger entries' is not qualified as a fixed cap versus an implicit limit, but for a no-argument read tool this is minor.

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 takes zero parameters, which is the baseline-4 case; there is no parameter meaning to convey and nothing is missing. The description correctly implies a fixed, no-argument call rather than hinting at hidden filters.

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 states a specific resource (MightyAI credit balance for this workspace) and the exact payload returned (the last 10 ledger entries covering grants, purchases, and spend). No sibling tool in the catalog touches credits or billing, so an agent can identify this as the sole balance-checking tool without ambiguity.

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?

It gives a clear usage frame — 'this is how you check what MCP calls and AI usage cost' — telling the agent to reach for it when cost or consumption questions arise. It stops short of explicit when-not conditions or naming alternatives, though no comparable sibling exists to route away from.

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