Record a payment
record_paymentRecords that the participant has already paid someone back (settling up); the amount defaults to what they owe that person. It records a completed payment only and moves no money. Use when the user says the money was actually sent.
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": {
"plan": "<plan>",
"participant_id": "<participant_id>",
"participant_token": "<participant_token>",
"to_participant_id": "<to_participant_id>"
},
"name": "record_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | Yes | Saved plan link (e.g. https://lesgooo.fun/ab12/when) or its 4-character plan ID. Links without a plan ID (e.g. https://lesgooo.fun/when) are unsaved local drafts and are not accepted. | |
| amount | No | Optional; defaults to the suggested settle-up amount. | |
| participant_id | Yes | From create_plan or join_plan. | |
| allow_duplicate | No | Only if the user confirms a second, identical payment within 10 minutes (otherwise it is treated as a retry). | |
| participant_token | Yes | From create_plan or join_plan. | |
| to_participant_id | Yes | Who received the money (participant_id, or their exact name). |