Skip to main content
Glama
stablevoy-mcp

stablevoy-mcp

Official

Create an invoice

create_invoice

Create a USDT or USDC invoice and get its payment link to send the buyer. Set the price in USD or another currency, add a reference to avoid duplicates, and set an expiry.

Instructions

Creates a Stablevoy invoice the buyer pays in USDT or USDC and returns its payment link, checkoutUrl. Needs a store key (npx stablevoy-mcp login). Give the price as amountUsd, or as amount with currency when the merchant prices in another currency, for example "49.99" and "EUR". Such a price is turned into US dollars once, at creation, with the store's own rate or the ECB reference rate, and the invoice shows both in price. Send that link to the buyer yourself; Stablevoy does not email it. Give a reference (for example "acme-october") whenever you can: the same price and reference return the same invoice instead of a second one. returnUrl is an https page the buyer goes back to after paying. expiresInMinutes, 15 to 10080, is how long the buyer has; left out, the store default applies. After expiresAt the payment page tells the buyer not to pay, and money that still arrives is marked paid_late. To change the price of an unpaid invoice, cancel it with cancel_invoice first. Check the result later with get_invoice. Pass store when several stores are connected. A failure comes back as an error with its code and what to do, for example rate_limited with the seconds to wait.

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_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
storeNoStore id or exact store name from list_stores. Needed only when several stores are connected.
amountNoPrice in currency as a decimal string, for example "49.99" for EUR or "1500" for JPY. Goes with currency, instead of amountUsd.
currencyNoISO 4217 code of amount, for example "EUR". 30 currencies are supported; another one gives currency_not_supported with the list.
amountUsdNoPrice in US dollars as a decimal string, for example "250" or "19.99". Leave it out when you give amount and currency.
referenceNoYour reference for this invoice, sent back in webhooks, 1 to 200 characters.
returnUrlNohttps address the buyer returns to after paying.
expiresInMinutesNoHow long the buyer has to pay, 15 to 10080 minutes; leave it out for the store default. Use a day or more for an invoice sent by email.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.8.0
    • addedInput schema / properties / amount
      Added value: +{
      +  "description": "Price in currency as a decimal string, for example \"49.99\" for EUR or \"1500\" for JPY. Goes with currency, instead of amountUsd.",
      +  "type": "string"
      +}
    • changedInput schema / properties / amountUsd / description
      Previous value: -"Amount in US dollars as a decimal string, for example \"250\" or \"19.99\"."New value: +"Price in US dollars as a decimal string, for example \"250\" or \"19.99\". Leave it out when you give amount and currency."
    • addedInput schema / properties / currency
      Added value: +{
      +  "description": "ISO 4217 code of amount, for example \"EUR\". 30 currencies are supported; another one gives currency_not_supported with the list.",
      +  "pattern": "^[A-Za-z]{3}$",
      +  "type": "string"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "amountUsd"
      -]
  2. Changed1 schema field changedv0.2.0
    • addedInput schema / properties / expiresInMinutes
      Added value: +{
      +  "description": "How long the buyer has to pay, 15 to 10080 minutes; leave it out for the store default. Use a day or more for an invoice sent by email.",
      +  "maximum": 10080,
      +  "minimum": 15,
      +  "type": "integer"
      +}
  3. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

Adds substantial behavior beyond the annotations: it requires a store key, converts non-USD prices once at creation using the store rate or ECB reference, does NOT email the link (the agent must send it), and explains expiry semantics including paid_late status. The conditional idempotency via reference/price sits alongside idempotentHint=false without truly contradicting it, since duplicates are created when no reference is given, but the tension is not explained.

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?

Front-loaded with the core action and return value, and every subsequent sentence carries operational information (auth, FX, no emailing, idempotency, expiry, error codes). It is a dense run-on paragraph rather than structured clauses, which slightly hurts scannability for a seven-parameter tool.

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 a mutating, open-world tool with no output schema, the description covers what is created, what is returned (checkoutUrl), currency conversion, idempotency, expiry behavior, and the error envelope format. Nothing an agent needs to call 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 baseline is 3, but the description adds real meaning: the amountUsd vs. amount+currency alternation, the one-time FX conversion recorded in price, expiresInMinutes defaulting to the store value and its late-payment consequences, and reference as an idempotency key rather than just a label. That is meaningful semantics beyond the schema text.

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?

Opens with a specific verb and resource ("Creates a Stablevoy invoice") plus the settlement currency (USDT/USDC) and the returned artifact (checkoutUrl). This is unmistakably different from the read-only siblings (get_invoice, list_invoices) and from cancel_invoice.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Gives explicit when-to-use context and excludes alternatives: pass store only when several are connected, use reference whenever possible to avoid duplicate invoices, use cancel_invoice to change an unpaid price, and use get_invoice to check the result later. It also states the prerequisite (store key via npx stablevoy-mcp login).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.