Skip to main content
Glama

Card checkout for credits

buy_credits

A Stripe Checkout link your person opens to add credits by card ($20–$10,000). Agents with a wallet can use top_up_credits instead.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "usd": "<usd>"
    },
    "name": "buy_credits"
  }
}

Input Schema

NameRequiredDescriptionDefault
usdYesAmount in USD, 20–10000.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / usd / description
      Previous value: -"Amount in USD, 50–10000."New value: +"Amount in USD, 20–10000."
  2. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations cover safety (readOnlyHint=false, destructiveHint=false, openWorldHint=true), and the description adds genuinely new context: the transaction happens on an external Stripe checkout page that a human must complete, and it is card-based rather than balance-based. It does not disclose link lifetime, whether credits post only after payment, or what the caller receives on failure, which keeps it below a 5.

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?

Two short sentences with no filler, and the core mechanism (Stripe link the user opens) is front-loaded before the sibling routing. The idiomatic phrasing 'your person' is slightly ambiguous about who exactly is meant, which is the only friction.

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 one-parameter tool with no output schema, the description covers the mechanism, the amount bounds, the human-in-the-loop nature, and the sibling alternative. Nothing essential to correct invocation is missing, and return-value detail is not required here since no output schema exists and the artifact (a link) is named inline.

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 coverage is 100% and the single parameter already documents 'Amount in USD, 20–10000.' The description merely restates that range in parentheses, adding no new meaning such as currency assumptions, rounding, or whether the amount maps 1:1 to credits. Baseline 3 applies.

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 the concrete outcome: a Stripe Checkout link the user opens to add credits by card, with a dollar range. It is clearly distinguishable from siblings like credits_status or top_up_credits. It loses a point only because it is phrased as a noun ('A Stripe Checkout link...') rather than an explicit verb describing what the tool itself does (generate/return a link).

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 names the alternative (top_up_credits) and the condition that selects it ('Agents with a wallet'), and the phrase 'your person opens' signals that this path is human-in-the-loop. It stops short of full exclusions — nothing about what to do if the user has no card, or whether an unpaid link expires — so it is strong but not exhaustive.

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.