Skip to main content
Glama

Axiv Pay

Create an Axiv Pay payment from a quote

create_payment
Idempotent

Step 2 of a payment. Create one payment from a quote before the quote expires. Creating a payment moves no funds and signs nothing. idempotencyKey is required: choose a new unique key for each new payment and keep it. Calling again with the same key and the same arguments returns the same payment instead of creating another one. If the response is lost, unreadable, or the call fails with retrySameRequest true, call again with the SAME arguments and the SAME key. That is the only way to read the payment back when you have no payment ID. Never switch to a new key for the same purchase. The result reports whether the payment was CREATED or REPLAYED, and nextAction. Next: get_funding_step when nextAction is REQUEST_FUNDING_INSTRUCTIONS. Requires your own Axiv Pay API token in the Authorization: Bearer header of the MCP HTTP request, never as a tool argument. This tool does not sign or send any blockchain transaction. Axiv Pay holds no keys. Your own wallet signs the step returned by get_funding_step.

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": {
      "quoteId": "<quoteId>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "create_payment"
  }
}

Input Schema

NameRequiredDescriptionDefault
payerNoAccount that will fund the payment. Required if the quote was created without a payer. 0x followed by 40 hex characters. Not the zero address.
quoteIdYesquoteId returned by create_quote ("quote_" followed by a UUID).
idempotencyKeyYesYour unique key for this payment, 8 to 128 characters from A-Z a-z 0-9 . _ : -. Reuse the same key when retrying.
merchantReferenceNoOptional order or invoice reference, up to 100 characters from A-Z a-z 0-9 . _ : -.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, idempotentHint=true, destructiveHint=false), the description adds substantive behavior: no funds move, nothing is signed, Axiv Pay holds no keys, and the API token must travel in the Authorization header rather than as an argument. It also discloses the CREATED/REPLAYED outcome and nextAction field. It stops short of describing response shape or failure modes beyond retrySameRequest, which keeps it at a 4 rather than a 5.

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 definition is long but dense and front-loaded, leading with workflow position before idempotency detail. One sentence is redundant with the opening ("This tool does not sign or send any blockchain transaction" repeats "moves no funds and signs nothing"), costing it a point, but every other clause carries operational weight.

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?

There is no output schema, and the description compensates by naming the return fields an agent must branch on (CREATED vs REPLAYED, nextAction). It also covers authentication placement and the handoff to get_funding_step and the wallet signing step. For a 4-parameter creation tool with idempotency semantics, 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 goes beyond the schema's brief "Reuse the same key when retrying" by explaining the consequence: the key is the only way to read the payment back when no payment ID exists, and a new key creates a duplicate purchase. That is decision-relevant semantics the schema does not carry. The quoteId and payer parameters are not elaborated further, which is fine given full schema coverage.

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?

"Step 2 of a payment. Create one payment from a quote before the quote expires" gives a specific verb (create), resource (payment), and its position in the workflow relative to create_quote and get_funding_step. An agent can tell this apart from create_quote, create_payment_link, and get_funding_step without opening any schema.

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?

The description explicitly routes the agent forward ("Next: get_funding_step when nextAction is REQUEST_FUNDING_INSTRUCTIONS") and gives precise retry rules: retry with the same key when retrySameRequest is true or the response is lost, and "Never switch to a new key for the same purchase." It states both when to call and when not to, leaving nothing to inference.

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