Which card for this spend
recommendRanks the cards a person holds for one spend: a merchant (such as "MakeMyTrip", "Swiggy", "amazon.in") or a category, and an amount in rupees. Each card comes with the points, their ₹ value at Brief’s estimate and at the baseline its card page prints, the working, the rule and its source, any cap that bites, the transfer route the value assumes, and a cheaper channel (a bank’s travel portal) with the portal rule’s own condition, beside every portal rule weighed for that card (channels). When the order changes at baseline values, the answer says so. Month-to-date spend counts as zero unless wallet.month_to_date carries it, so a monthly cap reads as untouched; the answer says which. Nothing in the wallet is stored.
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": {
"amount_inr": "<amount_inr>",
"wallet": "<wallet>"
},
"name": "recommend"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| upi | No | Paid by UPI. Only RuPay credit cards link to UPI, and some earn differently there. | |
| wallet | Yes | The cards held. Passed in each call; nothing is kept. | |
| category | No | The spend category when there is no merchant, or to say how a multi-category merchant codes. | |
| merchant | No | Where the money goes: a merchant name or domain. A UPI handle also works. | |
| amount_inr | Yes | The amount in rupees. | |
| international | No | Spent abroad or in a foreign currency. Forex markup and GST come off the value. |