Skip to main content
Glama

Create a card top-up link

create_topup_checkout

Create a card top-up link

A card checkout link (Stripe Checkout) for a person to top up this account. Open the url in a browser; the balance is credited when the payment completes. Card top-ups start at $5, in whole dollars, with no maximum of ours: a smaller amount is raised to $5, and the reply returns the limits (maxUsd is Stripe Checkout's own ceiling for one payment, 999999). When a deposit fee applies, it is added on top of the credit (10 % of it plus $0.30 by card): the link charges payUsd plus any VAT or sales tax. The amount is fixed: Stripe's page shows the credit as one line, and the fee as its own line when there is one. Takes an agent session or a management key like every v1 operation (a model key gets 403 wrong_key_type), and every call is recorded in the activity log. With an Idempotency-Key, a retry returns the first link instead of making another. Also served at /v1/topup/checkout, which also accepts the account's model keys (kl_live_).

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_checkout"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountUsdNo
idempotencyKeyNoOptional. A unique string so that repeating this call never creates twice.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Far beyond what the annotations convey: it discloses the $5 minimum with round-up behavior, that the fee (10% + $0.30, plus VAT/sales tax) is added on top of the credit rather than deducted, that the amount is fixed on Stripe's page, that calls are logged in the activity log, and that an Idempotency-Key makes retries return the first link. These are real consequences an agent could not derive from readOnlyHint=false / openWorldHint=true / destructiveHint=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?

Front-loaded with the action and the immediate next step (open the url), and every sentence carries non-redundant information. The body is one dense run-on paragraph packed with parentheticals and the slightly awkward 'no maximum of ours', which costs readability but not much content.

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?

For a two-parameter creation tool with no output schema, it covers the essentials: auth requirements, fee and tax handling, rounding, idempotency, and a partial sketch of the response (`url`, payUsd, maxUsd limits). It omits link expiry/lifetime and the rest of the returned shape, which would matter for an agent handing the URL to a user.

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?

With only 50% schema description coverage and no description on amountUsd, the prose compensates well: it explains the $5 floor, that smaller amounts are raised to $5, whole-dollar constraints, the 999999 ceiling as Stripe's own limit, and that the charged amount (payUsd) differs from the credited amount when a fee applies. It never names amountUsd explicitly and introduces the payUsd/maxUsd terms without mapping them to inputs versus outputs, which keeps it from 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 description names a specific verb and resource — a Stripe Checkout link that lets a person top up this account — and immediately states the follow-through action ('Open the `url` in a browser; the balance is credited when the payment completes'). An agent can distinguish this from sibling money tools such as credit_customer or get_balance without opening any schema.

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?

It gives implied usage context (a person paying by card to top up) plus auth preconditions (agent session or management key; model key gets 403 wrong_key_type) and an alternate route (/v1/topup/checkout accepting kl_live_ keys). However, it never says when NOT to use this versus alternatives like credit_customer for a direct credit, leaving the agent to infer the choice from the sibling name alone.

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