TOOL Flight
Flight Search (One Way)
anamaya_flight_search
Search one-way flights via OMS. Quote only prices returned in the tool envelope — never invent fares.
Authorization
Optional MCP gate: Authorization: Bearer <MAYA_ANAMAYA_MCP_API_TOKEN>.
Required OMS identity: pass email and password on the tool call.
MCP caches the OMS JWT server-side and never returns it to the LLM.
Parameters
| Name | Type | Example | Description |
|---|---|---|---|
email Required | string | user@company.com | OMS user email. Required on inventory and mutation tools (unless demo server env defaults are set). |
password Required | string | •••••••• | OMS user password. MCP exchanges this for a JWT and caches it server-side — the JWT is never returned to the LLM. |
body Required | object | — | OMS one-way search body: journey + passengers. depDate is MM-DD-YYYY; passenger counts are strings. |
body.journey.depAirportOrAreaCode Required | string | CGK | Departure airport or area code. |
body.journey.arrAirportOrAreaCode Required | string | DPS | Arrival airport or area code. |
body.journey.depDate Required | string (MM-DD-YYYY) | 09-04-2026 | Departure date in MM-DD-YYYY (OMS contract — not ISO). |
body.journey.seatClass | string | ECONOMY | Cabin class, e.g. ECONOMY. |
body.journey.sortBy | string | ARRIVAL_TIME | Sort key such as ARRIVAL_TIME or LOWEST_PRICE. |
body.passengers.adult Required | string | 1 | Adult count as a string. |
body.passengers.child | string | 0 | Child count as a string. |
body.passengers.infant | string | 0 | Infant count as a string. |
Notes
- depDate format is MM-DD-YYYY.
- Passenger counts must be strings ("1", not 1).
- Round-trip = two separate one-way searches and two attach steps.
- Empty result means no inventory — do not fabricate offers.