Get charter option
get_charter_optionReturns details and the booking link for one option from search_charter. Booking happens on mirai.flights or in the Mirai app.
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": {
"task_id": "<task_id>",
"suggestion_id": "<suggestion_id>",
"company_id": "<company_id>"
},
"name": "get_charter_option"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | task_id from search_charter | |
| currency | No | currency the user asked for; default EUR, follow-ups keep the search currency | |
| language | No | response language; defaults to the client's Accept-Language, then en | |
| company_id | Yes | ||
| suggestion_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| legs | Yes | ||
| link | No | booking link for the user | |
| image | No | aircraft type picture URL | |
| price | Yes | ||
| route | No | the searched legs | |
| seats | No | seating as the site words it | |
| photos | No | ||
| task_id | Yes | search this option belongs to | |
| capacity | No | ||
| features | No | ||
| company_id | Yes | ||
| aircraft_type | Yes | ||
| suggestion_id | Yes | ||
| aircraft_class | No | ||
| discount_percent | No | ||
| aircraft_class_id | No | ||
| price_before_discount | No |