Skip to main content
Glama

Buy Credits

buy_credits

Get a Stripe checkout link for this account. When a render cannot be covered, offer a $5 top-up first (amountUsd 5), and the monthly plans (basic $12 → 1,500 credits/mo, pro $29 → 3,500, creator $125 → 17,000) second. A top-up result with no plan on the account also lists the plans, to mention after checkoutUrl. Either a one-off top-up (amountUsd, a whole number from 5 to 500, or packId "starter" ($10) / "pro" ($25); purchased credits never expire) or a monthly plan ("basic" | "pro" | "creator"), interval "month" or "year" (about 20% off). Plan credits refresh monthly and expire at the end of each month, and the plan renews until the user cancels. 1 credit = 1¢ of the provider's list price; no markup. For a plan, say what it renews at. Ask the user first: it renews until they cancel. Then give them the link. Pay it yourself only if the user approved the recurring charge and your card allows it; a one-time card fails at the first renewal. If you can pay a top-up on websites, open the link and pay; otherwise give it to the user. Credits arrive within a minute of payment; call get_account to confirm. Creating the link costs nothing.

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

Input Schema

NameRequiredDescriptionDefault
planNoA monthly plan instead of a top-up: basic $12, pro $29, creator $125 a month.
packIdNostarter = $10, pro = $25. Default starter.
intervalNoPlan billing. Yearly is about 20% off. Default month.
amountUsdNoDollars of credit to buy (whole number, 5–500). Overrides packId.
promoCodeNoOnly if the user gave you a Varosity promo code. Top-ups only, not plans.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare this is a non-readOnly, non-destructive, closed-world write, which the description stays consistent with ('Creating the link costs nothing'). Beyond that it discloses the economics (1 credit = 1¢ of provider list price, no markup), credit lifetimes (purchased credits never expire; plan credits refresh monthly and expire at month end), renewal behavior until cancellation, and post-payment state ('Credits arrive within a minute of payment; call get_account to confirm'). Those are exactly the facts an agent needs and annotations cannot express.

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 purpose is front-loaded and most sentences carry operational information the agent would otherwise have to guess. However, the definition is dense and slightly repetitive: the renewal-until-cancel fact appears twice, and the parameter catalogue is embedded in a long run-on sentence instead of being structured. Nothing is truly wasted, but tightening would help.

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?

There is no output schema, yet the description explains what comes back ('checkoutUrl', and that a top-up with no plan also lists plans to mention after the link). Combined with the offer ordering, payment options, and verification step, an agent has everything needed to call this correctly and act on the result.

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%, so the baseline is 3; the description still adds meaning the schema does not, notably that top-up credits never expire while plan credits expire monthly, that yearly billing is about 20% off, and the credit yield per plan (basic 1,500/mo, pro 3,500, creator 17,000). The amountUsd-overrides-packId precedence is repeated from the schema rather than extended, which keeps it just below a 5.

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 opening sentence names a specific verb and resource: 'Get a Stripe checkout link for this account.' No sibling tool does payments/credits, so the agent can immediately separate this from generate_* or get_account calls. The follow-up sentences clarify that the link covers either a top-up or a monthly plan.

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

Usage Guidelines5/5

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

It explicitly states the trigger ('When a render cannot be covered'), the ordering of offers (top-up first, plans second), and the required confirmation step ('Ask the user first: it renews until they cancel'). It also routes between the agent paying the link itself versus handing it to the user, with a stated precondition (user approved recurring charge, card allows it).

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.