Skip to main content
Glama

PayGate USDT Payment Gateway MCP

check_usdt_subscription

Read-onlyIdempotent

Check whether a customer (customer_ref) has an active non-custodial recurring USDT/USDC subscription with merchant_wallet, including remaining days, expiration timestamp, and a pre-filled 1-click renewal checkout URL. Read-only lookup (unlimited free calls, early renewals automatically stack remaining days without requiring approve(MAX_UINT256)). Returns JSON with ok, active (boolean), days_remaining (number), expires_at (ISO-8601 or null), last_invoice_id, and renewal_url.

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": {
      "merchant_wallet": "<merchant_wallet>",
      "customer_ref": "<customer_ref>"
    },
    "name": "check_usdt_subscription"
  }
}

Input Schema

NameRequiredDescriptionDefault
networkNoSettlement network pre-populated in the returned `renewal_url`. Defaults to `polygon`.polygon
amount_usdNoSubscription renewal price in USD used to pre-populate the returned `renewal_url`. Defaults to `9.0`.
billing_daysNoBilling cycle length in days pre-populated in the returned `renewal_url`. Defaults to `30`.
customer_refYesUnique subscriber identifier (e.g. user ID, email, or account handle) passed when creating the subscription invoice.
merchant_walletYesMerchant's receiving wallet address (`0x...` on EVM or base58 on Solana) that collects subscription payments.

Output Schema

NameRequiredDescriptionDefault
okYes
activeYes
renewal_urlYes
days_remainingYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

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 description earns credit for the extra context it supplies: calls are free and unlimited, and early renewals automatically stack remaining days without requiring approve(MAX_UINT256). Those are genuine behavioral facts an agent could not infer from annotations. It stops short of describing rate limits or what `ok: false` means.

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?

Purpose is front-loaded in the first clause, behavioral caveats follow, and the return contract closes it out. Three dense sentences with no filler or hedging; every clause carries new information.

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?

A simple read-only lookup with full annotation coverage, complete schema descriptions and an output schema — the description is more than sufficient for correct invocation, adding the renewal-stacking behavior and the free/unlimited call model. Enumerating the return fields is redundant given the output schema exists, but it does no harm.

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 all five parameters are already documented, including the default and enum for `network`. The description clarifies the role of the optional trio (they only pre-populate `renewal_url` rather than changing lookup scope), which is a modest value-add but largely restates the schema. 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?

The description opens with a specific verb+resource: 'Check whether a customer has an active non-custodial recurring USDT/USDC subscription with merchant_wallet.' That is far more precise than a name restatement and separates it conceptually from the invoice-creation/verification siblings by labeling it a 'Read-only lookup'. It never names an alternative tool, so it stops short of full sibling differentiation.

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 context is implied rather than stated: 'Read-only lookup (unlimited free calls)' tells the agent it is safe to poll, and the `active`/`days_remaining` output framing implies a status-check use case. But there is no explicit when-to-use/when-not guidance and no routing to siblings such as get_usdt_invoice or create_usdt_invoice when no active subscription exists.

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.