Skip to main content
Glama

List payments

lw_payment_list
Read-onlyIdempotent

List account payments for reconciliation, including ID, date, remaining balance, bill ID, closed and receipt flags; void payments are hidden unless include_void is true.

Instructions

List payments applied to the account (bleed Billing/Payment/list) for reconciliation: id, created date, remaining balance on the payment, bill id, closed and receipt flags. Void payments are hidden unless include_void=true. Payment source and card details are always removed.

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

Input Schema

NameRequiredDescriptionDefault
sortNoSort direction (default desc).
extraNoAdvanced: extra API params passed through as-is. Typed params win on conflict. Check lw_api_path_details first.
contextNoAuth context name (like lw-cli contexts). Omit to use the default. lw_contexts lists them.
verboseNoReturn raw API objects instead of the compact summary.
order_byNoSort field (default created_date).
max_itemsNoReturn at most this many items (default LW_MAX_ITEMS, 500). When more remain, the result says truncated and gives next_page if the cut fell on a 100-item page boundary; otherwise raise max_items.
start_pageNoResume from this page (use next_page from a previous call).
include_voidNoInclude void payments (API default hides them).

Output Schema

NameRequiredDescriptionDefault
okYes
dataNo
errorNo
statusYes
contextNo
previewNo
summaryYes
warningsNo
next_pageNo
next_stepNo
truncatedNo
expires_atNo
confirm_tokenNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

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 and destructiveHint=false, so the safety profile is covered; the description adds genuinely new behavioral context beyond that. It discloses two non-obvious filtering behaviors: void payments are hidden by default unless include_void=true, and payment source/card details are always stripped from results — both important for an agent interpreting completeness of the output.

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?

Three sentences, front-loaded with the resource and API path, then the returned fields, then the two filtering caveats. Every clause carries information an agent would otherwise have to infer; no filler or restatement of the title.

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 an output schema present, the description needn't explain return shape, and rich annotations plus 100% schema coverage handle safety and parameters. What it must cover — default hiding of void payments and redaction of card/source data — it does cover, leaving only minor gaps such as pagination behavior, which the schema already spells out.

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% (8 params, all documented, including enum values for sort and order_by and the truncation/next_page mechanics of max_items/start_page), so the schema carries the parameter burden. The description only reinforces include_void ('hidden unless include_void=true') and adds no syntax or interaction details beyond what is already typed, making the baseline 3 appropriate.

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?

States a specific verb and resource ('List payments applied to the account') plus the underlying API path (bleed Billing/Payment/list) and enumerates the summary fields returned (id, created date, remaining balance, bill id, closed/receipt flags), so the agent knows exactly what data comes back. It does not explicitly differentiate itself from sibling list tools like lw_invoice_list or lw_billing_balance, which keeps it short of a 5.

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?

The phrase 'for reconciliation' gives a soft usage context, and the void-payment rule tells the agent when to flip include_void=true. However, there is no explicit when-not guidance and no named alternative (e.g. a balance or invoice tool) for cases where this list is the wrong choice, so usage is implied rather than prescribed.

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