Add credits
add_creditsGet a payment link for your human to add prepaid credits to this account. Use when get_balance is low or a call failed for insufficient credits. An agent-created account gets a 24-hour Stripe Checkout link; a person's account gets the billing page. Send human_message unchanged and never ask for card details. Charges nothing; the same idempotency_key returns the same link. Check get_balance after they pay.
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": {
"usd": "<usd>"
},
"name": "add_credits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| usd | Yes | Credits to add, in US dollars, e.g. "10". | |
| idempotency_key | No | Reuse to get the same link on retry. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Link for the human to open. | |
| kind | Yes | ||
| total_usd | No | Checkout total including any fee. | |
| expires_at | No | ||
| human_message | Yes | Send to the human as is. | |
| funding_session_id | No |