Get travel insurance quotes
get_quoteGets travel-insurance quotes from HelloSafe for a trip: priced offers from HelloSafe partners, shown in a comparison widget. Required: countryResidence, arrivalCountries (not for an annual multi-trip cover, which is worldwide), traveller ages, the trip length as endDate or durationDays (not for an annual or expat cover, which runs a year), and stateResidence for a US resident. Every other field has a default. The trip length is not defaulted: a wrong length gives a wrong price. HelloSafe is a licensed insurance broker, paid a commission by the insurers whose policies it distributes.
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": {
"tripInfo": "<tripInfo>"
},
"name": "get_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cardId | No | HelloSafe card ID returned by check_card_coverage, for a user who holds a credit card with travel cover: offers are then re-ranked by how well they fill that card's coverage gaps, and each offer lists what it adds over the card (complementsCard). | |
| locale | No | Language the user is writing in, as a BCP 47 tag or 2-letter code (e.g. "fr", "pt-BR"): the widget and all offer texts are localized with it, so when it is set the quote follows the user's language even if it differs from the app UI. When it is absent, the host UI locale is used if the host provides one (not every host does), then English; the quote never depends on a host locale being present. | |
| tripInfo | Yes | Trip details. | |
| subscriptionId | No | Existing subscription ID to update instead of creating a new one. | |
| displayCurrency | No | ISO 4217 code of a display currency other than the trip-cost currency. Without it, amounts are shown in the trip-cost currency. | |
| requiredCoverages | No | Optional filter on policy features, the guarantee filters of the HelloSafe comparison site: only the offers whose contract includes every listed cover are returned, that cover listed first. maternityCover = covers pregnancy; preExistingConditionsCover = covers pre-existing medical conditions; personalLiability; baggage; travelDelay; directHospitalBilling = the insurer pays the hospital directly; disability; searchAndRescue; earlyReturn; tripInterruption; electronics = electronic devices; cashAdvance; expatMaternity, expatDental, expatOptical (expatriates). Each trip purpose has its own filters, as on the site; a cover that is not one of them is ignored and reported. Used when the user asks for a policy that includes this cover; it changes neither prices nor eligibility, and health-related covers are not stored. | |
| cancelForAnyReason | No | Cancel For Any Reason option, like trip cancellation: an add-on bought with the policy (extra cost, a purchase window counted from the first trip payment, usually 75 % of prepaid costs refunded). Sold to US residents only, on a forTourism, cruise or cancellation trip; true keeps the offers that sell it. Defaults to false. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Human-readable reason when the quote could not be generated. Absent on success. | |
| tripInfo | No | Normalized trip parameters the quote was computed with. | |
| cardContext | No | Present only when the quote was computed against a card (cardId argument): the card and its gaps. | |
| subscribeUrl | No | HelloSafe comparator URL for this quote, where the user compares and buys. The widget shows it as a button on each offer. | |
| translations | No | Localized UI strings consumed by the widget — not meant for the assistant. | |
| displayOffers | No | Priced offers sorted by price, with the recommended offer (isBestScore=true) promoted first. | |
| subscriptionId | No | Quote session ID; sent back as `subscriptionId`, it updates this quote instead of creating a new one. | |
| _assistantGuidance | No | Context of the result: what the widget already shows, how offers were ranked, and a summary of the recommended offer. |