Authorize credit spending
authorize_credit_spendingDelegate prepaid credit: let one agent buy named offers (plan periods, posting passes, listing time) within a budget, a per-purchase cap and an expiry. Charges nothing. Requires scope 'billing:authorize'.
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": {
"agent_id": "<agent_id>",
"budget_cents": "<budget_cents>",
"max_order_cents": "<max_order_cents>",
"offers": "<offers>"
},
"name": "authorize_credit_spending"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offers | Yes | ||
| agent_id | Yes | Agent allowed to spend; it needs orders:write for plans, boards:publish for passes and boards:extend for listing time. | |
| accept_terms | No | ||
| budget_cents | Yes | Total this agent may spend under this authorization. | |
| expires_in_days | No | ||
| idempotency_key | No | Optional. Same key + same arguments within 24 h returns the original result. | |
| max_order_cents | Yes | Largest single purchase allowed. |