Skip to main content
Glama

Top up credits

top_up
Read-onlyIdempotent

Links to buy more credits: a one-click top-up link for a pack (opens Stripe Checkout, no login) plus the billing page. Give the link to the user; the tool never charges anything itself. Omit pack to get the suggested one.

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

Input Schema

NameRequiredDescriptionDefault
packNosmall = 100 credits ($27), medium = 300 ($75), large = 1000 ($249). Default: the suggested pack.

Output Schema

NameRequiredDescriptionDefault
packsYes
messageYesReady-to-show sentence with the links.
top_up_urlYesOne-click Stripe Checkout link; opens without a login. Hand it to the user.
billing_urlYesThe billing page in the app.
upgrade_urlNoSet when a plan upgrade would be cheaper than packs.
suggested_packYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Adds genuinely useful context beyond the annotations: that the link opens Stripe Checkout, requires no login, and that 'the tool never charges anything itself'. That last point preempts an agent's fear of triggering a payment, which annotations (readOnlyHint) only imply. It does not say anything about link expiry or reuse, which would be the next useful detail.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with what the tool returns, followed by the one behavioral caveat that matters and the pack default. No filler.

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?

The tool is simple (optional single enum param) and has an output schema, so return values need no elaboration. The description covers purpose, output shape, safety, and the default path — nothing an agent needs to invoke it correctly is missing.

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 enum already documents each pack plus its credit/price mapping and the default. The description's 'Omit `pack` to get the suggested one' largely restates the schema's 'Default: the suggested pack', so the added meaning is marginal.

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?

States a specific verb and resource: it produces purchase links ('a one-click top-up link for a pack ... plus the billing page'), and the mention of Stripe Checkout distinguishes it from the sibling get_credits, which reports balances. An agent can tell what comes back without opening the schema.

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?

Gives clear operative guidance: 'Give the link to the user' and 'Omit `pack` to get the suggested one', which defines the zero-argument path. It does not explicitly contrast with get_credits or state when top-up is inappropriate (e.g., user just checking balance), so it stops short of full when/when-not coverage.

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.