Skip to main content
Glama

Create a 'pay me in any crypto' link

create_payment_link
Idempotent

Create a shareable payment link that is also a trackable invoice. The payer can pay with ANY token on ANY chain; you receive exactly the token you choose (e.g. 50 USDC on Base). Returns an invoice_id: call check_payment to see when it is paid, then get_receipt for signed proof. Great for agents that sell services to humans or other agents. No account needed.

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": {
      "token": "<token>",
      "recipient": "<recipient>"
    },
    "name": "create_payment_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
testNoTest invoice: only test-mode payments count toward it (great for building and testing your flow for free).
chainNoChain to receive on, e.g. 'base'.
labelNoOptional note shown to the payer, e.g. 'Invoice #12' (max 80 chars).
tokenYesToken to receive, e.g. 'USDC'.
amountNoOptional fixed amount, e.g. '50'. Leave empty to let the payer choose.
referrerNoOptional: your NEAR account (e.g. 'myagent.near'). You earn 1/3 of the service fee on every swap routed with it. The user pays the same.
recipientYesYour address on that chain.
webhook_urlNoOptional https URL. When the invoice is paid, Swap Ripper POSTs a signed notification (with the receipt) to it, so you don't have to poll.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / test
      Added value: +{
      +  "description": "Test invoice: only test-mode payments count toward it (great for building and testing your flow for free).",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / webhook_url
      Added value: +{
      +  "description": "Optional https URL. When the invoice is paid, Swap Ripper POSTs a signed notification (with the receipt) to it, so you don't have to poll.",
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations declare non-read-only, idempotent, non-destructive, closed-world, so the safety profile is partly covered. The description adds substantive behavior beyond them: any token on any chain is accepted while the seller receives one chosen token, and it states the return value (invoice_id) and the no-account requirement. It omits fee mechanics in the main text, which only appear in the referrer parameter.

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?

The description is front-loaded with the core capability, then the next steps, then audience and prerequisites. Every sentence carries distinct information and nothing is repeated.

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?

With no output schema, the description correctly fills the gap by naming the returned invoice_id and the follow-up tools for payment status and proof. All eight parameters are documented in the schema, and the lifecycle (create, check, receipt, webhook) is fully covered for an agent to act without guessing.

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 the baseline is 3 per the rubric. The description reinforces key semantics by tying token/chain/amount together ('you receive exactly the token you choose (e.g. 50 USDC on Base)'), but it adds little that the parameter descriptions do not already say.

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?

The description opens with a precise verb+resource: 'Create a shareable payment link that is also a trackable invoice.' It distinguishes the tool from sibling creation/swap tools by explaining cross-chain payer flexibility versus exact-token receipt, so an agent can tell what this does 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?

It gives explicit workflow guidance: call check_payment to see when it is paid, then get_receipt for signed proof, and names an audience ('agents that sell services to humans or other agents'). It does not state exclusions against other siblings such as create_swap or pay_exact, so the when-not guidance is incomplete.

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.