Skip to main content
Glama

SendGuard

Create a top-up payment link

create_topup_link

Create a hosted Stripe checkout link for a prepaid top-up. A human must open the link and pay; no money moves until they do. Needs an API key with the billing:topup scope.

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
package_idNoTop-up package from get_pricing, for example pilot or growth. Defaults to pilot
idempotency_keyNoOptional key; retries with the same key return the same link instead of creating a new one

Output Schema

NameRequiredDescriptionDefault
creditsYes
next_stepYes
expires_atNo
package_idYes
checkout_urlYes
price_usd_centsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false, idempotentHint=false and destructiveHint=false; the description goes beyond them by disclosing the required billing:topup scope and the crucial fact that no funds move until a human completes checkout. That is exactly the behavioral context an agent needs before promising a payment. It does not mention link expiry or failure modes, which keeps it from 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.

Conciseness5/5

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

Three short sentences totalling roughly thirty words, with the core action front-loaded and the human-must-pay constraint immediately after it. No filler or restatement of the title.

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?

With an output schema present, return values needn't be described, and the annotations already cover the safety profile; the description fills the remaining gaps (auth scope, deferred payment). Minor omissions such as link lifetime or what happens on expiry are the only shortfall for a two-parameter tool.

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 description coverage is 100%, so both parameters (package_id, idempotency_key) are already fully documented in the schema, including the default of pilot and the retry semantics. The description adds no parameter meaning beyond that, so the baseline 3 applies.

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 — 'Create a hosted Stripe checkout link for a prepaid top-up' — and makes clear it produces a link rather than charging a card. An agent can distinguish this from get_pricing or the signup tools 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 Guidelines4/5

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

The sentence 'A human must open the link and pay; no money moves until they do' defines the situation in which this tool is appropriate (human-in-the-loop payment) and implicitly excludes fire-and-forget charging. It also points at get_pricing as the source of package_id, giving a concrete prerequisite chain. It stops short of naming an alternative tool for non-top-up billing flows.

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