Lend, borrow, or change a loan
save_loanRecords that one of the household's items was lent to someone (direction "lent") or that something was borrowed from them ("borrowed"), optionally with a due-back date — or, with id, changes an open loan (who has it, when it's due back…
Instructions
Records that one of the household's items was lent to someone (direction "lent") or that something was borrowed from them ("borrowed"), optionally with a due-back date — or, with id, changes an open loan (who has it, when it's due back, the note, the borrower's email and how often they're reminded). To add: itemId (from search_inventory), direction and person; an item has one open loan at a time. For it coming back use return_loan. Returns the loan with its id and due date.
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": "save_loan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The loan to change, from list_loans; leave out to add a new one | |
| note | No | Anything worth remembering about the loan | |
| dueOn | No | When it's due back, yyyy-mm-dd | |
| No | Lent: the borrower's email, for reminders | ||
| since | No | When it went (or came), yyyy-mm-dd; today if left out | |
| itemId | No | To add: the item's id, from search_inventory | |
| person | No | Who has it (lent) or whose it is (borrowed) | |
| direction | No | To add: "lent" (the household's thing is with someone) or "borrowed" (someone else's thing is here) | |
| remindEvery | No | Lent, with an email: remind the borrower this often |