Skip to main content
Glama

set_balance

Update the current OpenAI credit balance in USD after a top-up and clear any quota-related lock so later calls can proceed.

Instructions

Setzt den aktuellen OpenAI-Guthabenstand (USD), z. B. nach dem Nachfüllen. Hebt eine evtl. bestehende Sperre nach einem Quota-Fehler auf.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "balance_usd": "<balance_usd>"
    },
    "name": "set_balance"
  }
}

Input Schema

NameRequiredDescriptionDefault
balance_usdYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

No annotations exist, so the description carries the full burden, and it does disclose the most consequential side effect: an existing quota-related block is lifted when the balance is set. That is exactly the kind of non-obvious state change an agent needs warning about. It still omits whether the value overwrites prior state, whether the unblock is conditional on the new value, and whether the change persists.

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?

Two short sentences with zero filler: the operation and its unit come first, the side effect second. Nothing is redundant and nothing important is buried.

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?

An output schema exists, so return values need no explanation, and with one required parameter the surface is small. Purpose and the block-lifting side effect are both covered. Only the relationship to other state-tracking tools (e.g. usage_report) and the overwrite semantics are left implicit.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% for the single parameter, so the description must compensate; it does communicate the unit (USD) matching 'balance_usd', which adds real meaning. It says nothing about valid range, whether negative or zero values are accepted, or the expected precision.

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?

States a specific verb and resource: it sets the stored OpenAI credit balance in USD, which is clearly distinct from the sibling ask_chatgpt/generate_image call tools and from usage_report (which reads rather than writes). It does not explicitly name a sibling or clarify that this writes a local accounting record rather than querying OpenAI, which keeps it from a 5.

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

Usage Guidelines3/5

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

'z. B. nach dem Nachfüllen' gives one concrete situation for calling it, and the block-lifting sentence implies a second (after a quota error). There is no guidance on when not to call it, no mention of usage_report as a related read tool, and no prerequisite or ordering advice.

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