Recommend a plan
recommend_planUse when a traveler asks which eSIM to get for a trip. Input: destination (or every country of a multi-country trip in destinations), trip length in days, and how they use data if known. Estimates the GB the trip needs (need_gb, same formula as estimate_data), then returns up to 3 Bloomy eSIM plans with a reason each: best_fit (lowest price in our catalog that covers the estimate with about 20% headroom, or exactly the estimate when the headroom would cost much more), budget (cheaper: either sized right at the estimate, or below it with covers_estimate false, meaning it may not be enough) and roomier (next size up, or a daily unlimited plan for heavy use). A multi-country trip is matched to one regional plan that covers every country. Each option has data, validity, networks (4G/5G per carrier), top-up support, price_jpy, price_usd and price_as_of, plus purchase_url (the checkout confirmation page; the traveler pays there).
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": {
"days": "<days>"
},
"name": "recommend_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | Yes | Required. Trip length in days, integer 1 to 180 (the whole trip for a multi-country trip). Example: 7. | |
| lang | No | Language of country names, reasons and of the checkout page the link opens: en, ja, zh-cn, zh-tw, ko, es or fr. Default en. The language never changes which plan or what price is returned: every plan carries price_jpy and price_usd (both always present) and price_as_of. | |
| wifi | No | How often the traveler will be on hotel or cafe Wi-Fi instead of mobile data: rarely, sometimes (default) or often. More Wi-Fi lowers the estimate. | |
| usage | No | Rough data usage when activities are not known: light = maps and messaging, normal = maps, messaging, web and social (default), heavy = normal plus video streaming. Ignored when activities or min_gb is given. | |
| min_gb | No | Data the traveler already knows they want, in GB for the whole trip (e.g. 10). Skips the estimate; overrides usage and activities. | |
| activities | No | What the traveler will use mobile data for, when they say so, e.g. ["maps", "social", "video_call"]. hotspot_light / hotspot_heavy mean sharing the connection with another device. Overrides usage. Same categories as bloomyesim.com/data-calculator. | |
| destination | No | One country or region for a single-country trip. Country name in English, Japanese, Chinese, Korean, Spanish or French, common names included (e.g. "Turkey", "Türkiye", "トルコ", "튀르키예", "Hawaii") or an ISO 3166-1 alpha-2 code ("TR"). Use destinations instead for several countries. | |
| destinations | No | Every country of a multi-country trip (2 to 5 entries; names in any supported language or ISO alpha-2 codes), e.g. ["France", "Italy", "Spain"]. One eSIM that covers all of them is searched. Use instead of destination. |