generate_upi_code
Build a static UPI (upi://pay) payment payload for India and optionally render it as a QR image. Returns the payload string by default. Static and untracked — nothing is saved to the library. Requires an OpenQR API key.
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": {
"vpa": "<vpa>",
"payeeName": "<payeeName>"
},
"name": "generate_upi_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vpa | Yes | Virtual payment address, e.g. name@bank. | |
| note | No | Optional payment note (≤50 chars keeps every UPI app happy). | |
| size | No | Image size, 96–2048 (default 512). | |
| force | No | Build even when validation reports problems (they return as warnings). | |
| amount | No | Optional amount in INR, e.g. 25.50. | |
| format | No | Return a rendered image instead of the payload string. | |
| payeeName | Yes | Payee name shown in the payer's app. |