Buy credits
buy_creditsFor a signed-in personal AI agent: buy credits for the person (6 is The First Drop while they may still have it). Once the person approves the price, it returns payUrl: give it to the person to pay by card. Then read the purchase until paid.
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": {
"qty": "<qty>"
},
"name": "buy_credits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qty | Yes | ||
| approval | No | The approval of the operation this tool returned with approval_required: { operation_id, revision, approver: "user" }, all three required; only the person approves. Call once without it, show operation.summary to the person, then call again with structuredContent.approval as it came. | |
| idempotencyKey | No | Any unique string per intended action. A retry with the same key answers with the first result and never acts twice. |