Skip to main content
Glama

Create a credit top-up link

create_topup_link

Create a Stripe Checkout link to top up this account's credit balance by a round amount in the account's own currency: pass amount (whole units of that currency, excluding VAT) together with currency (ISO code, the same as get_balance topup.currency). Read the suggested amounts, the credit each adds and the custom range from get_balance topup first; a currency that does not match the account is rejected with invalid_amount. The credit added is the amount times the fixed exchange rate and the card is charged that amount plus the account's VAT (none on EU reverse charge, a verified foreign EU VAT id); the response gives creditHal (credit added) and totalMinor (the total charged including VAT, in minor units of currency: cents, grosze, ore; ISK in hundredths of a krona) - tell the customer the actual charge, not just amount. amountCzk is the legacy alternative (whole credits, 100 to 20000, for Czech accounts equal to CZK): on an account outside CZK it charges a non-round amount in the account currency and the result carries a warning, so prefer amount with currency. Send amount with currency, or amountCzk, never both. This only returns a URL - nothing is charged until the customer opens it and pays themselves; no card is touched from here. Requires a complete billing address on the account (billing_address_required otherwise - a tax document cannot be issued without one). Same data as POST /v1/credit/topup (response schema in /openapi.json).

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

Input Schema

NameRequiredDescriptionDefault
amountNoRound top-up amount in whole units of the account currency, excluding VAT, for example 20 on a EUR account. Send it with currency. Accepted: get_balance topup.amounts, or a custom amount within topup.custom (min, max, step); anything else is invalid_amount.
currencyNoISO 4217 code of the account currency, the same as get_balance topup.currency, for example EUR. Required with amount.
amountCzkNoLegacy: credit to add in whole credits (1 credit = 1 CZK at the Czech rate), 100 to 20000. On an account outside CZK this is a non-round charge in the account currency, so prefer amount with currency. Do not send it together with amount.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations only say readOnlyHint=false, openWorldHint=true, idempotentHint=false, destructiveHint=false; the description adds genuinely new behavior: nothing is charged until the customer opens and pays the link, an account billing address is required (billing_address_required), and a mismatched currency is rejected with invalid_amount. It also explains the money model (credit = amount times fixed rate, card charged that plus VAT, with the reverse-charge/verified-VAT-id exceptions) and names the response fields creditHal and totalMinor. Minor gap: it never says the link expires or whether repeated calls create multiple links (relevant given idempotentHint=false).

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 front-loaded with the core action and follows with prerequisites, money semantics and the legacy-path caveat in a logical order, with no filler sentences. It is dense and long, though, and it repeats the amountCzk legacy explanation that the schema already carries, which is the main avoidable cost.

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 payment-link tool with no output schema and three optional parameters, the description covers what happens after the call (URL only, nothing charged), the preconditions, the error cases, the charge computation and the two response fields an agent should relay. Nothing an agent needs in order to call it safely or report the result 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 already documents amount ranges, the currency pairing and the legacy amountCzk constraint, so the baseline is 3. The description earns more by explaining what the parameters mean economically (amount excludes VAT, is in whole units of the account currency) and by tying currency to get_balance topup.currency and to the response fields, plus the instruction to quote totalMinor rather than amount. It largely restates the schema's mutual-exclusivity rule, which caps it below 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 description opens with a concrete verb, resource and mechanism: 'Create a Stripe Checkout link to top up this account's credit balance'. It scopes the operation to the current account and its own currency, which separates it from the sibling link tools (create_subscription_link, create_subscription_payment_link) without needing to see their schemas.

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 gives an explicit prerequisite sequence ('Read the suggested amounts, the credit each adds and the custom range from get_balance topup first'), an explicit preference between alternatives ('prefer amount with currency' over amountCzk, with the reason: non-round charge plus a warning), and an exclusion ('Send amount with currency, or amountCzk, never both'). That is when-to-use, when-not-to-use and the alternative, all stated.

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.