Skip to main content
Glama

Top up credits on the saved card

top_up_credits

Buys a credit pack on the workspace's saved card, the card it already paid Hercules with. There is no checkout page. Packs: 200 credits for $24.99; 550 credits for $59.99; 1500 credits for $149.99. Before you call it, confirm the pack and the price with the user, unless the user already told you to top up or to keep credits topped up. It charges only when an owner or admin allowed AI top-ups, and only up to the workspace's monthly cap. When AI top-ups are not allowed yet, it charges nothing and returns a one-click approval link for the user. When no card is saved, it charges nothing and returns a link where the user can buy the pack once.

Input Schema

NameRequiredDescriptionDefault
creditsYesHow many credits to buy. Must be one of the credit pack sizes.

Output Schema

NameRequiredDescriptionDefault
statusYes
balanceYes
creditsYes
currencyYes
expiresAtYes
amountCentsYes
approvalUrlYes
monthlyCapCentsYes
spentThisMonthCentsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations (which only say this is not read-only, not idempotent, not destructive, and open-world), the description discloses real behavioral traits: it charges the saved card with no checkout page, charges only when an owner/admin permitted AI top-ups and only up to the monthly cap, and on failure charges nothing while returning a one-click approval link or a purchase link. This is exactly the side-effect detail an agent needs before spending money.

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 action and its billing source are front-loaded in the first sentence, and every following sentence carries load-bearing information (prices, confirmation rule, permission/cap gating, failure fallbacks). It is dense rather than padded, though the pack-price sentence could be tightened into a list.

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 single-parameter money-spending tool, the description covers the charging path, the permission gate, the monthly cap, and both no-charge fallback outcomes. An output schema exists, so return values need no further explanation, and nothing an agent needs to call this safely is missing.

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?

Schema coverage is 100% and the schema constrains credits to 'one of the credit pack sizes' without enumerating them; the description supplies the actual enumerations and prices (200/$24.99, 550/$59.99, 1500/$149.99). That adds genuine value beyond the schema, though it does not restate the positive-integer bound.

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 states a specific verb and resource ('Buys a credit pack on the workspace's saved card') and adds scope detail ('the card it already paid Hercules with', 'There is no checkout page') that implicitly separates it from a checkout-based purchase. However, it never names the direct sibling buy_credits, so the agent must infer the boundary from the 'no checkout page' phrasing rather than being told.

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 concrete pre-call guidance ('confirm the pack and the price with the user') plus an explicit exclusion ('unless the user already told you to top up or to keep credits topped up'). What it lacks is any reference to the alternative tool buy_credits, so when-to-use is clear but tool selection is not fully resolved.

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