Check affordability
assess_affordabilityTHE tool for a plain 'can we afford X?' / 'is X affordable?' / 'do we have room for X?' question — when the user only wants to know whether the money is there (e.g. 'Can we afford a $400 trip right now?'). Use this, NOT recommend_decision_within_budget, for a straight affordability check. Returns verdict (afford / tight / over / no_budget), headroom, and breakdown. Only switch to recommend_decision_within_budget when the user explicitly asks for advice on whether they SHOULD do it ('should we', 'is it worth it', 'is it too tight'). amount_cents is MINOR units (cents): pass 5000 for 50.00. All output amounts are in currency units, not cents.
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>",
"amount_cents": "<amount_cents>"
},
"name": "assess_affordability"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category | No | Optional category slug or name for a category-level strain check. Call list_budget_categories if unsure. | |
| ledger_id | Yes | ||
| amount_cents | Yes | Purchase amount in minor units (cents). 5000 = 50.00. |