Repeat an expense
create_recurring_expenseUse this when the user wants an expense added on a schedule, such as monthly rent. It is posted on startsOn and then every interval weeks, months or years; a startsOn in the past begins at the next date from today.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"groupToken": "<groupToken>",
"description": "<description>",
"amountCents": "<amountCents>",
"currency": "<currency>",
"paidByParticipantToken": "<paidByParticipantToken>",
"splitType": "<splitType>",
"splits": "<splits>",
"cadence": "<cadence>",
"startsOn": "<startsOn>"
},
"name": "create_recurring_expense"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| splits | Yes | Who shares each expense, each member once. For `equal` give only tokens; for `amount`, amounts adding up to `amountCents`; for `percentage`, percentages adding up to 100; for `shares`, share counts. | |
| cadence | Yes | The unit `interval` counts in. | |
| currency | Yes | The currency each expense is paid in. | |
| interval | No | How many `cadence` units apart the expenses are, such as 2 with `weekly` for every other week. | |
| startsOn | Yes | The first date, `YYYY-MM-DD`, from which the schedule counts. The first expense is posted on the first scheduled date from today on. | |
| splitType | Yes | How each total is divided, and so which value every split carries. | |
| groupToken | Yes | The group's token, from `listGroups` or `listSearchResults`. | |
| amountCents | Yes | Each expense's total in minor units of `currency` (¥1,000 is 1000, $12.50 is 1250). | |
| description | Yes | What each expense is for, such as Rent. | |
| categoryToken | No | The group category to file each expense under, by token from `showGroup`. Omit for none. | |
| idempotencyKey | No | A UUID you make up for this call. If the call fails or gets no answer and you try again, send the same UUID so nothing is added twice. Use a new one for each new thing you add. | |
| paidByParticipantToken | Yes | The member who pays each time, by token from `showGroup`. |