Sum up invoices and payments for a period
summarize_paymentsAggregate invoices over a UTC date range to get status counts, invoiced and received USD totals, and payment amounts per network and token, avoiding manual invoice paging.
Instructions
Sums up the invoices created in a period, instead of paging through list_invoices. Needs a store key (npx stablevoy-mcp login). It returns how many invoices are in each status, invoicedUsd (cancelled and expired left out), receivedUsd (confirmed payments that passed sanctions screening) and the money per network and token. Pass either period or both createdFrom and createdTo as UTC days. A period together with dates, or only one of the two dates, is refused. One call covers at most 92 days; ask for a year in four quarters. Without store and with several stores you get one summary per store plus a total. Use list_invoices to see the invoices themselves. A failure comes back as an error with its code and what to do, for example rate_limited with the seconds to wait.
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": "summarize_payments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| store | No | Store id or exact store name from list_stores. Needed only when several stores are connected. | |
| period | No | A ready-made range of UTC days ending today. Leave out when giving dates. | |
| createdTo | No | Last UTC day, YYYY-MM-DD, included. | |
| createdFrom | No | First UTC day, YYYY-MM-DD, with createdTo. |