Skip to main content
Glama

TgPay Crypto Merchant API

getInvoices

Read-only

List invoices (newest first).

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

Input Schema

NameRequiredDescriptionDefault
fiatNoFilter by fiat code.
assetNoFilter by asset code.
countNoPage size (default 100).
offsetNoSkip this many.
statusNoactive | paid | expired.
invoice_idsNoComma-separated ids.
client_invoice_idNoYour own id given at createInvoice.
parent_invoice_idNoThe payments of this multi-payment invoice.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / client_invoice_id
      Added value: +{
      +  "description": "Your own id given at createInvoice.",
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / parent_invoice_id
      Added value: +{
      +  "description": "The payments of this multi-payment invoice.",
      +  "type": "integer"
      +}
  3. First observed

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare this a safe read operation, so the description's main contribution is the newest-first sort order, a genuine behavioral trait not encoded in the schema. It says nothing about pagination defaults, total counts, or what a returned invoice contains, leaving the behavioral picture thin for an 8-filter query tool.

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?

A single compact fragment with the ordering detail front-loaded immediately after the verb. Nothing is wasted, though the brevity borders on under-specification rather than economy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with eight optional filters and no output schema, the description should at least hint at result shape, pagination behavior, or filter interaction. It provides none of that, so an agent knows what the tool is but little about how a call behaves.

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 eight filters, including status values and the parent_invoice_id meaning, are already documented in the schema. The description adds no meaning beyond that, which is the baseline case when the schema carries the load.

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?

"List invoices" gives a specific verb and resource, and "(newest first)" clarifies the ordering. It does not distinguish this from siblings such as getInvoicePayments, getInvoiceAddress, or deleteInvoice, so an agent must infer the boundary from names alone.

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

Usage Guidelines2/5

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

There is no statement of when to use this versus the other invoice-related tools, nor any guidance on paging through results or combining filters. The only usage signal is the word "List", which the schema's count/offset parameters already imply.

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