Skip to main content
Glama

Intents Checkout

Create a test payment link

create_payment_link
Idempotent

Create a shareable link for one payment, to send by email or chat. It is an invoice whose hosted checkout page you share; reference is required for idempotency. Reusable fixed-price links are made in the dashboard (Payment links). Live mode needs mode: "live".

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": {
      "amount": "<amount>",
      "reference": "<reference>"
    },
    "name": "create_payment_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoMust match your key's mode. With a live key, pass "live" to confirm a real payment request; omit it with a test key.
amountYesPrice in USD, e.g. "49.00"
metadataNo
cancelUrlNo
referenceYesYour order ID. Required: it is the idempotency key, so a retried call returns the same invoice instead of a second one
successUrlNoWhere the customer goes after paying
descriptionNoWhat the customer is paying for
expiresInSecNoHow long the link stays payable (default: the invoice default)
customerEmailNo

Output Schema

NameRequiredDescriptionDefault
urlYes
modeYes
amountYes
statusYes
invoiceYes
summaryYes
currencyYes
expiresAtYes
invoiceIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare idempotentHint=true, openWorldHint=true, destructiveHint=false, so the description's job is to add context. It does add value by tying `reference` to idempotency semantics and by warning that live mode requires an explicit mode: "live" confirmation — a meaningful safety detail. However, it says nothing about authentication, rate limits, or link expiry behavior beyond what the schema states.

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, front-loaded with the core action, then the artifact clarification, then the two constraint notes. No filler or repetition.

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?

An output schema exists, so return values need not be described, and annotations cover the safety profile. The definition covers the key creation semantics and the live-mode gate; it could be slightly more complete by noting the distinction from create_invoice for a 9-parameter mutation 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 coverage is 67%, so most parameters are already documented. The description only restates what the schema says about `reference` (idempotency key) and `mode` (live requires explicit confirmation), and adds nothing for metadata, cancelUrl, successUrl, description, or expiresInSec. That matches the baseline-3 expectation when the schema carries the weight.

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?

States a concrete verb and resource ('Create a shareable link for one payment') and clarifies the artifact is an invoice with a hosted checkout page, which implicitly separates it from create_invoice. It does not explicitly contrast with the sibling create_invoice tool, so it stops short of full sibling differentiation.

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 a clear channel of use ('send by email or chat') and an explicit exclusion: reusable fixed-price links belong in the dashboard, not here. It also flags the live-mode condition. It never says when to pick this over create_invoice, which is the most likely confusion given the siblings.

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.