Skip to main content
Glama
Zenskar MCP Server

Zenskar MCP Server

Official
by zenskar

listAllPayments

listAllPayments

Retrieve a paginated list of payments, including refunds, and filter or sort records by status, customer, invoice, amount, and date to review transaction history.

Instructions

Retrieve a paginated list of all payments, including refund records, with extensive filtering and sorting options. Payment amounts and amount filters are in cents.

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

Input Schema

NameRequiredDescriptionDefault
idNoFilter by payment ID.
typeNoFilter by payment type (e.g., 'payment', 'refund').
limitNoMaximum number of payments to return per page (defaults to 10).
orderNoOrder of results (e.g., '-created_at').-created_at
cursorNoThe cursor for pagination.
searchNoGeneral search query.
statusNoFilter by payment status (e.g., 'success', 'failed').
sort_keyNoKey to sort the results by (e.g., 'id').
parent_idNoFilter by parent payment ID.
sort_typeNoSort order type (e.g., 'asc').
autochargeNoFilter by auto-charge status.
amount__gteNoFilter by amount greater than or equal to.
amount__lteNoFilter by amount less than or equal to.
customer_idNoFilter by customer ID.
invoice__idNoFilter by associated invoice ID.
connector_idNoFilter by connector ID.
__userContextNoInternal user context for multi-tenant authentication and approval workflow
payment_methodNoFilter by payment method (e.g., 'card', 'cash', 'bank_transfer').
timestamp__gteNoFilter by timestamp greater than or equal to (Unix time).
timestamp__lteNoFilter by timestamp less than or equal to (Unix time).
created_at__gteNoFilter by creation date greater than or equal to (ISO 8601).
created_at__lteNoFilter by creation date less than or equal to (ISO 8601).
external_id__ilikeNoCase-insensitive partial match for external ID.
amount_refunded__gteNoFilter by amount refunded greater than or equal to.
amount_refunded__lteNoFilter by amount refunded less than or equal to.
currency_code__ilikeNoCase-insensitive partial match for currency code.
receipt_number__ilikeNoCase-insensitive partial match for receipt number.
invoice__approved_at__gteNoFilter by invoice approval date greater than or equal to (ISO 8601).
invoice__approved_at__lteNoFilter by invoice approval date less than or equal to (ISO 8601).
invoice__bill_for_date__gteNoFilter by invoice billing date greater than or equal to (ISO 8601).
invoice__bill_for_date__lteNoFilter by invoice billing date less than or equal to (ISO 8601).
customer__business_entity_idNoFilter by customer's business entity ID.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.2.4

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden and does disclose pagination and that refund records are included in results. It does not cover authentication requirements, rate limits, defaults (limit/order), or what a response record contains, which matters for a tool with 32 optional filters.

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 sentences, no filler, and the core scope statement is front-loaded ahead of the unit caveat. Every clause adds information an agent needs.

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

Completeness3/5

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

For a 32-parameter list tool with no annotations and no output schema, the definition covers scope, pagination existence, refund inclusion, and units, but omits pagination mechanics (cursor/limit defaults), default sort order, and any indication of return shape or cost. Adequate but with visible gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3. The added statement that payment amounts and amount filters are in cents genuinely extends the schema, whose amount fields only say "greater than or equal to" without units — that would otherwise be a costly misinterpretation.

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?

"Retrieve a paginated list of all payments" states a specific verb and resource, and "including refund records" clarifies a scope question that matters here. It stops short of naming which sibling to use for narrower cases (e.g. invoice-scoped or refund-free payment lists).

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 only implied: the word "all" suggests this is the broad listing tool rather than the invoice-scoped siblings, but the description never says when to prefer it over getInvoicePayments or getInvoicePaymentsWithoutRefunds. No exclusions or prerequisites are stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools