Skip to main content
Glama

create_pay_link

Demo only: payments are switched off, so this answers with an error and nothing can be bought. Create a checkout link a HUMAN pays from their own Algorand wallet (Pera). Use this when you have no wallet, or when the person should approve and pay themselves: they open the link, see the exact price, sign in their wallet, and the result (the eSIM QR code, or the top-up confirmation) appears on the page. You never hold a key. A top-up link can be paid by anyone — send it to family as 'top up my phone'. An eSIM link delivers to whoever pays. Free. Add ref (your Algorand address) to earn a share of margin on each delivered order.

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": {
      "type": "<type>",
      "offerId": "<offerId>"
    },
    "name": "create_pay_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNoyour Algorand address, to earn referral share
noteNoshown on the link page, e.g. 'Your Tokyo trip data'
typeYesthe offer's type, as list_offers returned it
phoneNotopup only: recipient phone, E.164
amountNofor range top-up offers: amount in local currency
offerIdYesthe offer's offerId from list_offers or lookup_phone, e.g. ea-JC063
max_usesNo0 = reusable until expiry; default 1 for topup, 0 for esim
ttl_hoursNodefault 168 (7 days)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / offerId / description
      Added value: +"the offer's offerId from list_offers or lookup_phone, e.g. ea-JC063"
    • addedInput schema / properties / type / description
      Added value: +"the offer's type, as list_offers returned it"
  2. Added

TDQS

A4.5/5.0
Behavior5/5

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

The annotation profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false) only says this is a non-idempotent write that destroys nothing; the description adds the critical disclosure that payments are switched off and the call errors out. It also states no key is held, the operation is free, and how referral margin works — behavior an agent cannot infer from the schema.

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?

The disabling condition is front-loaded in the first clause, which is exactly right, and every sentence carries information. The paragraph is dense and long enough that the human-payment rationale and the top-up/eSIM distinction run together.

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 an 8-parameter write tool with no output schema, it covers who pays, where the deliverable appears, and that the call currently errors. It never states plainly that the tool returns a shareable URL string, which is the one thing a caller must handle.

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?

Schema coverage is 100%, so the baseline is 3; the description adds genuine meaning by explaining that `ref` is the caller's Algorand address earning a share of margin and by framing `type` in terms of who ends up paying. Defaults for `max_uses` and `ttl_hours` are left to the schema.

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 checkout link a HUMAN pays from their own Algorand wallet (Pera)") and immediately scopes it against the agent-wallet alternative. A caller can tell this apart from `buy` without opening either 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 conditions: "Use this when you have no wallet, or when the person should approve and pay themselves," and then differentiates top-up links (payable by anyone, giftable) from eSIM links (delivers to payer). It does not explicitly name `buy` as the counterpart for the funded-agent case, leaving the contrast implicit.

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