Add to a savings goal
contribute_to_savingsLog an explicit savings contribution (CREDIT entry) against a savings goal. Commits immediately. amount_cents is MINOR units (cents): pass 10000 for 100.00, never a decimal. The returned amount is in currency units.
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": {
"ledger_id": "<ledger_id>",
"goal_id": "<goal_id>",
"amount_cents": "<amount_cents>"
},
"name": "contribute_to_savings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal_id | Yes | Id of the savings goal to contribute toward. | |
| ledger_id | Yes | ||
| amount_cents | Yes | Contribution amount in minor units (cents). 10000 = 100.00. |