Request Purchase
request_purchaseAsk to pay one purchase with a card in AI agent mode (card_id from get_agent_card; may be left out when there is only one). Within the client's limit it is approved at once and the card unfreezes for 15 minutes; above it the client taps Allow in the GuaraPay app. Pay only where the client already saved this card — you never get the card number. One purchase at a time.
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": {
"merchant": "<merchant>",
"amount_usd": "<amount_usd>"
},
"name": "request_purchase"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | What it is for, shown to the client: "Vercel Pro, November". | |
| card_id | No | The agent card to pay with, from get_agent_card. Needed when the client has several. | |
| merchant | Yes | Where you pay, as the client knows it: "Vercel", "OpenAI API". | |
| amount_usd | Yes | The most this purchase may cost, in USD, taxes included. |