haldir_authorize_payment
Authorize a payment against a session’s spending cap before calling the payment provider, blocking transactions that would exceed the budget.
Instructions
Authorize a payment against a session's spend_limit. Returns 403 if it would over-run the budget — use this BEFORE calling the payment provider so the governance layer gets a chance to block.
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": {
"session_id": "<session_id>",
"amount": "<amount>"
},
"name": "haldir_authorize_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | ||
| currency | No | USD | |
| session_id | Yes | ||
| description | No |