best_card
Compares card reward rates, point values, caps, and promotions to recommend which card to use for a purchase before paying.
Instructions
Pick the card that earns the most rewards for a purchase. Call this before paying.
Args:
merchant: Merchant name, e.g. "Whole Foods".
category: One of dining, groceries, travel, gas, online_shopping, streaming,
drugstores, entertainment, transit, other. If unknown or empty, the category
is guessed from the merchant and the result says so.
amount: Purchase amount in US dollars.
wallet: Card names the user holds (see list_cards). Omit to compare all cards.
point_values: Optional cents-per-point the user assigns to a points program, e.g.
{"amex_membership_rewards": 1.8}. Keys: chase_ultimate_rewards,
amex_membership_rewards, citi_thankyou. Defaults are 1.0. The ranking can
change with these values, and the result says where the break-even is.
stale_after_days: Optional age in days after which card data counts as stale
(default 90). A rule is also stale once its valid_until has passed. The best and
runner-up cards report data_as_of, data_age_days, stale and stale_reason.
ending_soon_days: Optional window in days (default 30). If the rule behind the best or
runner-up card ends within it, the result lists it under ending_soon.
`warning` is set when either recommended card is stale or its rule ends soon. Expired
and not-yet-started rules are skipped automatically; `rule` on each card shows which
rule (promotion, category or base rate) set the rate.
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>",
"category": "<category>",
"amount": "<amount>"
},
"name": "best_card"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | ||
| wallet | No | ||
| category | Yes | ||
| merchant | Yes | ||
| point_values | No | ||
| ending_soon_days | No | ||
| stale_after_days | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| best | Yes | ||
| notes | Yes | ||
| amount | Yes | ||
| warning | No | ||
| category | Yes | ||
| merchant | Yes | ||
| runner_up | Yes | ||
| ending_soon | Yes | ||
| explanation | Yes | ||
| category_guessed | Yes | ||
| ending_soon_days | No | ||
| stale_after_days | No | ||
| point_values_used | Yes |