Skip to main content
Glama

create_usdt_invoice

Create a new non-custodial multi-chain USDT/USDC payment invoice and hosted checkout page on Polygon, BSC, Arbitrum, Base, Ethereum, or Solana settling 100% directly to merchant_wallet with 0% platform custody. State-changing operation creating a single-use pending invoice record (unlimited free calls, no authentication required). Supports recurring SaaS subscriptions via optional customer_ref and billing_days. Returns JSON with ok (boolean), checkout_url (hosted payment page), and invoice (invoice_id, status, amount_usd, network, merchant_wallet, expires_at).

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": {
      "title": "<title>",
      "amount_usd": "<amount_usd>",
      "network": "<network>",
      "merchant_wallet": "<merchant_wallet>"
    },
    "name": "create_usdt_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleYesHuman-readable product, order, or subscription plan title displayed on the hosted checkout page (2-140 chars).
networkYesSettlement blockchain network (`polygon`, `bsc`, `base`, `arbitrum`, `ethereum`, `solana`, or `bitcoin`). Defaults to `polygon`.polygon
amount_usdYesExact invoice price denominated in USD (settled 1:1 in USDT or USDC on-chain, e.g. `19.0`). Must be >= `0.01`.
ttl_minutesNoInvoice expiration window in minutes (`5` to `43200`). After `ttl_minutes`, unpaid invoices cannot be settled. Defaults to `60`.
webhook_urlNoOptional HTTPS URL to receive an HMAC-SHA256 signed `invoice.paid` POST webhook upon on-chain settlement.
billing_daysNoOptional subscription duration in days (e.g. `30` for monthly, `365` for annual). Pass `0` for one-time purchases.
customer_refNoOptional external customer identifier (e.g. email, user ID, or Telegram ID) for tracking recurring subscription status.
merchant_walletYesMerchant's self-custody receiving wallet address (`0x...` for EVM chains or base58 public key for `solana`). Funds transfer directly here.

Output Schema

NameRequiredDescriptionDefault
okYes
invoiceNo
checkout_urlNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare the non-read-only, non-idempotent, open-world profile, and the description adds substance on top: single-use `pending` record creation, 0% platform custody, no auth or call limits, merchant self-custody settlement, and webhook signing behavior. It is not fully explicit about what happens on retry of a non-idempotent call or what occurs after expiry beyond 'cannot be settled'.

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?

Dense, front-loaded, three sentences with no filler; the custody and chain scoping lead. The closing sentence enumerating return fields partly duplicates the existing output schema, which is the one piece that does not earn its place.

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?

For an eight-parameter state-changing tool with a rich schema and an output schema, the definition covers purpose, settlement model, auth/cost posture, subscription semantics, and expiration behavior. 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.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema does the heavy lifting and baseline is 3. The description still adds cross-parameter meaning the schema does not: `customer_ref` plus `billing_days` together drive recurring subscription tracking, and `merchant_wallet` is the settlement destination rather than metadata.

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 new non-custodial multi-chain USDT/USDC payment invoice and hosted checkout page'), plus scope (six named chains, direct settlement to merchant_wallet). An agent can distinguish this from verification or sweep siblings without opening a 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 context for use (one-time purchases via billing_days=0, recurring SaaS subscriptions via customer_ref plus billing_days) and notes unlimited free calls with no authentication. It never explicitly routes the agent to verify_usdt_invoice for checking status or names when not to call it, so full when-not guidance is absent.

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