Skip to main content
Glama

Automatic credit top-up and assistant buying

credit_settings
DestructiveIdempotent

Read or change how the account gets credits without being asked: automatic top-up (when the balance falls below threshold, buy recharge_credits, at most monthly_cap times a month; on by default, but it only ever charges a card saved by buying credits at checkout, never the card a subscription pays with, and the owner is emailed every time) and whether you, the assistant, may buy credits on the saved card. auto_top_up says whether a top-up would really happen now and on which card. Leave every field out to read them. Change them only when the owner asks; say what you changed.

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

Input Schema

NameRequiredDescriptionDefault
clientNoClient website slug (or id). Leave out on your own account; required for platform-scoped keys.
thresholdNoTop up when the balance falls below this many credits (0 to 100,000).
monthly_capNoAt most this many automatic top-ups a month (1 to 50).
auto_rechargeNoTurn automatic top-up on or off; true also ends a pause.
assistant_buyingNoWhether the AI assistant may buy credits on the saved card.
recharge_creditsNoHow many credits each top-up buys (500 to 100,000; 1 credit = 1 cent).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations, the description discloses key behavioral facts: automatic top-up is on by default, only charges a card saved from buying credits at checkout, never the subscription card, and emails the owner every time. It also explains that auto_top_up reveals whether a top-up would really happen and on which card, which is important for a destructiveHint=true, money-spending operation.

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?

The description is front-loaded with the read-or-change purpose and is fairly efficient for the complexity involved, but the long parenthetical covering threshold, recharge amount, cap, card source, and email notification is dense and would be easier to scan if broken into shorter clauses.

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 six-parameter settings tool with destructive financial side effects and no output schema, the description covers default state, card-source restriction, owner notification, read versus write behavior, and the meaning of auto_top_up. It is complete enough for an agent to act safely without needing additional documentation.

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 description coverage is 100%, so the schema already defines every parameter. The description reinforces threshold, monthly_cap, and recharge_credits semantics and notes the default-on behavior, but it largely repeats what the schema provides rather than adding new per-parameter detail.

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 opening states a specific verb and resource: 'Read or change how the account gets credits without being asked,' and then names both settings domains (automatic top-up and assistant buying). It distinguishes automatic top-up from checkout-based buying, but does not explicitly name or route away from siblings such as buy_credits.

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 clear operational guidance for read versus write: 'Leave every field out to read them' and 'Change them only when the owner asks; say what you changed.' It does not name alternative tools or describe when-not-to-use conditions beyond owner consent.

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