Quote XGR purchase budget
quote_xgr_purchaseUse only when the user specifies a maximum USDC/USDT payment budget. Call get_xgr_purchase_options first, pass payment_assets[].key, and treat this result as planning only: it creates no order and is not a payment instruction.
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": {
"max_payment_amount": "<max_payment_amount>",
"payment_asset": "<payment_asset>"
},
"name": "quote_xgr_purchase"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payment_asset | Yes | Exact payment_assets[].key returned by get_xgr_purchase_options, for example usdc_eth. Do not use the display symbol. | |
| safety_margin_bps | No | Conservative planning margin in basis points. Omit to use the default 100 bps. | |
| max_payment_amount | Yes | Maximum amount of the selected payment asset the user authorizes. This is USDC or USDT, not EUR. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Structured result data returned by the XGR MCP gateway. |