Skip to main content
Glama

TgPay Crypto Merchant API

getInvoiceAddress

The invoice's own payment address for your checkout page: the payer sends amount of asset on network (plus memo when set) before expires_at; the invoice is paid by itself once it arrives. A repeat call returns the same address and never extends the window. Show the amount, the network and the deadline from the answer UNCHANGED. Money comes IN only. 409 checkout_disabled while the app's address payment method is off.

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>",
      "asset": "<asset>",
      "network": "<network>"
    },
    "name": "getInvoiceAddress"
  }
}

Input Schema

NameRequiredDescriptionDefault
assetYesAsset the payer sends, e.g. USDT.
networkYesNetwork code, e.g. TRON.
invoice_idYesThe unpaid invoice.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations only mark the tool as non-read-only and non-destructive; the description goes well beyond that by disclosing idempotency ('a repeat call returns the same address and never extends the window'), the self-settling behaviour of the invoice, and the 409 checkout_disabled failure condition. It does not describe rate limits or payload shape, but the key behavioural traits are covered.

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?

Content is front-loaded in a single dense sentence describing the payment flow, followed by short imperative sentences on idempotency, display fidelity and the error case. No filler, though the 'Show the amount... UNCHANGED' rendering instruction is a mild digression from tool-calling semantics.

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?

With no output schema and a simple three-parameter input, the description compensates by describing the returned fields (address, amount, network, deadline, optional memo) and the payment lifecycle. An agent has enough to call it and interpret the response correctly.

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%, so all three parameters are already documented. The description adds relational meaning — the payer sends `amount` of `asset` on `network` before `expires_at` — which clarifies how inputs map to the payment flow, but it introduces no format or constraint details beyond the schema.

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 names the specific resource — 'the invoice's own payment address' — and defines it as the address a payer sends funds to, so an agent can tell it apart from outbound address tools like getWithdrawAddresses via the explicit 'Money comes IN only' contrast. It never uses a direct verb like 'Get', but the resource and its role are unambiguous.

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?

It states the context of use ('for your checkout page') and the idempotent behaviour on repeat calls, which implies when it is appropriate to call. It does not name alternatives such as getInvoicePayments or state when not to call it, so guidance is implied rather than explicit.

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