Skip to main content
Glama

List payments

list_payments
Read-only

List your Router payments: the unified ledger across every service and delegation, newest first, at most 1000 records. Each record carries its id (the paymentId get_payment_result takes), createdAt, status, protocol, network, requestId, delegationId and amount in the asset's smallest unit (see assetDecimals), not in cents. Each row also carries deliveryStatus: delivered (request settled), charged_not_delivered (request failed and the merchant charge was observed), charged_unconfirmed (charge observed; delivery unconfirmed), not_charged (reconciliation recorded no merchant charge, including unreadable write-offs; not conclusive proof that no money moved), not_delivered (the merchant answered with an error, so nothing was delivered, and no charge has been seen: the amount stays reserved until reconciliation decides, after confirmed cancellation or payment authorization expiry, whether the merchant charged; it is not a confirmed charge), or pending (charge outcome unknown). Issued + pending means the charge outcome is unknown: neither payment nor no charge is established. On SPT and card rails, pending is not proof of no charge; those rows are never decided on chain. merchantSettlementObservedAt records an observed merchant charge; null is not, on its own, proof of no charge. Flag both charged states to the user. A usage-based (x402 upto) row also carries maxAmount, the most it could cost (its amount), and settledAmount, what the merchant settled, read from the chain later (null until then): report it as up to maxAmount, charged settledAmount. Each record also carries fundingSource, the funding it used: delegation, or subscription for your Nevermined credits, with or without a subscription. On a subscription row, deliveryStatus and merchantSettlementObservedAt describe what Nevermined paid the merchant, not a charge to you: what the call cost you is creditsCharged, and creditsStatus says whether that stands (Committed spent, Reserved held or marked for refund, Refunded returned). Do not report a charged state on such a row as a charge to the user. Pass requestId to look up the one payment with that id: the answer is then {"presence":…,"payments":[…]}, it ignores the other filters and the 1000-record limit, and presence: "absent" means no payment carries that id. Use this tool to reconcile an uncertain payment or find a paymentId; it does not return service responses (use get_payment_result) or the remaining budget (use get_budget, whose figures include fees and rounding). Reading costs nothing. Requires your Nevermined API key on the Authorization header.

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_payments"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoISO-8601 upper bound on `createdAt`, inclusive. An unparseable value is an error.
fromNoISO-8601 lower bound on `createdAt`, inclusive. An unparseable value is an error.
requestIdNoThe `requestId` a pay_service or route_by_intent result gave you, matched exactly. Finds that one payment wherever it sits in the ledger; the other filters are ignored.
delegationIdNoOnly payments charged to this delegation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / requestId
      Added value: +{
      +  "description": "The `requestId` a pay_service or route_by_intent result gave you, matched exactly. Finds that one payment wherever it sits in the ledger; the other filters are ignored.",
      +  "minLength": 1,
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  3. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Beyond the readOnly/destructive annotations it adds real operational context: reading costs nothing, a Nevermined API key is required on the Authorization header, results are newest-first and capped at 1000 records, and requestId lookups bypass other filters and the cap. It does not say what happens when the ledger exceeds 1000 rows (truncation vs. error) or whether pagination exists, which is the main behavioral gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose and alternatives are front-loaded correctly, and the dense deliveryStatus taxonomy carries weight because there is no output schema. But the body is one long undifferentiated paragraph mixing field semantics, user-facing reporting instructions, and edge cases, which makes it hard to scan; some clauses (e.g. repeated restatements that pending is not proof of no charge) could be tightened.

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

Completeness5/5

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

With no output schema, the description carries the full burden of explaining return values, and it does: every field (id, createdAt, status, protocol, network, requestId, delegationId, amount, deliveryStatus, merchantSettlementObservedAt, maxAmount/settledAmount, fundingSource, creditsCharged/creditsStatus) is defined along with its unit and caveats. Nothing essential for correct interpretation of results is missing.

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 description adds value by disclosing that a requestId query returns a different envelope (`{"presence":…,"payments":[…]}`, with `presence: "absent"` meaning no match) and that other filters are ignored in that mode. The from/to/delegationId semantics are left entirely to the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource plus scope: 'List your Router payments: the unified ledger across every service and delegation, newest first, at most 1000 records.' It also explicitly names what it is not (not service responses, not budget), which separates it from get_payment_result and get_budget.

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

Usage Guidelines5/5

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

Gives explicit use cases ('reconcile an uncertain payment or find a paymentId') and explicit exclusions with named alternatives: get_payment_result for service responses, get_budget for remaining budget. It also says passing requestId switches to a single-record lookup mode, so the agent knows which mode selects which.

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