List upcoming payments and the next payday
well_list_upcoming_paymentsList the payments still to come in a personal space, from its bank and credit card history: each recurring debit with its next day and amount, a running total, and the next recurring inflows (payday among them) with what is left before each. It draws no card.
Call it when the person asks what is coming out of their account, which bills are due before payday, or what is left until payday ("what's left before payday?", "qu'est-ce qui part avant ma paie ?"). It reads a personal space only: in a company workspace it refuses, and the supplier bills a company owes are read with the bills-due skill.
The server applies every rule, and the result states each one in rules. Quote the figures and days as returned: never recompute a day, an amount, a running total or a balance, and never add a payment the person expects.
Every amount in the result is in the major units of its currency, never in cents: 1860 is 1,860.00 EUR, not 18.60 EUR.
Inputs:
until: the last day to list,YYYY-MM-DD, from today to 366 days ahead. Omit it for the next 35 days, which always holds a monthly payday.balance_by_currency: the balance to start from, in major units, keyed by currency, as a balance read returned it. Omit it to get the days and totals with no balance left.
What the result is:
today: the calendar day in the workspace's time zone;untilthe last day listed.debits: the recurring debits expected from today tountil, earliest first, at most 50;debit_countis the full count. Each has itsnext_day,expected_amount(the latest debit's amount;amount_pattern: varyingmeans it is an estimate),cadence,state,running_totalper currency andbalance_left(balance minus the running total,nullwith no balance for its currency).state: latemeans the expected day passed at most 5 days ago with no debit seen yet: it is still expected and counted.missed_periodsabove 0 means earlier periods passed with no debit.inflows: the recurring money in expected in the same days, earliest first, with itscategory(SALARY_INCOMEis a salary),next_day,expected_amount,debits_due_before(the debits of its currency expected before its day) andbalance_left_before. Payday is one of these, or ofinflows_after_untilwhenuntilcomes before it: the result never picks it.inflows_after_until: the recurring inflows whose next day is afteruntil, earliest first, with the same fields asdebitsbut no running total. A salary here is a payday after the last day listed.totals: per currency, the debits expected tountiland the balance left after them.possibly_ended_count: series that may have stopped, never listed.beyond_horizon_count: debits and inflows whose next day is afteruntil.undated_count: series with no readable day.excluded: what fell out of the debits, counted apart.payments_to_own_accountsare debits to another account of this space, such as a loan repayment to a loan account Well holds;category_excludedthe debits whose category is a transfer, placement or cash withdrawal. Anullcount was not measured, which is not zero.
partial: true means nothing was measured: the read was cut short, or the space holds no bank account and no card. Say so rather than reporting no payment. rows_truncated: true means the smallest counterparties were not read, so every total is a floor.
When the token authorizes one workspace, call this directly — no workspace call is needed first. When it authorizes several, this read will not guess which one you mean: pass workspace_id on the call.
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": "well_list_upcoming_payments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| until | No | The last day to list, YYYY-MM-DD, from today to 366 days ahead. Omit it for the next 35 days. | |
| workspace_id | No | Target workspace. Omit when the token authorizes one workspace. Required when it authorizes several: this read reports one workspace's own figures and will not choose which. | |
| conversation_id | No | The conversation id returned by the previous Well result, in its meta under well/conversation_id, in its structuredContent, or in its JSON text block. Pass it back on every call in the same conversation, including a call a card makes, so the chosen workspace and the earlier answers still apply. It decides the conversation on its own: nothing the host states about the session replaces it. Omit it only on the first call of a conversation. | |
| workspace_scope | No | Restrict this call to the family: the token's primary workspace plus the company workspaces under it that you are a member of. Unrelated authorized workspaces drop out of the read; row reads merge across the family, while a per-workspace figure still reports exactly one workspace. | |
| balance_by_currency | No | The balance to start from in major units, keyed by currency, as a balance read returned it. Omit it to list the days with no balance left. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| rules | Yes | ||
| today | Yes | ||
| until | Yes | ||
| debits | Yes | ||
| totals | Yes | ||
| inflows | Yes | ||
| partial | Yes | ||
| success | Yes | ||
| excluded | Yes | ||
| time_zone | Yes | ||
| debit_count | Yes | ||
| inflow_count | Yes | ||
| undated_count | Yes | ||
| rows_truncated | Yes | ||
| conversation_id | No | The conversation this result belongs to. Pass it back as the conversation_id argument on every later Well call in the same conversation. | |
| newly_connected | No | Tools that connected to this workspace since the last result and that no session was told about yet, oldest first. Present only when at least one tool is new. The connected-line rule says when to tell an entry; when it does, one line per entry, in the person's language: "<name> is connected.". Never fold several entries into one sentence. Each entry comes back once, on one result only: never repeat its line later. | |
| debits_truncated | Yes | ||
| inflows_truncated | Yes | ||
| resolved_workspace | No | The workspace that answered, when the caller named none and the token authorizes several. | |
| inflows_after_until | Yes | ||
| beyond_horizon_count | Yes | ||
| conversation_id_note | No | Present only when the server opened a fresh lane, stating that no choice recorded earlier was read. | |
| possibly_ended_count | Yes | ||
| conversation_id_source | No | Where the conversation id came from: the host's own request meta, the caller's argument, or a fresh lane the server opened. |