Skip to main content
Glama

PayGate USDT Payment Gateway MCP

get_usdt_invoice

Read-onlyIdempotent

Retrieve current settlement status, payment metadata, expiration timestamp, and cryptographic SHA-256 receipt for an existing PayGate invoice by invoice_id. Read-only, non-destructive lookup (unlimited free calls, no authentication required). Returns JSON with ok (boolean), invoice (invoice_id, status as pending/paid/expired, amount_usd, network, merchant_wallet, tx_hash, paid_at, metadata), and receipt.

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": {
      "invoice_id": "<invoice_id>"
    },
    "name": "get_usdt_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
invoice_idYesUnique PayGate invoice identifier to look up (e.g. `inv_a1b2c3d4e5f6`).

Output Schema

NameRequiredDescriptionDefault
okYes
invoiceNo
receiptNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuinely new context: unlimited free calls, no authentication required, and the exact response envelope including `ok`, the `invoice` fields, the `pending`/`paid`/`expired` status set, and the `receipt` object. It stops short of saying what a lookup on an unknown or expired `invoice_id` returns.

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?

Two tight sentences: the first front-loads the verb, resource, and returned data; the second gives the safety/cost profile. No filler, and the most decision-relevant facts (identity, read-only, free) come first.

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 a one-parameter read tool with full annotation coverage and an output schema, the description is more than sufficient; the field enumeration is technically redundant with the output schema but aids quick scanning. The only real gap is the absence of routing guidance against `verify_usdt_invoice` and `list_usdt_invoices`.

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 coverage is 100% and the single parameter is already documented with an example format. The description only restates that the ID identifies an existing invoice, adding no new meaning about format, case sensitivity, or failure behavior for an invalid ID, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb (Retrieve) and resource (an existing PayGate invoice identified by `invoice_id`), and enumerates the returned data (status, payment metadata, expiration, SHA-256 receipt). It is clearly a single-invoice lookup rather than a list or creation, though it never explicitly names how it differs from `verify_usdt_invoice` or `list_usdt_invoices`.

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

Usage Guidelines3/5

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

Usage is implied by 'for an existing PayGate invoice by `invoice_id`' and reinforced by 'read-only, non-destructive lookup (unlimited free calls, no authentication required)', which tells the agent it is cheap and safe to call. However, there is no explicit statement of when to prefer this over `verify_usdt_invoice` (which presumably re-checks payment) or `list_usdt_invoices`, so routing between near-siblings is left 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.