Skip to main content
Glama

Get the balance

rent_get_balance
Read-onlyIdempotent

Your prepaid balance in micro-USD (1 USD = 1,000,000): total, held by running sandboxes, and available, the part of total that is promotional credit (it pays only for sandboxes on rent.dev's own machines), and whether the account is frozen.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
frozenYes
currencyYes
held_microsYes
promo_microsYes
total_microsYes
available_microsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / promo_micros
      Added value: +{
      +  "maximum": 9007199254740991,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "total_micros",
      -  "held_micros",
      -  "available_micros",
      -  "frozen",
      -  "currency"
      -]New value: +[
      +  "total_micros",
      +  "held_micros",
      +  "available_micros",
      +  "promo_micros",
      +  "frozen",
      +  "currency"
      +]
  2. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description usefully adds the unit convention (micro-USD, 1 USD = 1,000,000) and the meaning of the frozen flag, but its clause about 'available, the part of total that is promotional credit' is grammatically ambiguous and appears to conflate the available amount with the promotional-credit portion, which could mislead an agent reading the numbers.

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?

It is a single compact sentence with the unit convention front-loaded, which is the right priority for a numeric tool. The nested appositive list grows slightly run-on and the misplaced promotional-credit clause is where the sentence loses structure, but there is no filler.

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 and an output schema present, the description only needs to explain units and field meanings, and it largely does. The one gap is that the relationship between total, held and available is only obliquely stated, leaving an agent to guess whether available equals total minus held.

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, so there is nothing for the description to clarify; the baseline is 4. Nothing about the input is left unexplained.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific resource (prepaid balance) and enumerates exactly what it reports: total, amount held by running sandboxes, available amount, promotional-credit portion, and frozen state. That is far more specific than the title, and the word 'balance' plus the sandbox-holding detail distinguishes it in practice from usage or top-up siblings, though no sibling is named.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance at all: nothing says to call this before creating a sandbox, before a top-up, or when checking whether frozen status blocks work. No exclusions or alternatives are mentioned, so an agent must infer the trigger condition from the tool name alone.

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