Skip to main content
Glama

PayGate USDT Payment Gateway MCP

list_usdt_invoices

Read-onlyIdempotent

List and filter PayGate USDT/USDC invoices by merchant_wallet, settlement status (pending, paid, expired), or customer_ref. Read-only query returning up to limit most recent invoices in reverse chronological order (unlimited free calls, no authentication required). Returns JSON with ok (boolean), count (integer), and invoices array.

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": "list_usdt_invoices"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of invoices to return (`1` to `100`). Defaults to `25`.
statusNoOptional invoice lifecycle status filter: `pending`, `paid`, `expired`, or empty string for all statuses.
customer_refNoOptional customer identifier (`customer_ref`) to list payment history for a single subscriber or buyer.
merchant_walletNoOptional merchant receiving wallet address (`0x...` or Solana base58) to filter invoices for a specific merchant.

Output Schema

NameRequiredDescriptionDefault
okYes
countYes
invoicesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds genuinely new behavioral facts: reverse-chronological ordering, a cap of `limit` most recent invoices, and that calls are unlimited and unauthenticated. It stops short of describing pagination or what happens when no filter is supplied beyond the implicit 'all'.

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?

Three tight sentences, front-loaded with the core action and filter dimensions before the operational notes. The final sentence describing the JSON return shape is largely redundant given a dedicated output schema exists.

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 four-parameter read-only listing tool with full schema coverage and an output schema, the definition supplies everything an agent needs to invoke it correctly. The only slack is the redundant return-shape sentence and the absence of guidance on filter combination behavior.

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 every parameter is already documented with types, defaults, and the status enum. The description restates the filter fields and the status values but adds no new semantics such as address format nuances or how multiple filters combine (AND vs OR). Baseline 3 is appropriate.

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?

The description opens with a specific verb+resource ('List and filter ... invoices') and enumerates the filter dimensions, making it clearly a multi-record query rather than a single-record fetch like get_usdt_invoice. It does not name any sibling tool explicitly, so the differentiation is inferred rather than stated.

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 establishes the operating context well: read-only, free unlimited calls, and no authentication required, which tells an agent this is a cheap, safe query to use liberally. There is no explicit 'use this instead of X' routing or statement of when not to use it.

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.