Quote one configuration
quote_esimUse while the customer is still deciding — "how much is …?": the exact price of one eSIM configuration (country, data GB 1–100, days 1–90, networks), the server price the customer would pay. Returns the exact server price for this configuration. The result carries a buy_url for reference; when the customer says they want to buy, call start_checkout instead.
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": {
"destination": "<destination>",
"gb": "<gb>",
"days": "<days>"
},
"name": "quote_esim"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gb | Yes | Data pool in whole GB for the whole trip (1–100). One pool, not per day. Not sure how much? Call recommend_config. | |
| days | Yes | Validity days (1–90). | |
| bucket | No | Optional language-region bucket the customer shops in, e.g. en-gb, de-de (sets currency and link locale). Defaults from language. | |
| currency | No | ||
| language | No | ISO language of the conversation, e.g. en, de, ja. Localizes country names and sets the language/currency of links and prices. | |
| networks | No | Optional: operator names (or codes) from get_networks to include. Omit = the cheapest network of the country. A named network brings every network of the country that is not dearer with it (the quote lists them in networks). The dearest included network sets the data price; an eSIM that includes any network dearer than the cheapest one carries one small fee — once per eSIM, however many networks are included. | |
| destination | Yes | Country in ANY language or its ISO code, e.g. "Japan", "Japon", "jp". Map a city to its country first. One country per eSIM. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| iso | No | ISO 3166-1 alpha-2, lower case. | |
| days | No | Validity in days, counted from the first connection at the destination. | |
| note | No | Present when something about the request had to be adjusted — read it to the customer. | |
| price | No | FULL price of this configuration in currency — the amount paid. Not per day, not per GB. | |
| topup | No | How the customer adds data or days to this eSIM later (not through the tools). | |
| buy_url | No | Configurator pre-set to exactly this configuration. Use verbatim. | |
| data_gb | No | Total data pool for the whole validity (whole GB). Not per day. | |
| hotspot | No | ||
| currency | No | ||
| networks | No | Operator names included in this eSIM. | |
| destination | No | Resolved country name (localized). | |
| price_basis | No | ||
| price_is_final | No | ||
| activation_trigger | No | ||
| networks_unmatched | No | Present when a requested network does not exist in this country: those names. The quote then uses the networks listed in networks. |