# Tumodo MCP tools

> Everything the assistant can do in Tumodo on your behalf: what it reads, what it changes, and where it stops to ask you.

35 tools in the catalog · 21 only read data · 14 in 7 confirmed actions

- Connect page: `https://mcp.tumodo.io/`
- llms.txt for AI agents: `https://mcp.tumodo.io/llms.txt`

## How actions work

Nothing changes without your yes.

1. **The assistant prepares.** It checks rules, documents, and budget, and shows the summary and the price. Nothing is saved at this step.
2. **You confirm.** You reply in the chat that you agree.
3. **The action runs.** Once, and exactly as you saw it. If the price has changed, the assistant asks again.

This is how trip creation, confirm employee profile update, confirm employee document change, confirm employee card change, confirm employee absence change, flight booking, and ticket issuing work. All other tools only read data.

## Common workflows

- **Find and book a flight** — “I need to be in Berlin on Wednesday, back on Friday, with a bag”: `avia_search` → `avia_query_offers` → `avia_get_brands` → `avia_prepare_booking` → *your yes* → `avia_confirm_booking`
- **Set up a business trip** — “Prepare a trip to Berlin for me and Smith”: `trip_prepare` → `employee_search` → `trip_search_field_values` → *your yes* → `trip_confirm`
- **Issue a ticket for a booking** — “Which bookings have deadlines coming up? Issue the Berlin ticket”: `desktop_summary` → `trip_get` → `avia_prepare_issue` → *your yes* → `avia_confirm_issue`
- **Review a trip and its expenses** — “What is the refund penalty, and where is my advance report?”: `trip_list` → `trip_get` → `trip_service_get` → `advance_report_get`

## Profile & companies

Your profile, role, companies, active company switch, travel policies, and daily allowances.

On the consent screen: Read.

### Profile & role — `context_get`

Shows your profile, company, role, and what you are allowed to do.

- Ask in the chat: Who am I in Tumodo and what can I do here?
- Access: `mcp:read` · Read-only · Safe to repeat
- In your app: direct
- Parameters: none
- Call examples:
  - Verify caller context at conversation start: `{}`

### Active company — `company_select`

Lists your companies and switches the active one for this chat.

- Ask in the chat: Switch to Alpha Logistics.
- Note: The switch applies to this chat only.
- Access: `mcp:read` · Read-only · Safe to repeat
- In your app: direct
- Parameters:
  - `company_id` (integer): Target company identifier (`>= 1`) to set as active in this dialog. Pass only a `company_id` explicitly provided by the user or returned by `context_get` or `company_select` in this conversation; never guess or reuse IDs from other conversations.
  - `query` (string): Substring query (`3..=120` chars, excluding bare legal forms) to filter or search companies.
- Call examples:
  - Search accessible companies by name: `{"query": "Alpha"}`
  - Switch active dialog company by ID: `{"company_id": 10}`

### Travel policy & allowances — `policy_get`

Shows which travel policies and daily allowances apply to you or to your employee.

- Ask in the chat: What is my flight limit, and what is the daily allowance in Berlin?
- Access: `mcp:read` · Read-only · Safe to repeat
- In your app: via `tool_read`
- Parameters:
  - `company_id` (integer): Target company identifier (`>= 1`) overriding the active dialog company for this lookup. Pass only a `company_id` explicitly provided by the user or returned by `context_get` or `company_select` in this conversation; never guess or reuse IDs from other conversations.
  - `include_custom_rules` (boolean): Include corporate custom text travel policy rules (`custom_rules`), default `true`.
  - `include_daily_allowances` (boolean): Include corporate daily allowance rates (`daily_allowances`), default `true`.
  - `policies_offset` (integer): Zero-based pagination offset across loaded policies when a catalog exceeds 10 policies (default `0`). Pass `next_policies_offset` when `policies_has_more=true`.
  - `rule_query` (string): Optional case-insensitive filter (`1..=80` chars) matching policy rule codes/settings, daily allowances or excepted countries, custom rules, and taxi country overrides when output is truncated or a focused lookup is needed.
  - `rules_limit` (integer): Maximum number of rules returned per policy per page (`1..=50`, default `20`).
  - `rules_offset` (integer): Zero-based pagination offset into each policy's filtered rules list (default `0`). Pass the returned `next_rules_offset` when rules are truncated.
  - `scope` (enum): Scope of lookup: `effective` (default) returns ONLY the active travel policies and applicable daily allowances resolved for the current employee (or permitted `user_id`) via profile -> primary department -> company default; `company_catalog` (coordinators/managers only, cannot be combined with `user_id`) returns all travel policies and daily allowances configured in the active company. — `effective`, `company_catalog`
  - `service_type` (enum): Optional service category filter (`all`, `avia`, `hotel`, `train`, `rail`, `taxi`, `transfer`, `vip_hall`, `car_rental`, `aeroexpress`, or `bus`, default `all`). — `all`, `avia`, `hotel`, `train`, `rail`, `taxi`, `transfer`, `vip_hall`, `car_rental`, `aeroexpress`, `bus`
  - `user_id` (integer): Target employee user identifier (`>= 1`) to inspect effective policies for a specific traveler (regular employees may only inspect themselves; coordinators may inspect permitted colleagues). Pass only a `user_id` explicitly provided by the user or returned by `context_get` or `employee_search` in this conversation; never guess or reuse IDs from other conversations.
  - `values_offset` (integer): Zero-based pagination offset into long city/region/country lists inside rule settings such as `regionIdRL` or `countryCodeRL` (page size `25`, default `0`). Pass the returned `next_values_offset` when `list_values_has_more=true`.
- Call examples:
  - Read effective flight travel policy for current user: `{"scope": "effective", "service_type": "avia"}`
  - Search colleague hotel rules and per diem for Moscow: `{"scope": "effective", "user_id": 20011, "service_type": "hotel", "rule_query": "Moscow", "include_daily_allowances": true, "include_custom_rules": true}`
  - List company-wide policy catalog (coordinators only): `{"scope": "company_catalog", "policies_offset": 0, "rules_limit": 20}`

**Guide for the model**

```text
Reads active corporate travel policies, taxi restrictions, custom text guidelines, and daily allowance (per diem) rates.
Workflow:
1. Default `scope = "effective"` returns ONLY the active travel policies and applicable daily allowances resolved for the current employee (or a permitted colleague via `user_id`) following `profile -> primary department -> company default`.
2. Pass `scope = "company_catalog"` ONLY when explicitly asked to list all policies configured across the active company (coordinators/managers only; cannot be combined with `user_id`).
3. Narrow large policies before paginating: use `service_type` (`avia`, `hotel`, `train`, `rail`, `taxi`, `transfer`, `vip_hall`, `car_rental`, `aeroexpress`, `bus`) and `rule_query` (case-insensitive substring match across rule codes, city/region/country caps, daily allowances, custom text rules, and taxi country overrides).
4. Pagination: check `policies_has_more` (`policies_offset`), rules truncation (`rules_offset`, `rules_limit` 1..=50), and long list values (`values_offset`). Never claim a truncated rule list is complete.
5. Reporting requirement: always state the target employee, primary department, exact policy names, violation modes, and assignment source (profile, primary department, or company default).
```

## Trips

View trips, services, approvals, and advance reports, prepare and save trips after your confirmation.

On the consent screen: Read or Actions.

### Trip list — `trip_list`

Finds trips by date, traveler, booking reference, or ticket number.

- Ask in the chat: Which trips do I have planned this month?
- Access: `mcp:read` · Read-only · Safe to repeat
- In your app: direct
- Parameters:
  - `advance_report_not_submitted` (boolean): Return only trips with an unsubmitted advance report (available when `context_get` reports `enable_filter_ao_completed=true`).
  - `analytic_id` (integer): Corporate analytic category identifier (`>= 1`) from `trip_search_field_values`. Must be paired with `analytic_value` in a concrete company; never guess IDs or reuse IDs from other conversations.
  - `analytic_value` (string): Analytic value substring (`2..=120` chars, at least 2 non-quote chars). Must be paired with `analytic_id`.
  - `approval_filter` (enum): Filter by order approval progress (`in_progress` or `required`). — `in_progress`, `required`
  - `author_id` (integer): Trip author user identifier (`>= 1`). Pass only an `author_id` returned by `context_get`, `employee_search`, or another tool in this conversation; never guess or fabricate IDs.
  - `booking_ref` (string): Booking reference / PNR substring (`2..=40` chars, automatically uppercased).
  - `city_id` (integer): Destination city identifier (`>= 1`) from `trip_search_field_values`. Pass only a `city_id` returned by `trip_search_field_values`, `context_get`, or another tool in this conversation; never guess or reuse IDs from other conversations.
  - `company_id` (integer): Target company identifier (`>= 1`) overriding dialog active company for this lookup. Pass only a `company_id` explicitly provided by the user or returned by `context_get` or `company_select` in this conversation; never guess or reuse IDs from other conversations.
  - `company_name` (string): Substring query (`2..=120` chars) matching company name (useful in holding overview).
  - `created_date_from` (string): Filter trips created from calendar date (`YYYY-MM-DD`); includes empty drafts.
  - `created_date_to` (string): Filter trips created up to calendar date (`YYYY-MM-DD`); includes empty drafts.
  - `cursor_before_order_id` (integer): Cursor pagination marker: return orders strictly older than this `order_id` (`>= 1`). Pass only the exact cursor returned by the preceding `trip_list` call in this conversation; never fabricate or reuse cursors across conversations.
  - `exclude_drafts` (boolean): Exclude draft-only orders.
  - `flight_number` (string): Flight number substring (`2..=20` chars, e.g. `SU100`); hides empty drafts.
  - `limit` (integer): Maximum number of trips to return (`1..=15`, default `15`).
  - `only_my` (boolean): Return only trips created or participated in by the current user. Set true when the caller asks specifically for their own trips (especially for coordinators and managers who otherwise see all company or holding trips).
  - `order_id` (integer): Exact trip order identifier (`>= 1`). Pass only an `order_id` explicitly provided by the user or returned by a tool in this conversation; never guess or reuse IDs from other conversations.
  - `passenger_name` (string): Passenger full-name substring (`2..=120` chars, at least 2 non-whitespace chars).
  - `passenger_user_id` (integer): Filter by passenger user identifier (`>= 1`). Pass only a `user_id` returned by `context_get`, `employee_search`, or another tool in this conversation; never guess or fabricate IDs.
  - `query_title` (string): Substring query (`2..=120` chars) matching trip title/description.
  - `segment_departure` (string): Exact flight segment departure calendar date (`YYYY-MM-DD`) for avia services; hides empty drafts.
  - `service_id` (integer): Exact service identifier (`>= 1`) within an order (hides empty drafts). Pass only a `service_id` explicitly provided by the user or returned by a tool in this conversation; never guess or fabricate IDs.
  - `service_status` (enum): Filter by non-zero service status. — `reserved`, `ticketed`, `annulled`, `cancel_requested`, `cancelled`, `issuing`, `manual_check`, `exchanged`, `deleted`, `expired`, `cancelling`, `reserving`, `exchanging`
  - `service_type` (enum): Filter by service category. — `avia`, `hotel`, `transfer`, `train`, `aeroexpress`, `arbitrary`, `tour`, `visa`, `event`, `invitation`, `bus`, `insurance`, `taxi`, `business_travel_pass`, `vip_hall`, `car_rental`, `avia_insurance`
  - `ticket_number` (string): Issued ticket number substring (`3..=40` chars).
  - `trip_date_from` (string): Filter services from departure or check-in date (`YYYY-MM-DD`); hides empty drafts.
  - `trip_date_to` (string): Filter services up to departure or return date (`YYYY-MM-DD`); hides empty drafts.
- Call examples:
  - List caller's non-draft trips: `{"only_my": true, "exclude_drafts": true, "limit": 10}`
  - Find a trip by PNR booking reference: `{"booking_ref": "AB12CD", "service_type": "avia"}`

### Trip details — `trip_get`

Shows the whole trip: budget, approval steps, and services.

- Ask in the chat: Show the details of my next trip.
- Note: Document numbers arrive masked.
- Access: `mcp:read` · Read-only · Safe to repeat
- In your app: direct
- Parameters:
  - `order_id` (integer, required): Trip order identifier (`>= 1`) to inspect. Pass only an `order_id` explicitly provided by the user or returned by `trip_list` in this conversation; never guess or reuse IDs from other conversations.
  - `active_services_only` (boolean): Set `true` when the user asks for active/non-cancelled services only (excludes cancelled, annulled, deleted, expired, and exchanged services).
  - `passenger_name` (string): Case-insensitive substring query (`2..=120` chars) matching passenger full name on each service.
  - `service_status` (enum): Filter services by non-zero booking status. — `reserved`, `ticketed`, `annulled`, `cancel_requested`, `cancelled`, `issuing`, `manual_check`, `exchanged`, `deleted`, `expired`, `cancelling`, `reserving`, `exchanging`
  - `service_type` (enum): Filter services by category (`train` covers both domestic and European rail). — `avia`, `hotel`, `transfer`, `train`, `aeroexpress`, `arbitrary`, `tour`, `visa`, `event`, `invitation`, `bus`, `insurance`, `taxi`, `business_travel_pass`, `vip_hall`, `car_rental`, `avia_insurance`
  - `services_limit` (integer): Maximum number of services to return per page (`1..=50`, default `20`).
  - `services_offset` (integer): Zero-based pagination offset for the filtered service list (default `0`).
- Call examples:
  - Inspect active services in a trip order: `{"order_id": 26695, "active_services_only": true, "services_limit": 20}`

### Service details — `trip_service_get`

Breaks down one service in a trip: what the price is made of, segments, baggage, refund penalties.

- Ask in the chat: How much will I lose if I return the Berlin ticket?
- Access: `mcp:read` · Read-only · Safe to repeat
- In your app: via `tool_read`
- Parameters:
  - `order_id` (integer, required): Trip order identifier (`>= 1`). Pass only an `order_id` explicitly provided by the user or returned by `trip_list` or `trip_get` in this conversation; never guess or reuse IDs from other conversations.
  - `service_ids` (integer[], required): List of 1 to 5 service identifiers (`>= 1` each) within the order to inspect in detail. Pass only exact `service_id` values returned by `trip_get` for this `order_id`; never guess or reuse service IDs from other orders or conversations.
  - `fare_rules_offset_chars` (integer): Zero-based character offset (`0..=128000`) for paginating long post-booking fare rule texts (page size `4000` chars) when `include_fare_rules=true`.
  - `fare_rules_section` (enum): Section of post-booking avia fare rules to return when `include_fare_rules=true`: `penalties` (default), `restrictions`, or `full`. — `penalties`, `restrictions`, `full`
  - `include_fare_rules` (boolean): Fetch post-booking airline fare rules (`avia.tarif`, `serviceId > 0`) for non-arbitrary avia services in `service_ids`. Default `false` to keep normal detail calls fast.
- Call examples:
  - Inspect booked service pricing and post-booking fare rules: `{"order_id": 26695, "service_ids": [8550866], "include_fare_rules": true, "fare_rules_section": "penalties"}`

### What needs attention — `desktop_summary`

Collects what is waiting for you: approvals, bookings with a buyout deadline running out, and cancellation requests.

- Ask in the chat: What awaits my approval, and which bookings have deadlines coming up?
- Access: `mcp:read` · Read-only · Safe to repeat
- In your app: via `tool_read`
- Parameters:
  - `company_id` (integer): Target company identifier (`>= 1`) overriding the active dialog company for this lookup. Pass only a `company_id` explicitly provided by the user or returned by `context_get` or `company_select` in this conversation; never guess or reuse IDs from other conversations.
  - `limit` (integer): Maximum number of items returned per section (`1..=50`, default `15`).
  - `offset` (integer): Zero-based pagination offset into each requested queue (`trip_approvals`, `expense_approvals`, `deadlines`, `cancel_requests`, default `0`). Pass `next_offset` when `has_more=true`.
  - `section` (enum): Operational section to inspect (`all`, `approvals`, `deadlines`, or `cancel_requests`, default `all`). — `all`, `approvals`, `deadlines`, `cancel_requests`
- Call examples:
  - Load all operational queues for today: `{"section": "all", "limit": 15}`

### Advance reports — `advance_report_list`

Finds advance reports: yours and the ones waiting for your approval.

- Ask in the chat: Show my advance reports for November.
- Access: `mcp:read` · Read-only · Safe to repeat
- In your app: via `tool_read`
- Parameters:
  - `author_id` (integer): Report creator user identifier (`>= 1`). Pass only an `author_id` returned by `context_get`, `employee_search`, or another tool in this conversation; never guess or reuse IDs from other conversations.
  - `company_id` (integer): Target company identifier (`>= 1`) overriding the active dialog company for this lookup. Pass only a `company_id` explicitly provided by the user or returned by `context_get` or `company_select` in this conversation; never guess or reuse IDs from other conversations.
  - `created_date_from` (string): Filter reports created from calendar date (`YYYY-MM-DD`).
  - `created_date_to` (string): Filter reports created up to calendar date (`YYYY-MM-DD`).
  - `cursor_from_id` (integer): Cursor pagination marker (`>= 1`) from the preceding `advance_report_list` response. Pass only the exact `next_cursor_from_id` returned in this conversation; never fabricate or reuse cursors across conversations.
  - `limit` (integer): Maximum number of advance reports to return (`1..=15`, default `15`).
  - `needs_approval` (boolean): Return only advance reports currently awaiting the caller's approval.
  - `on_approval` (boolean): Return only advance reports currently in approval workflow.
  - `only_mine` (boolean): Return only advance reports belonging to the current user.
  - `order_date_from` (string): Filter reports by trip/expense period start date (`YYYY-MM-DD`).
  - `order_date_to` (string): Filter reports by trip/expense period end date (`YYYY-MM-DD`).
  - `order_id` (integer): Filter in-trip advance reports by exact business trip order identifier (`>= 1`; `core` excludes standalone without-trip reports when `order_id` is set — use `order_passenger_id` to find a standalone report in the list or pass its `order_id` directly to `advance_report_get`). Pass only an `order_id` explicitly provided by the user or returned by a tool in this conversation; never guess or reuse IDs from other conversations.
  - `order_passenger_id` (integer): Filter by exact advance report passenger record identifier (`>= 1`). Pass only an `order_passenger_id` returned by `advance_report_list` or `desktop_summary` in this conversation; never guess or reuse IDs from other conversations.
  - `passenger_name` (string): Employee full-name substring (`2..=120` chars, at least 2 non-whitespace chars).
  - `query_purpose` (string): Substring query (`2..=120` chars) matching standalone report purpose (`aim`).
  - `query_title` (string): Substring query (`2..=120` chars) matching report title.
  - `report_number` (string): Substring query (`1..=120` chars) matching advance report string number.
  - `user_id` (integer): Filter by employee user identifier (`>= 1`). Pass only a `user_id` explicitly provided by the user or returned by `context_get` or `employee_search` in this conversation; never guess or reuse IDs from other conversations.
- Call examples:
  - List advance reports awaiting approval: `{"needs_approval": true, "limit": 10}`

### Advance report — `advance_report_get`

Shows a report: daily allowances, expenses, receipts, and the balance to pay out or return.

- Ask in the chat: How much am I owed for the Berlin trip?
- Note: Receipts come as a list; the assistant does not get the files.
- Access: `mcp:read` · Read-only · Safe to repeat
- In your app: via `tool_read`
- Parameters:
  - `order_id` (integer, required): Trip or standalone advance report order identifier (`>= 1`). Pass only an `order_id` explicitly provided by the user or returned by `advance_report_list`, `trip_list`, `trip_get`, or `desktop_summary` in this conversation; never guess or reuse IDs from other conversations.
  - `expense_type` (enum): Optional expense row category filter (`all`, `daily`, `prepayment`, or `expenses`, default `all`). Currency totals still reflect all items in the report. — `all`, `daily`, `prepayment`, `expenses`
  - `limit` (integer): Maximum number of expense rows to return per page (`1..=50`, default `30`).
  - `offset` (integer): Zero-based pagination offset for the filtered expense rows (default `0`). Pass `next_expenses_offset` when `expenses_has_more=true`.
  - `receipts_offset` (integer): Zero-based pagination offset for attached receipt metadata (page size `30`, default `0`). Pass `next_receipts_offset` when `receipts_has_more=true`.
  - `user_id` (integer): Optional employee user identifier (`>= 1`) when inspecting a multi-passenger trip's expenses. Pass only a `user_id` explicitly provided by the user or returned by `context_get`, `employee_search`, or `trip_get` in this conversation; never guess or reuse IDs from other conversations.
  - `without_trip` (boolean): Set `true` for standalone advance reports without a trip or `false` for trip expenses; omit to auto-detect.
- Call examples:
  - Read itemized advance report expenses and totals: `{"order_id": 26695, "expense_type": "all", "limit": 30}`

### Trip form lookups — `trip_search_field_values`

Finds values for trip fields: cities, countries, cost centers, payment methods.

- Ask in the chat: Which cost center can this trip go to?
- Note: Payment card numbers arrive masked.
- Access: `mcp:read` · Read-only · Safe to repeat
- In your app: via `tool_read`
- Parameters:
  - `field_kind` (enum, required): Reference dictionary category to search. — `city`, `country`, `analytic`, `organisation`, `transport_payment`, `accommodation_payment`, `weekend_reason`, `payment_card`
  - `analytic_id` (integer): Cost center analytic identifier (`>= 1`, required when `field_kind` is `analytic`). Pass only an `analytic_id` returned by `trip_prepare` in this conversation; never guess IDs.
  - `company_id` (integer): Target company identifier (`>= 1`) overriding the active dialog company. Pass only a `company_id` explicitly provided by the user or returned by `context_get` or `company_select` in this conversation; never guess IDs.
  - `contact_person_id` (integer): Contact person user identifier (`>= 1`, optional when `field_kind` is `payment_card`). Pass only a `user_id` returned by `context_get` or `employee_search` in this conversation; never guess IDs.
  - `limit` (integer): Maximum number of options to return (`1..=25`, default `15`).
  - `query` (string): Search substring (`>= 2` chars required for `city`; optional for other categories, max 120 chars).
- Call examples:
  - Find destination city ID: `{"field_kind": "city", "query": "Kazan", "limit": 10}`
  - Search cost center values for an analytic: `{"field_kind": "analytic", "analytic_id": 12, "query": "Sales", "limit": 15}`

### Trip creation — two steps

Until you confirm step 2, nothing is saved, booked, or charged.

#### Step 1 · pre-check: Trip pre-check — `trip_prepare`

Checks what is missing to create a trip and puts the draft together.

- Ask in the chat: Prepare a business trip to Berlin for next week.
- Note: Saves nothing.
- Access: `mcp:prepare` · Read-only · Safe to repeat
- In your app: via `tool_prepare`
- Parameters:
  - `allow_weekend_booking` (boolean): Allow staying over the nearest weekend before or after the approved trip dates when company pre-approval enables this option.
  - `analytics` (object[]): Cost center / analytic values to set or update on this draft (merged by `analytic_id`).
  - `analytics[].analytic_id` (integer, required): Analytic identifier (`>= 1`). Pass only an `analytic_id` returned by `trip_prepare` in this conversation; never guess or reuse IDs from other conversations.
  - `analytics[].value` (string): String value (`1..=255` chars) for free-text analytics or label of a selected list value.
  - `analytics[].value_id` (integer): Selected list option identifier (`>= 1`) for list-type analytics. Pass only a `value_id` returned by `trip_prepare` or `trip_search_field_values(field_kind="analytic")` in this conversation; never guess IDs.
  - `approval_comment` (string): Optional comment for approvers (`0..=255` chars).
  - `booking_context` (object): Optional context of a selected travel service to find matching pre-approved trips before creating a new one (pass `passenger_user_ids` alongside when the traveler is known).
  - `booking_context.end_date` (string, required): Service end date (`YYYY-MM-DD`).
  - `booking_context.service_type` (string, required): Service type being booked (for example `avia`, `hotel`, or `rail`).
  - `booking_context.start_date` (string, required): Service start date (`YYYY-MM-DD`).
  - `booking_context.city_id` (integer): Optional destination city identifier (`>= 1`). Pass only a `city_id` returned by a tool in this conversation; never guess IDs.
  - `booking_context.force_create_new` (boolean): Set `true` only after the user explicitly declined matching approved trips and wants to create a new trip.
  - `booking_context.price` (number): Optional expected service price (non-negative decimal) for remaining pre-approval budget matching.
  - `company_id` (integer): Target company identifier (`>= 1`) overriding the active dialog company for a new trip. Pass only a `company_id` explicitly provided by the user or returned by `context_get` or `company_select` in this conversation; never guess IDs.
  - `contact_person_id` (integer): Contact person user identifier (`>= 1`) for the trip. Pass only a `user_id` explicitly provided by the user or returned by `context_get` or `employee_search` in this conversation; never guess IDs.
  - `departure_city_id` (integer): Departure city identifier (`>= 1`) when required by company rules. Pass only a `city_id` explicitly provided by the user or returned by `context_get` or `trip_search_field_values(field_kind="city")` in this conversation; never guess IDs.
  - `draft_id` (string): Existing in-memory draft handle from a prior `trip_prepare` response in this conversation. Pass only the exact `draft_id` returned in this conversation; never guess or reuse `draft_id` across conversations.
  - `end_date` (string): Trip end date (`YYYY-MM-DD`) when dates control is required without destination places.
  - `order_id` (integer): Existing trip order identifier (`>= 1`) to edit (omit when creating a new trip). Pass only an `order_id` explicitly provided by the user or returned by `trip_list` or `trip_get` in this conversation; never guess or reuse IDs.
  - `passenger_user_ids` (integer[]): List of passenger user identifiers (`>= 1` each, up to 50). Pass only `user_id` values explicitly provided by the user or returned by `context_get` or `employee_search` in this conversation; never guess or fabricate IDs.
  - `payment_card_id` (integer): Saved payment card identifier (`>= 1`) when `payment_method` is `card`. Pass only a `card_id` returned by `trip_prepare` or `trip_search_field_values(field_kind="payment_card")` in this conversation; never guess IDs.
  - `payment_method` (enum): Trip payment method (`bill`, `card`, `abstract_corporate_card`, or `abstract_personal_card`). — `bill`, `card`, `abstract_corporate_card`, `abstract_personal_card`
  - `places` (object[]): Destination places list (`1..=20` items) when cities control is active (replaces the full `places` list on draft update — pass all destinations when adding another place).
  - `places[].end_date` (string, required): Departure / end date from this destination (`YYYY-MM-DD`).
  - `places[].start_date` (string, required): Arrival / start date in this destination (`YYYY-MM-DD`).
  - `places[].trip_purpose` (string, required): Business purpose of visiting this destination (`1..=255` chars).
  - `places[].accommodation_payment_method` (string): Accommodation payment method option (`1..=255` chars) when required by company form settings.
  - `places[].destination_city_id` (integer): Destination city identifier (`>= 1`, when `type = 0`). Pass only a `city_id` explicitly provided by the user or returned by `trip_search_field_values(field_kind="city")` or `context_get` in this conversation; never guess or reuse IDs from other conversations.
  - `places[].destination_country_id` (integer): Destination country identifier (`>= 1`, required when `type = 1`). Pass only a country ID explicitly provided by the user or returned by `trip_search_field_values(field_kind="country")` in this conversation; never guess IDs.
  - `places[].destination_name` (string): Custom destination name (required when `type = 1`, `1..=255` chars).
  - `places[].destination_organisation` (string): Host organisation name (`1..=255` chars), optional or required per company pre-approval form settings (use `trip_search_field_values` with `field_kind="organisation"` for presets, or pass custom text).
  - `places[].id` (integer): Existing place record identifier (`>= 1`) when editing an existing order; omit for new places. Pass only an ID returned by `trip_prepare` for this order; never guess IDs.
  - `places[].transport_payment_method` (string): Transport payment method option (`1..=255` chars) when required by company form settings.
  - `places[].type` (integer): Location type: `0` for a catalog city (default) or `1` for a custom location name.
  - `start_date` (string): Trip start date (`YYYY-MM-DD`) when dates control is required without destination places.
  - `travel_budget` (number): Requested pre-approval travel budget limit (non-negative decimal in company currency).
  - `trip_name` (string): Trip title or short description (`0..=255` chars).
  - `weekend_works` (object[]): Weekend work records for travelers (`0..=50` items) when company enables weekend work tracking (replaces the full `weekend_works` list on draft update — pass all weekend entries when adding another day).
  - `weekend_works[].compensation` (enum, required): Compensation type (`restDay` or `doublePayment`). — `restDay`, `doublePayment`
  - `weekend_works[].date` (string, required): Weekend work calendar date (`YYYY-MM-DD`).
  - `weekend_works[].reason` (string, required): Justification or reason for weekend work (`1..=255` chars).
  - `weekend_works[].user_id` (integer, required): Passenger user identifier (`>= 1`). Pass only a `user_id` explicitly provided by the user or returned by `context_get` or `employee_search` in this conversation; never guess IDs.
  - `weekend_works[].rest_day` (string): Compensatory day-off date (`YYYY-MM-DD`), required when `compensation` is `restDay`.
- Call examples:
  - Discover required company fields before asking the user: `{}`
  - Prepare a new trip with destination place and cost center: `{"trip_name": "Client workshop", "passenger_user_ids": [20011], "payment_method": "bill", "places": [{"type": 0, "destination_city_id": 49, "start_date": "2026-12-10", "end_date": "2026-12-12", "trip_purpose": "Client meetings"}], "analytics": [{"analytic_id": 12, "value_id": 304}]}`
  - Open an existing trip order for editing without calling trip_get: `{"order_id": 26695, "approval_comment": "Updated travel dates"}`
  - Check matching pre-approved trips before creating a new one: `{"passenger_user_ids": [20011], "booking_context": {"service_type": "avia", "city_id": 49, "start_date": "2026-12-10", "end_date": "2026-12-12", "price": 18500}}`

**Guide for the model**

```text
Server-driven read-only trip draft evaluator (writes nothing to DB).
Workflow:
1. Run `trip_prepare` via `tool_prepare` FIRST with `{}` (or user-provided details) when creating a trip or checking required fields. Required fields depend strictly on company rules — some allow an empty draft. Never ask for route, dates, title, or passengers beforehand.
2. Clarity: separate REQUIRED (`missing_fields`, with inline options or lookups via `employee_search` / `trip_search_field_values`) from OPTIONAL (`optional_fields`, skippable). If an empty draft is `READY`, state nothing is mandatory and offer to save as-is or add optional fields. NEVER guess, fabricate, or prefill missing required values (especially `trip_purpose`, analytics/cost centers, or weekend reasons) — if dates or budget were given without purpose, ask again explicitly instead of inventing placeholders like "Trip from A to B".
3. Refinement: reuse `draft_id` on follow-up calls so fields merge incrementally. `analytics` merge by `analytic_id`, while `places` and `weekend_works` replace the full array — send the complete list when adding items.
4. Edit order: invoke `trip_prepare` via `tool_prepare` with `order_id` directly (skip `trip_get`). Only orders awaiting approval (`status = 1`) cannot be edited.
5. Lookups: use `trip_search_field_values` via `tool_read` (`city`, `country` for `places[].type = 1`, `analytic` + `analytic_id`, `organisation`, `transport_payment`, `accommodation_payment`, `weekend_reason`, `payment_card`) when IDs or presets are needed or requested. `payment_method = card` requires `payment_card_id`.
6. Route & weekends: pass `places` (`type: 0` with `destination_city_id`, or `type: 1` with `destination_name` + `destination_country_id`, plus `start_date`, `end_date`, `trip_purpose`) when cities control is active, or top-level `start_date`/`end_date` for dates-only control. Never claim a departure city is saved unless `departure_city` is in `resolved_draft`. Briefly note multiple places are supported (without nagging). Ask about weekend work ONLY when `weekend_work=true` for actual dates overlapping Sat/Sun (multiple entries: date, reason, `doublePayment` or `restDay` + `rest_day`, or skip) — NEVER claim weekend overlap before dates exist or for weekdays only.
7. Pre-approved orders: when booking a service, pass `booking_context` + `passenger_user_ids`. If `CHOOSE_APPROVED_ORDER_OR_CREATE`, show matches and set `force_create_new = true` only after user declines.
8. Two-phase save: when `status = READY`, before confirming: (a) present the exact resolved summary (company, contact, payment, passengers, actual saved places, dates, budget, purpose, cost centers, approver comment); (b) warn explicitly if saving starts/restarts pre-approval or notifies passengers (`starts_pre_approval` / `restarts_pre_approval` / `sends_passenger_notifications`); (c) ALWAYS list all remaining `optional_fields` concisely (title, host organisation, "stay over weekends" toggle unlocking tickets on nearest weekends before/after approved dates, approver comment, optional cost centers, plus extra `payment_options` if >1), offering preset lookups or saving as-is. Wait for explicit approval in a separate turn before calling `trip_confirm` via `tool_confirm` — never call it in the same turn as `trip_prepare`.
```

#### Step 2 · action: Trip creation — `trip_confirm`

Creates or updates the trip from the prepared draft after you say yes.

- Ask in the chat: Yes, create it.
- Note: If your company requires pre-approval, approvers get a notification.
- Access: `mcp:prepare` · Changes data · Safe to repeat
- In your app: via `tool_confirm`
- Parameters:
  - `quote_token` (string, required): One-time confirmation quote token returned by `trip_prepare` when `status=READY`. Pass only the exact `quote_token` returned in this conversation after the user explicitly confirmed the summary; never guess or reuse tokens across conversations.
- Call examples:
  - Save prepared trip after explicit user confirmation: `{"quote_token": "QT_0001"}`

## Colleagues & departments

View colleagues and departments, and update employee profile, documents, loyalty/personal rail cards, absences, and structural analytics after your confirmation.

On the consent screen: Read or Actions.

### Colleague & guest search — `employee_search`

Finds colleagues and guests by name, email, or login so they can be added to a trip.

- Ask in the chat: Find a colleague named Smith in my company.
- Note: The assistant does not see phone numbers, emails, or birth dates, only whether they are filled in. Documents arrive masked.
- Access: `mcp:read` · Read-only · Safe to repeat
- In your app: via `tool_read`
- Parameters:
  - `company_id` (integer): Target company identifier (`>= 1`) overriding dialog active company for this lookup. Pass only a `company_id` explicitly provided by the user or returned by `context_get` or `company_select` in this conversation; never guess or reuse IDs from other conversations.
  - `department_id` (integer): Optional department or group identifier (`>= 1`) within the company. Pass only a `department_id` explicitly provided by the user or returned in this conversation; never guess or reuse IDs from other conversations.
  - `limit` (integer): Maximum number of active employees to return (`1..=20`, default `10`).
  - `query` (string): Search query (`0..=120` chars) matching full name (Cyrillic or Latin), email, or login (employee tab numbers are not supported). Omit to list accessible employees up to `limit`.
- Call examples:
  - Find colleague by full name: `{"query": "Ivanov", "limit": 10}`

### Employee profile — `employee_get`

Shows an employee profile: departments, settings, masked travel documents, loyalty and rail discount cards, absence periods, and structural analytics.

- Ask in the chat: Show my profile, document expiry status, loyalty cards, and absence periods.
- Note: Main/additional phones and emails, documents, loyalty cards, and personal rail card codes arrive masked; raw contacts, login, and birth date are omitted.
- Access: `mcp:read` · Read-only · Safe to repeat
- In your app: via `tool_read`
- Parameters:
  - `absences_limit` (integer): Maximum number of absence periods to return per page (`1..=50`, default `20`).
  - `absences_offset` (integer): Zero-based pagination offset for the absence periods section (default `0`).
  - `bonus_cards_limit` (integer): Maximum number of loyalty cards to return per page (`1..=50`, default `20`).
  - `bonus_cards_offset` (integer): Zero-based pagination offset for the loyalty cards section (default `0`).
  - `company_id` (integer): Target company identifier (`>= 1`) overriding the dialog active company for this lookup. Pass only a `company_id` explicitly provided by the user or returned by `context_get` or `company_select` in this conversation; never guess or reuse IDs from other conversations.
  - `documents_limit` (integer): Maximum number of documents to return per page (`1..=50`, default `20`).
  - `documents_offset` (integer): Zero-based pagination offset for the documents section (default `0`).
  - `rail_discounts_limit` (integer): Maximum number of rail discount cards to return per page (`1..=50`, default `20`).
  - `rail_discounts_offset` (integer): Zero-based pagination offset for the European rail discount cards section (default `0`).
  - `sections` (enum[]): Sections to load (default `["all"]`). Specify a subset such as `["summary", "documents"]` or `["absences"]` to inspect only specific parts of the profile. — `all`, `summary`, `documents`, `bonus_cards`, `rail_discounts`, `absences`, `analytics`
  - `user_id` (integer): Target employee identifier (`>= 1`). Omit to inspect the caller's own profile. Pass only a `user_id` explicitly provided by the user or returned by `context_get`, `employee_search`, `department_list`, or `department_get` in this conversation; never guess or reuse IDs from other conversations.
- Call examples:
  - Inspect caller's own full profile: `{}`
  - Inspect colleague documents and absences only: `{"user_id": 20015, "sections": ["summary", "documents", "absences"]}`

### Company departments — `department_list`

Lists departments in the active company together with their heads and member counts.

- Ask in the chat: Which departments exist in my company and who leads them?
- Access: `mcp:read` · Read-only · Safe to repeat
- In your app: via `tool_read`
- Parameters:
  - `company_id` (integer): Target company identifier (`>= 1`) overriding the dialog active company for this lookup. Pass only a `company_id` explicitly provided by the user or returned by `context_get` or `company_select` in this conversation; never guess or reuse IDs from other conversations.
  - `limit` (integer): Maximum number of departments to return per page (`1..=50`, default `25`).
  - `offset` (integer): Zero-based pagination offset for the department list (default `0`).
  - `query` (string): Optional case-insensitive search substring (`0..=120` chars) matching department name or department head name.
- Call examples:
  - List departments in active company: `{"limit": 25}`

### Department details — `department_get`

Shows a department's head and paginated member list with filtering by name or job title.

- Ask in the chat: Who works in the Sales department and who leads it?
- Note: Regular employees can only view their own department; contact details and birth dates are never exposed.
- Access: `mcp:read` · Read-only · Safe to repeat
- In your app: via `tool_read`
- Parameters:
  - `department_id` (integer, required): Department identifier (`>= 1`) to inspect. Pass only a `department_id` explicitly provided by the user or returned by `department_list`, `employee_get`, or `employee_search` in this conversation; never guess or reuse IDs from other conversations.
  - `company_id` (integer): Target company identifier (`>= 1`) overriding the dialog active company for this lookup. Pass only a `company_id` explicitly provided by the user or returned by `context_get` or `company_select` in this conversation; never guess or reuse IDs from other conversations.
  - `include_inactive` (boolean): Set `true` to include inactive, expired, or locked members alongside active department members (default `false`).
  - `member_search` (string): Optional case-insensitive substring (`0..=120` chars) filtering department members by full name or job title.
  - `members_limit` (integer): Maximum number of members to return per page (`1..=50`, default `25`).
  - `members_offset` (integer): Zero-based pagination offset for the filtered member list (default `0`).
- Call examples:
  - Inspect department head and active members: `{"department_id": 21, "members_limit": 25}`

### Confirm employee profile update — two steps

Until you confirm step 2, nothing is saved, booked, or charged.

#### Step 1 · pre-check: Employee profile pre-check — `employee_profile_prepare`

Validates permissions, name/birth-date rules, country phone masks, and directories, then returns a diff (masked current values, normalized proposed values for review) without saving.

- Ask in the chat: Prepare updating my job title to Senior Analyst and home city to Berlin.
- Note: Saves nothing; warns if changing phone or email will reset 2FA and enforces the hide_employee_pii restriction.
- Access: `mcp:prepare` · Read-only · Safe to repeat
- In your app: via `tool_prepare`
- Parameters:
  - `analytics` (object[]): Optional structural analytics updates (`1..=50` entries) applied via `user.setAnalyticMass`. Requires editor permission (`user_can_edit=1`), non-agency company, and non-private mode; allowed alone even when `hide_employee_pii` is enabled.
  - `analytics[].analytic_id` (integer, required): Structural analytic identifier (`>= 1`) belonging to the target employee's active company. Pass only an `analytic_id` returned by `employee_get` in this conversation; never guess or reuse IDs across conversations.
  - `analytics[].value` (string): New value for the analytic (`null`, `""`, or `"#noanalitic#"` clears an optional analytic; required analytics cannot be cleared; list analytics must match an allowed option).
  - `company_id` (integer): Target company identifier (`>= 1`) overriding the dialog active company for this edit. Pass only a `company_id` explicitly provided by the user or returned by `context_get` or `company_select` in this conversation; never guess or reuse IDs across conversations.
  - `phone_update` (object): Optional primary phone update applied via `user.setUserPhone` with duplicate-phone detection (`PHONE_DUPLICATE`). Blocked when `hide_employee_pii` is enabled.
  - `phone_update.phone_number` (string, required): Full phone number including country code (for example `+79990001122`, `7..=15` digits).
  - `phone_update.allow_duplicate_phone` (boolean): Set `true` only after the user explicitly confirmed overriding a `PHONE_DUPLICATE` conflict returned by `employee_profile_confirm`.
  - `phone_update.country` (string): Optional phone country ISO-2 code, name, or directory ID (inferred from calling code or profile if omitted).
  - `profile_patch` (object): Optional personal, contact, and profile field updates applied via `user.setUser` (`read-merge-write`). Blocked when `hide_employee_pii` is enabled.
  - `profile_patch.additional_email` (string): Additional contact email (`""` marks existing additional email for deletion).
  - `profile_patch.additional_phone` (string): Additional contact phone number (`""` marks existing additional phone for deletion).
  - `profile_patch.additional_phone_country` (string): Optional phone country ISO-2 code, name, or ID for `additional_phone`.
  - `profile_patch.base_country` (string): Base country for multi-currency expenses (ISO-2 code, name, or ID; allowed only when company multi-currency expenses are enabled).
  - `profile_patch.base_currency` (string): Base currency for multi-currency expenses (ISO-3 code such as `RUB`, `AED`, `USD`, or currency ID; allowed only when company multi-currency expenses are enabled).
  - `profile_patch.birth_date` (string): Date of birth in `YYYY-MM-DD` format (`1900-01-01` through today).
  - `profile_patch.citizenship_country` (string): Citizenship country ISO-2 code, country name, or directory ID resolved via `info.getCountryList`.
  - `profile_patch.clear_home_city` (boolean): Set `true` to clear the employee's home departure city (`userHomeCityId = 0`); cannot be combined with `home_city` or `home_city_id`.
  - `profile_patch.email` (string): Primary contact email address (`""` clears email). Changing email resets email-based 2FA if enabled.
  - `profile_patch.first_name` (string): Employee first name (`1..=100` chars, letters, spaces, and hyphens only; no digits; no leading/trailing hyphen).
  - `profile_patch.first_name_lat` (string): Latin first name (`1..=100` ASCII Latin letters, spaces, and hyphens; allowed only on Russian point of sale or when translit override is enabled).
  - `profile_patch.home_city` (string): Home departure city name query (`2..=120` chars) resolved via `hotelmulti.fastSearch` (`city`/`City`).
  - `profile_patch.home_city_id` (integer): Exact home city `place_id` (`>= 1`) returned by a prior `employee_profile_prepare` clarification response or `employee_get`. Pass only a `home_city_id` returned in this conversation; never guess or reuse IDs across conversations.
  - `profile_patch.last_name` (string): Employee last name (`1..=100` chars, letters, spaces, and hyphens only; no digits; single `-` allowed).
  - `profile_patch.last_name_lat` (string): Latin last name (`1..=100` ASCII Latin letters, spaces, and hyphens; allowed only on Russian point of sale or when translit override is enabled).
  - `profile_patch.main_phone` (string): Primary phone number updated directly via `user.setUser` (`""` clears; do not combine with `phone_update`). Changing phone resets SMS/phone 2FA if enabled.
  - `profile_patch.main_phone_country` (string): Optional phone country ISO-2 code, name, or ID for `main_phone`.
  - `profile_patch.middle_name` (string): Employee middle name (`0..=100` chars; pass empty string `""` to clear; no digits).
  - `profile_patch.personnel_number` (string): Employee personnel / payroll number (`0..=255` chars; `""` clears; blocked when hidden by company policy).
  - `profile_patch.position` (string): Job title / position (`0..=255` chars; `""` clears).
  - `profile_patch.sex` (enum): Employee gender (`M` or `F`). — `M`, `F`
  - `user_id` (integer): Target employee identifier (`>= 1`; omit to edit the caller's own profile). Pass only a `user_id` explicitly provided by the user or returned by `context_get`, `employee_search`, `employee_get`, or `department_get` in this conversation; never guess or reuse IDs across conversations.
- Call examples:
  - Prepare updating caller's own job title and home city: `{"profile_patch": {"position": "Senior Analyst", "home_city": "Moscow"}}`
  - Prepare duplicate-checked phone update for colleague: `{"user_id": 20015, "phone_update": {"phone_number": "+79990001122", "country": "RU"}}`
  - Prepare updating structural analytics (editor only): `{"user_id": 20015, "analytics": [{"analytic_id": 701, "value": "CC-4100"}]}`

**Guide for the model**

```text
1. Two-phase profile update (`employee_profile_prepare` -> user review -> `employee_profile_confirm`): `employee_profile_prepare` is strictly read-only, validates permissions, `UserRuleList` name/birth-date rules, country phone masks, company settings (`company_hide_personnel_number`, `company_is_multi_currency_expenses`), live directories (countries, currencies, home cities, structural analytics), and returns a diff (masked existing values, normalized proposed values for review) with 2FA reset warnings and a one-time `quote_token`.
2. `hide_employee_pii` gate: when enabled, `profile_patch` and `phone_update` are blocked with `POLICY_DENIED`, while authorized editors (`user_can_edit=1`, non-agency, non-private) may still update structural `analytics` alone without reading or exposing PII.
3. Phone duplicates & 2FA: use `phone_update` for duplicate-checked main phone updates (`allow_duplicate_phone=false` by default). If `employee_profile_confirm` returns `status=phone_duplicate_conflict`, zero writes occurred; ask the user explicitly before re-preparing with `allow_duplicate_phone=true`. Always highlight 2FA reset warnings before confirmation.
4. Excluded scope: personal UI settings (locale/currency/timezone), `user_mark_to_delete` (lock/unlock), login/password/SSO, roles, departments, and travel policies are preserved unchanged and cannot be edited by this tool.
```

#### Step 2 · action: Confirm employee profile update — `employee_profile_confirm`

Saves the prepared profile, phone, and structural analytics changes after your explicit confirmation.

- Ask in the chat: Yes, save these profile changes.
- Note: Re-checks the live portal profile for concurrent edits and aborts cleanly on a duplicate phone before writing anything.
- Access: `mcp:confirm` · Changes data · Safe to repeat
- In your app: via `tool_confirm`
- Parameters:
  - `quote_token` (string, required): One-time confirmation token returned by `employee_profile_prepare` in this conversation. Pass only the exact `quote_token` returned after the user explicitly confirmed the prepared diff; never guess or reuse tokens across conversations.
  - `target_user_id` (integer, required): Exact target employee `user_id` (`>= 1`) quoted by `employee_profile_prepare`, echoed for explicit confirmation. Pass only the exact `target_user_id` returned by `employee_profile_prepare` in this conversation; never guess or reuse IDs across conversations.
- Call examples:
  - Confirm prepared employee profile update: `{"quote_token": "qt_example_token", "target_user_id": 20015}`

**Guide for the model**

```text
1. Two-phase profile update (`employee_profile_prepare` -> user review -> `employee_profile_confirm`): `employee_profile_prepare` is strictly read-only, validates permissions, `UserRuleList` name/birth-date rules, country phone masks, company settings (`company_hide_personnel_number`, `company_is_multi_currency_expenses`), live directories (countries, currencies, home cities, structural analytics), and returns a diff (masked existing values, normalized proposed values for review) with 2FA reset warnings and a one-time `quote_token`.
2. `hide_employee_pii` gate: when enabled, `profile_patch` and `phone_update` are blocked with `POLICY_DENIED`, while authorized editors (`user_can_edit=1`, non-agency, non-private) may still update structural `analytics` alone without reading or exposing PII.
3. Phone duplicates & 2FA: use `phone_update` for duplicate-checked main phone updates (`allow_duplicate_phone=false` by default). If `employee_profile_confirm` returns `status=phone_duplicate_conflict`, zero writes occurred; ask the user explicitly before re-preparing with `allow_duplicate_phone=true`. Always highlight 2FA reset warnings before confirmation.
4. Excluded scope: personal UI settings (locale/currency/timezone), `user_mark_to_delete` (lock/unlock), login/password/SSO, roles, departments, and travel policies are preserved unchanged and cannot be edited by this tool.
```

### Confirm employee document change — two steps

Until you confirm step 2, nothing is saved, booked, or charged.

#### Step 1 · pre-check: Employee document pre-check — `employee_document_prepare`

Validates permissions, document number masks, expiry dates, age thresholds, and IIN for creating, updating, or deleting an employee document without saving.

- Ask in the chat: Prepare adding my foreign passport AB1234567 expiring on 2031-06-15.
- Note: Saves nothing; masks existing values, shows normalized proposed number and IIN for review, and is blocked when hide_employee_pii is enabled.
- Access: `mcp:prepare` · Read-only · Safe to repeat
- In your app: via `tool_prepare`
- Parameters:
  - `action` (enum, required): Document mutation action (`create`, `update`, or `delete`). — `create`, `update`, `delete`
  - `company_id` (integer): Target company identifier (`>= 1`) overriding the dialog active company for this edit. Pass only a `company_id` explicitly provided by the user or returned by `context_get` or `company_select` in this conversation; never guess or reuse IDs across conversations.
  - `document_fields` (object): Document field values for `create` or `update` (omit when `action=delete`).
  - `document_fields.date_of_expiry` (string): Document expiry date in `YYYY-MM-DD` format (required for `Z`, `I`, `KZP`, `KZZ`; ignored for `P`).
  - `document_fields.date_of_issue` (string): Document issue date in `YYYY-MM-DD` format (required for `KZP`; must be strictly earlier than `date_of_expiry`).
  - `document_fields.document_number` (string): Document number matching the type mask (`P`: 10 digits, `Z`: 9 digits, `I`: 2..16 Latin/digits, `KZP`: 9 digits, `KZZ`: 1 letter + 8 digits; required on `create`).
  - `document_fields.document_type` (enum): Document type code (`P`, `Z`, `S`, `I`, `KZP`, `KZZ`; required when `action=create`). — `P`, `Z`, `S`, `I`, `KZP`, `KZZ`
  - `document_fields.first_name` (string): First name as printed in the document (`Z`, `I`, `KZP`, `KZZ`; cleared by core for `P` and `S`).
  - `document_fields.issued_by` (string): Issuing authority text (`0..=255` chars; `""` clears).
  - `document_fields.issuing_country` (string): Issuing country ISO-2 code, country name, or directory ID resolved via `info.getCountryList` (stored by core only for `I` and `S`; ignored for `P`, `Z`, `KZP`, `KZZ`; cannot be cleared once set).
  - `document_fields.last_name` (string): Last name as printed in the document (`Z`, `I`, `KZP`, `KZZ`; cleared by core for `P` and `S`).
  - `document_fields.middle_name` (string): Middle name as printed in the document (`Z`, `I`, `KZP`, `KZZ`; cleared by core for `P` and `S`).
  - `document_fields.resident_number` (string): 12-digit Kazakhstan resident identification number (IIN; required for `KZP` and `KZZ`, optional 0 or 12 digits for `I`).
  - `document_id` (integer): Existing document identifier (`>= 1`; required for `update` and `delete`, omit for `create`). Pass only a `document_id` returned by `employee_get(sections=["documents"])` in this conversation; never guess or reuse IDs across conversations.
  - `user_id` (integer): Target employee identifier (`>= 1`; omit to manage the caller's own documents). Pass only a `user_id` explicitly provided by the user or returned by `context_get`, `employee_search`, `employee_get`, or `department_get` in this conversation; never guess or reuse IDs across conversations.
- Call examples:
  - Prepare adding a Russian international passport: `{"action": "create", "document_fields": {"document_type": "Z", "document_number": "721234567", "date_of_expiry": "2032-05-10", "first_name": "IVAN", "last_name": "PETROV"}}`
  - Prepare soft-deleting an existing employee document: `{"user_id": 20015, "action": "delete", "document_id": 9101}`

**Guide for the model**

```text
1. Two-phase document management (`employee_document_prepare` -> user review -> `employee_document_confirm`): `employee_document_prepare` is strictly read-only, enforces `hide_employee_pii=false` and profile access scope, validates all 6 document types (`P`, `Z`, `S`, `I`, `KZP`, `KZZ` including number masks, expiry/issue dates, age >= 14 for `P` / >= 16 for `KZP`, 12-digit IIN for `KZP`/`KZZ`, max 2 foreign documents `I`), and issues a one-time `quote_token` with a diff (masked existing values, normalized proposed number/IIN for review).
2. Ownership & concurrent-edit safety: `update` and `delete` require a `document_id` belonging to `target_user_id`; `employee_document_confirm` re-reads live documents and aborts with `BUSINESS_CONFLICT` if documents changed on the portal since `prepare`.
```

#### Step 2 · action: Confirm employee document change — `employee_document_confirm`

Creates, updates, or soft-deletes the prepared employee document after your explicit confirmation.

- Ask in the chat: Yes, save this document to the profile.
- Note: Re-checks live employee documents on the portal against concurrent edits before writing.
- Access: `mcp:confirm` · Changes data · Safe to repeat · Cannot be undone
- In your app: via `tool_confirm`
- Parameters:
  - `quote_token` (string, required): One-time confirmation token returned by `employee_document_prepare` in this conversation. Pass only the exact `quote_token` returned after the user explicitly confirmed the preview; never guess or reuse tokens across conversations.
  - `target_user_id` (integer, required): Exact target employee `user_id` (`>= 1`) quoted by `employee_document_prepare`, echoed for explicit confirmation. Pass only the exact `target_user_id` returned by `employee_document_prepare` in this conversation; never guess or reuse IDs across conversations.
- Call examples:
  - Confirm prepared employee document change: `{"quote_token": "qt_doc_example", "target_user_id": 20015}`

**Guide for the model**

```text
1. Two-phase document management (`employee_document_prepare` -> user review -> `employee_document_confirm`): `employee_document_prepare` is strictly read-only, enforces `hide_employee_pii=false` and profile access scope, validates all 6 document types (`P`, `Z`, `S`, `I`, `KZP`, `KZZ` including number masks, expiry/issue dates, age >= 14 for `P` / >= 16 for `KZP`, 12-digit IIN for `KZP`/`KZZ`, max 2 foreign documents `I`), and issues a one-time `quote_token` with a diff (masked existing values, normalized proposed number/IIN for review).
2. Ownership & concurrent-edit safety: `update` and `delete` require a `document_id` belonging to `target_user_id`; `employee_document_confirm` re-reads live documents and aborts with `BUSINESS_CONFLICT` if documents changed on the portal since `prepare`.
```

### Confirm employee card change — two steps

Until you confirm step 2, nothing is saved, booked, or charged.

#### Step 1 · pre-check: Employee card pre-check — `employee_card_prepare`

Validates permissions, carrier directory, card number format, Aeroflot tier, and personal rail discount card rules without saving.

- Ask in the chat: Prepare adding my Aeroflot Bonus loyalty card with Gold tier.
- Note: Manages loyalty cards and personal employee rail discount cards only (company-wide corporate rail discounts are excluded); blocked when hide_employee_pii is enabled.
- Access: `mcp:prepare` · Read-only · Safe to repeat
- In your app: via `tool_prepare`
- Parameters:
  - `action` (enum, required): Card mutation action (`upsert` to add/update or `delete` to soft-delete). — `upsert`, `delete`
  - `card_kind` (enum, required): Card category (`bonus` for airline/RZD-Bonus cards, or `rail_discount` for personal employee rail discount cards only). — `bonus`, `rail_discount`
  - `card_id` (integer): Existing bonus `card_id` or personal rail `assignment_id` (`>= 1`; omit to create on `upsert`, required on `delete`). Pass only a `card_id` returned by `employee_get` in this conversation; never guess or reuse IDs across conversations.
  - `card_payload` (object): Card fields for `action=upsert` (omit when `action=delete`).
  - `card_payload.card_number` (string): Loyalty card number using Latin letters and digits only (`/^[A-Za-z0-9]+$/`, `1..=64` chars; `card_kind=bonus` only).
  - `card_payload.card_number_code` (string): Personal rail card number/code (required when the card requires a code or is a rail loyalty program; exactly 12 digits for `BahnBonus`; `card_kind=rail_discount` only).
  - `card_payload.carrier` (string): Airline IATA code (e.g. `SU`, `S7`, `EK`, `RZHDB`), carrier name, or directory ID resolved via `info.getAirlineList` (`card_kind=bonus` only; required when adding a new bonus card).
  - `card_payload.rail_card_id` (integer): Personal rail discount catalog card identifier (`>= 1`) from `card.getRailDiscountCards('pax', userId)` (`card_kind=rail_discount` only; required when assigning a new personal rail card). Pass only a `rail_card_id` returned in this conversation; never guess or reuse IDs across conversations.
  - `card_payload.tier` (string): Aeroflot (`SU`) loyalty tier (`Basic`, `Basic Plus`, `Basic Pro`, `Silver`, `Gold`, `Platinum`, `Infinite Pro`, `Infinite`; `""` clears; `card_kind=bonus` with `SU` only).
  - `card_payload.validity_from` (string): Optional personal rail card validity start date in `YYYY-MM-DD` format (`""` clears; `card_kind=rail_discount` only).
  - `card_payload.validity_until` (string): Optional personal rail card validity end date in `YYYY-MM-DD` format (`""` clears; `card_kind=rail_discount` only).
  - `company_id` (integer): Target company identifier (`>= 1`) overriding the dialog active company for this edit. Pass only a `company_id` explicitly provided by the user or returned by `context_get` or `company_select` in this conversation; never guess or reuse IDs across conversations.
  - `user_id` (integer): Target employee identifier (`>= 1`; omit to manage the caller's own cards). Pass only a `user_id` explicitly provided by the user or returned by `context_get`, `employee_search`, `employee_get`, or `department_get` in this conversation; never guess or reuse IDs across conversations.
- Call examples:
  - Prepare adding an Aeroflot loyalty card with tier: `{"card_kind": "bonus", "action": "upsert", "card_payload": {"carrier": "SU", "card_number": "123456789", "tier": "Gold"}}`
  - Prepare assigning a personal rail discount card: `{"user_id": 20015, "card_kind": "rail_discount", "action": "upsert", "card_payload": {"rail_card_id": 102, "card_number_code": "708000000001"}}`

**Guide for the model**

```text
1. Two-phase card management (`employee_card_prepare` -> user review -> `employee_card_confirm`): supports `card_kind=bonus` (airline mile cards and RZD-Bonus via `card.setCards`) and `card_kind=rail_discount` (STRICTLY personal employee rail discount/loyalty assignments `user_id > 0` via `card.setRailDiscounts`; company-wide corporate rail discounts are excluded).
2. Rules & gates: both kinds require `hide_employee_pii=false`. `bonus` validates carrier via `info.getAirlineList`, alphanumeric number, Aeroflot (`SU`) loyalty tier (`Basic`..`Infinite`), mile-card policy flags (`company_can_use_mile_cards` / `user_can_use_mile_cards` / MainCoordinator+), and catches duplicates during `prepare`. `rail_discount` requires `user_can_edit=1` and `rail_discounts_available=true`, validates `rail_card_id` against `pax` catalog and 12-digit `BahnBonus` code.
```

#### Step 2 · action: Confirm employee card change — `employee_card_confirm`

Adds, updates, or deletes the prepared loyalty or personal rail discount card after your explicit confirmation.

- Ask in the chat: Yes, save this loyalty card.
- Note: Re-checks live employee cards before writing and preserves card details during soft deletion.
- Access: `mcp:confirm` · Changes data · Safe to repeat · Cannot be undone
- In your app: via `tool_confirm`
- Parameters:
  - `quote_token` (string, required): One-time confirmation token returned by `employee_card_prepare` in this conversation. Pass only the exact `quote_token` returned after the user explicitly confirmed the preview; never guess or reuse tokens across conversations.
  - `target_user_id` (integer, required): Exact target employee `user_id` (`>= 1`) quoted by `employee_card_prepare`, echoed for explicit confirmation. Pass only the exact `target_user_id` returned by `employee_card_prepare` in this conversation; never guess or reuse IDs across conversations.
- Call examples:
  - Confirm prepared employee card change: `{"quote_token": "qt_card_example", "target_user_id": 20015}`

**Guide for the model**

```text
1. Two-phase card management (`employee_card_prepare` -> user review -> `employee_card_confirm`): supports `card_kind=bonus` (airline mile cards and RZD-Bonus via `card.setCards`) and `card_kind=rail_discount` (STRICTLY personal employee rail discount/loyalty assignments `user_id > 0` via `card.setRailDiscounts`; company-wide corporate rail discounts are excluded).
2. Rules & gates: both kinds require `hide_employee_pii=false`. `bonus` validates carrier via `info.getAirlineList`, alphanumeric number, Aeroflot (`SU`) loyalty tier (`Basic`..`Infinite`), mile-card policy flags (`company_can_use_mile_cards` / `user_can_use_mile_cards` / MainCoordinator+), and catches duplicates during `prepare`. `rail_discount` requires `user_can_edit=1` and `rail_discounts_available=true`, validates `rail_card_id` against `pax` catalog and 12-digit `BahnBonus` code.
```

### Confirm employee absence change — two steps

Until you confirm step 2, nothing is saved, booked, or charged.

#### Step 1 · pre-check: Employee absence pre-check — `employee_absence_prepare`

Validates absence dates, checks for overlaps, and verifies deputy assignment permissions without saving.

- Ask in the chat: Prepare my absence period from 2027-07-01 to 2027-07-14.
- Note: Saves nothing; catches overlapping absence periods upfront and prevents standard employees from assigning deputies.
- Access: `mcp:prepare` · Read-only · Safe to repeat
- In your app: via `tool_prepare`
- Parameters:
  - `action` (enum, required): Absence mutation action (`create`, `update`, or `delete`). — `create`, `update`, `delete`
  - `absence_id` (integer): Existing absence period identifier (`>= 1`; required for `update` and `delete`, omit for `create`). Pass only an `absence_id` returned by `employee_get(sections=["absences"])` in this conversation; never guess or reuse IDs across conversations.
  - `clear_substitute` (boolean): Set `true` to remove the assigned deputy on `update` (not allowed for `Employee` role; cannot be combined with `substitute_user_id`).
  - `company_id` (integer): Target company identifier (`>= 1`) overriding the dialog active company for this edit. Pass only a `company_id` explicitly provided by the user or returned by `context_get` or `company_select` in this conversation; never guess or reuse IDs across conversations.
  - `end_date` (string): Absence end date in `YYYY-MM-DD` format (required on `create`; must be `>= start_date`).
  - `start_date` (string): Absence start date in `YYYY-MM-DD` format (required on `create`; cannot be in the past on `create`).
  - `substitute_user_id` (integer): Active colleague `user_id` (`>= 1`) in the same company acting as deputy during the absence (not allowed for standard `Employee` role; omit to leave unchanged or unassigned). Pass only a `substitute_user_id` returned by `employee_search` or `department_get` in this conversation; never guess or reuse IDs across conversations.
  - `user_id` (integer): Target employee identifier (`>= 1`; omit to manage the caller's own absence periods). Pass only a `user_id` explicitly provided by the user or returned by `context_get`, `employee_search`, `employee_get`, or `department_get` in this conversation; never guess or reuse IDs across conversations.
- Call examples:
  - Prepare creating an absence period: `{"action": "create", "start_date": "2027-07-01", "end_date": "2027-07-14"}`
  - Prepare updating a colleague absence with a deputy: `{"user_id": 20015, "action": "update", "absence_id": 7678, "end_date": "2027-07-20", "substitute_user_id": 20022}`

**Guide for the model**

```text
1. Two-phase absence management (`employee_absence_prepare` -> user review -> `employee_absence_confirm`): strictly read-only pre-check validates clean `YYYY-MM-DD` dates (`start_date <= end_date`), prevents past start dates (`min(today, existing_start)` on update), catches overlaps against all active periods, and validates deputy permissions/company/activity.
2. Deputy rules: standard `Employee` role cannot assign, change, or clear `substitute_user_id`. Editors may assign an active colleague from the same company (not self) or clear via `clear_substitute=true`.
```

#### Step 2 · action: Confirm employee absence change — `employee_absence_confirm`

Creates, updates, or deletes the prepared employee absence period after your explicit confirmation.

- Ask in the chat: Yes, save this absence period.
- Note: Re-checks live portal absences for concurrent edits and sends clean calendar dates without duplicate time suffixes.
- Access: `mcp:confirm` · Changes data · Safe to repeat · Cannot be undone
- In your app: via `tool_confirm`
- Parameters:
  - `quote_token` (string, required): One-time confirmation token returned by `employee_absence_prepare` in this conversation. Pass only the exact `quote_token` returned after the user explicitly confirmed the preview; never guess or reuse tokens across conversations.
  - `target_user_id` (integer, required): Exact target employee `user_id` (`>= 1`) quoted by `employee_absence_prepare`, echoed for explicit confirmation. Pass only the exact `target_user_id` returned by `employee_absence_prepare` in this conversation; never guess or reuse IDs across conversations.
- Call examples:
  - Confirm prepared employee absence change: `{"quote_token": "qt_absence_example", "target_user_id": 20015}`

**Guide for the model**

```text
1. Two-phase absence management (`employee_absence_prepare` -> user review -> `employee_absence_confirm`): strictly read-only pre-check validates clean `YYYY-MM-DD` dates (`start_date <= end_date`), prevents past start dates (`min(today, existing_start)` on update), catches overlaps against all active periods, and validates deputy permissions/company/activity.
2. Deputy rules: standard `Employee` role cannot assign, change, or clear `substitute_user_id`. Editors may assign an active colleague from the same company (not self) or clear via `clear_substitute=true`.
```

## Flights

Search flights, compare fares and add-ons, and book or issue tickets after your confirmation.

On the consent screen: Read or Actions.

### Flight search — `avia_search`

Searches flights by route and dates and checks them against your travel policy right away.

- Ask in the chat: Find direct flights from London to Berlin next Wednesday, returning Friday.
- Access: `mcp:read` · Read-only · Reaches airlines and suppliers
- In your app: via `tool_read`
- Parameters:
  - `segments` (object[], required): Route legs (`1` = one-way, `2` = round-trip or open-jaw, `3..=6` = multi-segment) in chronological order.
  - `segments[].departure_date` (string, required): Departure date in ISO format (`YYYY-MM-DD`, today or later).
  - `segments[].destination` (string, required): Arrival city or airport name (English, Russian, German, Chinese, Arabic) or 3-letter IATA code (e.g. `LED`, `Istanbul`). For other languages, pass IATA code or English name.
  - `segments[].origin` (string, required): Departure city or airport name (English, Russian, German, Chinese, Arabic) or 3-letter IATA code (e.g. `MOW`, `Moscow`). For other languages, pass IATA code or English name.
  - `adults` (integer): Adult passenger count (`1..=7`, default `1`) when searching anonymously without `passenger_user_ids` and without `order_id`.
  - `cabin_class` (enum): Cabin service class (`economy`, `comfort`, `business`, or `first`, default `economy`). — `economy`, `comfort`, `business`, `first`
  - `children` (integer): Child passenger count (`0..=6`, ages 2 to 11) for anonymous search; total `adults + children + infants` must not exceed `7`.
  - `company_id` (integer): Target company identifier (`>= 1`) overriding the active dialog company when `order_id` is omitted. Pass only a `company_id` explicitly provided by the user or returned by `context_get` or `company_select` in this conversation; never guess or reuse IDs from other conversations.
  - `direct_only` (boolean): Set `true` when the user asks for direct/nonstop flights only (shows nonstop offers in the initial top-5 showcase while keeping connecting offers in the snapshot).
  - `infants` (integer): Infant passenger count without seat (`0..=6`, under 2 years) for anonymous search; cannot exceed `adults`.
  - `order_id` (integer): Existing trip order identifier (`>= 1`) to inherit company, passengers, and allowed route radius. Pass only an `order_id` explicitly provided by the user or returned by `trip_list` or `trip_get` in this conversation; never guess or reuse IDs from other conversations.
  - `passenger_user_ids` (integer[]): Employee or guest user identifiers (`1..=7` items, each `>= 1`) for travel policy and passenger age calculation. Required for coordinators when `context_get` reports `allow_anonymous_search=false` and `order_id` is omitted (pass the caller's own `user_id` from `context_get` when searching for the current user, or look up colleagues via `employee_search`). Pass only `user_id` values explicitly provided by the user or returned by `context_get`, `employee_search`, or `trip_get` in this conversation; never guess or fabricate IDs.
- Call examples:
  - Round-trip economy search for a specific traveler: `{"segments": [{"origin": "MOW", "destination": "LED", "departure_date": "2026-12-10"}, {"origin": "LED", "destination": "MOW", "departure_date": "2026-12-12"}], "cabin_class": "economy", "passenger_user_ids": [20011], "direct_only": true}`
  - Multi-segment business search bound to an existing order: `{"segments": [{"origin": "Moscow", "destination": "Dubai", "departure_date": "2026-12-10"}, {"origin": "Dubai", "destination": "Istanbul", "departure_date": "2026-12-13"}, {"origin": "Istanbul", "destination": "Moscow", "departure_date": "2026-12-16"}], "cabin_class": "business", "order_id": 26695}`

**Guide for the model**

```text
Runs live airline search across all stops and carriers and saves a deduplicated snapshot under `search_id` (valid for follow-up queries and options).
Workflow:
1. Route legs (`segments`): 1 leg = one-way, 2 legs = round-trip or open-jaw, 3..=6 legs = multi-segment, strictly chronological (`YYYY-MM-DD`, today or later). Pass city/airport names (English, Russian, German, Chinese, Arabic) or 3-letter IATA codes directly — no separate airport lookup tool is needed.
2. Passengers & strict anonymous-search policy:
   - If `order_id` is provided, company, passengers, and allowed route corridor are inherited from the order.
   - If `order_id` is omitted and `context_get` reports `allow_anonymous_search = false`, coordinators MUST pass `passenger_user_ids` (pass the caller's own `user_id` from `context_get` for self-travel, or look up colleagues with `employee_search` via `tool_read`).
   - Regular employees may search only for themselves (`adults = 1` or their own `user_id`).
   - Anonymous counts (`adults`, `children`, `infants`) apply only when both `order_id` and `passenger_user_ids` are omitted (total <= 7, `infants <= adults`).
3. `direct_only = true`: shows nonstop flights in the initial top-5 showcase while still keeping connecting offers inside the saved snapshot.
4. Follow-up steps: NEVER repeat `avia_search` to filter, sort, or paginate the same route/dates/cabin/passengers — invoke `avia_query_offers` via `tool_read` with `search_id` (zero upstream calls). Use `avia_get_brands`, `avia_get_fare_rules`, `avia_get_seatmap`, and `avia_get_ancillaries` via `tool_read` to inspect individual short codes `F1..Fn`.
```

### Filter & sort — `avia_query_offers`

Narrows down and sorts the flights found: by price, stops, time, baggage, airline.

- Ask in the chat: Keep the ones with checked baggage under 300 EUR and sort by departure time.
- Note: Works on the flights already found and does not start a new search.
- Access: `mcp:read` · Read-only · Safe to repeat
- In your app: via `tool_read`
- Parameters:
  - `search_id` (string, required): Saved flight search snapshot handle from `avia_search` (for example `AS_0001`). Pass only a `search_id` returned by `avia_search` in this conversation; never guess or reuse IDs across conversations.
  - `airlines` (string[]): Inclusive IATA/ICAO carrier codes (`SU`, `S7`, `DP`): every segment of every leg must match one of these carriers.
  - `baggage_included` (boolean): Filter by checked baggage inclusion (`true` = baggage included on all segments, `false` = baggage not included).
  - `exclude_airlines` (string[]): Carrier codes (`DP`, `UT`) to exclude if present as marketing, operating, or validating carrier on any segment.
  - `flight_number` (string): Flight number filter across segments (accepts `"1549"`, `"0015"`, `"SU 1549"`, `"SU1549"`, `"S7 1005"`).
  - `in_policy_only` (boolean): When `true`, keep only offers compliant with corporate travel policy (`in_policy`).
  - `limit` (integer): Maximum offers to return per page (`1..=15`, default `5`).
  - `max_duration_minutes` (integer): Maximum leg duration in minutes (`>= 1`, checked against the longest route leg).
  - `max_price` (number): Maximum display price per offer in display currency (strictly positive decimal).
  - `max_stops` (integer): Maximum stops allowed on any route leg (`0` = nonstop only, up to `3`).
  - `max_transfer_minutes` (integer): Maximum layover duration at any single transfer in minutes (`>= 1`; nonstop offers pass).
  - `no_airport_change` (boolean): When `true`, exclude offers requiring airport change during a transfer.
  - `no_overnight_transfer` (boolean): When `true`, exclude offers with overnight transfers.
  - `offset` (integer): Zero-based pagination offset (default `0`).
  - `outbound_arrival_airports` (string[]): Allowed arrival airport 3-letter IATA codes for leg 1 (outbound).
  - `outbound_arrival_time` (string): Outbound arrival local time window in `HH:MM-HH:MM` 24h format.
  - `outbound_departure_airports` (string[]): Allowed departure airport 3-letter IATA codes for leg 1 (outbound), e.g. `["SVO", "VKO"]`.
  - `outbound_departure_time` (string): Outbound departure local time window in `HH:MM-HH:MM` 24h format (wraps midnight if start > end, e.g. `22:00-05:00`).
  - `refundable` (boolean): Filter by refundability (`true` = free or paid refund allowed, `false` = strictly non-refundable; unknown states excluded when set).
  - `return_arrival_airports` (string[]): Allowed arrival airport IATA codes for leg 2 (return); valid only for round-trip searches.
  - `return_arrival_time` (string): Return arrival local time window (`HH:MM-HH:MM`); valid only for round-trip searches.
  - `return_departure_airports` (string[]): Allowed departure airport IATA codes for leg 2 (return); valid only for round-trip searches.
  - `return_departure_time` (string): Return departure local time window (`HH:MM-HH:MM`); valid only for round-trip searches.
  - `single_ticket_only` (boolean): When `true`, exclude split/merged one-way combinations (`mergeOW`); when `false`, return only merged offers.
  - `sort_by` (enum): Sort criterion (`recommended`, `price`, `duration`, `departure_time`, `arrival_time`; default `recommended`). — `recommended`, `price`, `duration`, `departure_time`, `arrival_time`
  - `sort_order` (enum): Sort direction (`asc` or `desc`; default `asc`). — `asc`, `desc`
  - `transfer_airports` (string[]): Require at least one layover passing through one of these 3-letter IATA transfer airports.
- Call examples:
  - Direct morning flights with baggage sorted by price: `{"search_id": "AS_0001", "max_stops": 0, "baggage_included": true, "outbound_departure_time": "07:00-12:00", "sort_by": "price", "sort_order": "asc", "limit": 5}`
  - Policy-compliant single-ticket offers without overnight transfers: `{"search_id": "AS_0001", "max_price": 45000, "exclude_airlines": ["DP"], "no_overnight_transfer": true, "no_airport_change": true, "refundable": true, "in_policy_only": true, "single_ticket_only": true, "sort_by": "duration", "offset": 0, "limit": 5}`

**Guide for the model**

```text
Instant in-memory filtering, sorting, and pagination over an existing `avia_search` snapshot (`search_id`, 0 upstream calls). Short offer codes `F1..Fn` stay permanently stable across all queries.
Key filter semantics:
- Stops & price: `max_stops = 0` keeps nonstop flights only; `max_price` filters client `display_price`.
- Carriers: `airlines` requires EVERY segment of EVERY leg to match the list; `exclude_airlines` rejects any offer where the carrier appears as marketing, operating, or validating carrier.
- Airports & time windows: `outbound_departure_airports` / `outbound_arrival_airports` filter leg 1; `return_departure_airports` / `return_arrival_airports` and `return_*_time` are valid only for round-trip searches. Time windows use 24h local `HH:MM-HH:MM` and support midnight wrap (e.g. `22:00-05:00`).
- Transfers & comfort: `max_duration_minutes` checks the longest leg; `max_transfer_minutes` checks every layover (nonstop passes); `no_overnight_transfer = true` and `no_airport_change = true` drop inconvenient layovers.
- Fare & policy flags: `baggage_included` requires checked baggage on all segments; `refundable` uses honest 4-state matching (`true` = free/paid refund, `false` = strictly non-refundable, unknown excluded when set); `in_policy_only = true` keeps only compliant offers; `single_ticket_only = true` excludes split `mergeOW` pairs (`false` keeps only `mergeOW`).
- Zero matches rule: if strict filters return 0 offers, report the zero match honestly together with the returned available minimums — never silently drop user filters.
- Pagination: respect `has_more` and advance via `offset` (`limit` 1..=15, default 5).
```

### Fare options — `avia_get_brands`

Compares fares for one flight: baggage, refunds, exchanges, and the price difference.

- Ask in the chat: How do the fares differ for the first option?
- Access: `mcp:read` · Read-only · Safe to repeat · Reaches airlines and suppliers
- In your app: via `tool_read`
- Parameters:
  - `flight_id` (string, required): Short flight offer code from `avia_search` or `avia_query_offers` (for example `F1`). Pass only a `flight_id` returned for this `search_id` in this conversation; never guess or reuse codes across conversations.
  - `search_id` (string, required): Saved flight search snapshot handle from `avia_search` (for example `AS_0001`). Pass only a `search_id` returned by `avia_search` in this conversation; never guess or reuse IDs across conversations.
- Call examples:
  - Compare fare brands for flight F1: `{"search_id": "AS_0001", "flight_id": "F1"}`

### Fare rules — `avia_get_fare_rules`

Shows the airline rules: refund and exchange penalties, restrictions.

- Ask in the chat: Can I return this ticket, and how much would they keep?
- Access: `mcp:read` · Read-only · Safe to repeat · Reaches airlines and suppliers
- In your app: via `tool_read`
- Parameters:
  - `flight_id` (string, required): Short flight offer code from `avia_search` or `avia_query_offers` (for example `F1`). Pass only a `flight_id` returned for this `search_id` in this conversation; never guess or reuse codes across conversations.
  - `search_id` (string, required): Saved flight search snapshot handle from `avia_search` (for example `AS_0001`). Pass only a `search_id` returned by `avia_search` in this conversation; never guess or reuse IDs across conversations.
  - `brand_ids` (string[]): Optional fare brand codes from `avia_get_brands` (for example `["B2"]` for a single ticket, or `["B1_L1", "B2_L2"]` for a merged one-way offer — one code per leg; omit to inspect the base offer fare). Pass only `brand_ids` returned by `avia_get_brands` for this `flight_id` in this conversation; never guess or reuse codes across conversations.
  - `offset_chars` (integer): Zero-based character offset for paginating long fare rule texts (page size `4000` chars, default `0`). Pass `next_offset_chars` when `has_more=true`.
  - `section` (enum): Fare rules section to return (`penalties` default, `restrictions`, or `full`). — `penalties`, `restrictions`, `full`
- Call examples:
  - Read refund and exchange penalties for brand B2: `{"search_id": "AS_0001", "flight_id": "F1", "brand_ids": ["B2"], "section": "penalties", "offset_chars": 0}`

### Seat map — `avia_get_seatmap`

Shows the cabin: free seats, prices, and what your travel policy allows.

- Ask in the chat: Any free window seats near the front?
- Access: `mcp:read` · Read-only · Safe to repeat · Reaches airlines and suppliers
- In your app: via `tool_read`
- Parameters:
  - `flight_id` (string, required): Short flight offer code from `avia_search` or `avia_query_offers` (for example `F1`). Pass only a `flight_id` returned for this `search_id` in this conversation; never guess or reuse codes across conversations.
  - `search_id` (string, required): Saved flight search snapshot handle from `avia_search` (for example `AS_0001`). Pass only a `search_id` returned by `avia_search` in this conversation; never guess or reuse IDs across conversations.
  - `brand_ids` (string[]): Optional fare brand codes from `avia_get_brands` (for example `["B2"]` for a single ticket, or `["B1_L1", "B2_L2"]` for a merged one-way offer — one code per leg). Pass only `brand_ids` returned by `avia_get_brands` for this `flight_id` in this conversation; never guess or reuse codes across conversations.
  - `filter` (enum): Seat filter applied to the returned rows (`all`, `free`, `window`, `aisle`, or `extra_legroom`; default `all`). — `all`, `free`, `window`, `aisle`, `extra_legroom`
  - `order_id` (integer): Optional existing trip order identifier (`>= 1`) used to resolve concrete passengers when the original `avia_search` was anonymous. Pass only an `order_id` explicitly provided by the user or returned by `trip_list` or `trip_get` in this conversation; never guess or reuse IDs from other conversations.
  - `passenger_user_ids` (integer[]): Optional employee or guest user identifiers (`1..=7` items, each `>= 1`) supplying concrete passengers when the original search was anonymous. Pass only `user_id` values explicitly provided by the user or returned by `context_get`, `employee_search`, or `trip_get` in this conversation; never guess or fabricate IDs.
  - `row_from` (integer): First cabin row number to include (inclusive; up to 10 rows returned per call). Pass `next_row_from` when `has_more_rows=true`.
  - `row_to` (integer): Last cabin row number to include (inclusive; clamped to at most 10 rows per call).
  - `segment_index` (integer): 1-based flight segment index across all route legs to inspect (default `1`). Switch using `segments_summary`.
- Call examples:
  - Inspect window seats in rows 1 to 10 of segment 1: `{"search_id": "AS_0001", "flight_id": "F1", "segment_index": 1, "filter": "window", "row_from": 1, "row_to": 10}`

### Baggage & add-ons — `avia_get_ancillaries`

Shows what can be added to a ticket: baggage, meals, Aeroexpress, insurance.

- Ask in the chat: How much is an extra 23 kg bag?
- Access: `mcp:read` · Read-only · Safe to repeat · Reaches airlines and suppliers
- In your app: via `tool_read`
- Parameters:
  - `flight_id` (string, required): Short flight offer code from `avia_search` or `avia_query_offers` (for example `F1`). Pass only a `flight_id` returned for this `search_id` in this conversation; never guess or reuse codes across conversations.
  - `search_id` (string, required): Saved flight search snapshot handle from `avia_search` (for example `AS_0001`). Pass only a `search_id` returned by `avia_search` in this conversation; never guess or reuse IDs across conversations.
  - `brand_ids` (string[]): Optional fare brand codes from `avia_get_brands` (for example `["B2"]` for a single ticket, or `["B1_L1", "B2_L2"]` for a merged one-way offer — one code per leg). Pass only `brand_ids` returned by `avia_get_brands` for this `flight_id` in this conversation; never guess or reuse codes across conversations.
  - `category` (enum): Add-on category filter (`all`, `baggage`, `carry_on`, `meal`, `aeroexpress`, `insurance`, or `other`; default `all`). — `all`, `baggage`, `carry_on`, `meal`, `aeroexpress`, `insurance`, `other`
  - `limit` (integer): Maximum number of add-ons to return per page (`1..=20`, default `10`).
  - `offset` (integer): Zero-based pagination offset into the filtered add-ons list (default `0`). Pass `next_offset` when `has_more=true`.
  - `order_id` (integer): Optional existing trip order identifier (`>= 1`) used to resolve concrete passengers when the original `avia_search` was anonymous. Pass only an `order_id` explicitly provided by the user or returned by `trip_list` or `trip_get` in this conversation; never guess or reuse IDs from other conversations.
  - `passenger_user_ids` (integer[]): Optional employee or guest user identifiers (`1..=7` items, each `>= 1`) supplying concrete passengers when the original search was anonymous. Pass only `user_id` values explicitly provided by the user or returned by `context_get`, `employee_search`, or `trip_get` in this conversation; never guess or fabricate IDs.
- Call examples:
  - List all available flight add-ons in one call: `{"search_id": "AS_0001", "flight_id": "F1", "category": "all", "offset": 0, "limit": 20}`
  - List available baggage add-ons for flight F1: `{"search_id": "AS_0001", "flight_id": "F1", "category": "baggage", "offset": 0, "limit": 10}`

**Guide for the model**

```text
Loads flight add-ons (extra baggage, meals, Moscow Aeroexpress, and flight insurance) for a `flight_id` from an existing `avia_search` snapshot.
Workflow:
1. Default `category: "all"` returns baggage, meals, Aeroexpress, and insurance together in a single call — NEVER make four separate per-category calls when the user asks about all or multiple add-on types.
2. Narrow `category` (`baggage`, `meal`, `aeroexpress`, `insurance`) ONLY when the user specifically asks about one category.
3. Respect pagination (`has_more`, advance `offset` with `limit` 1..=50) and report passenger/segment eligibility limits, VAT disclaimer, and travel policy rules honestly.
```

### Flight booking — two steps

Until you confirm step 2, nothing is saved, booked, or charged.

#### Step 1 · pre-check: Booking pre-check — `avia_prepare_booking`

Checks travelers, documents, travel policy, and budget, and shows the final price.

- Ask in the chat: Book the first option for me.
- Note: Books nothing. Document numbers are shown masked.
- Access: `mcp:prepare` · Read-only · Safe to repeat · Reaches airlines and suppliers
- In your app: via `tool_prepare`
- Parameters:
  - `flight_id` (string, required): Short flight offer code from `avia_search` or `avia_query_offers` (for example `F1`). Pass only a `flight_id` returned for this `search_id` in this conversation; never guess or reuse codes across conversations.
  - `order_id` (integer, required): Existing trip order identifier (`>= 1`) with active passengers to bind this flight booking. Pass only an `order_id` explicitly provided by the user or returned by `trip_list`, `trip_get`, or `trip_confirm` in this conversation; never guess or reuse IDs across conversations.
  - `search_id` (string, required): Saved flight search snapshot handle from `avia_search` (for example `AS_0001`). Pass only a `search_id` returned by `avia_search` in this conversation; never guess or reuse IDs across conversations.
  - `allow_duplicates` (boolean): Set `true` only after the user explicitly confirmed proceeding despite a duplicate-service warning returned by `avia_prepare_booking`.
  - `ancillary_selections` (object[]): Optional flight add-on selections from `avia_get_ancillaries` (`1..=30` entries).
  - `ancillary_selections[].ancillary_id` (string, required): Short add-on handle returned by `avia_get_ancillaries` (for example `A1`, `A1_L1`, or `A2_L2`). Pass only an exact `ancillary_id` returned by `avia_get_ancillaries` for this `search_id` and `flight_id` in this conversation; never guess or reuse codes across conversations.
  - `ancillary_selections[].quantity` (integer): Optional unit quantity (`1..=10`) for Aeroexpress or countable carrier add-ons.
  - `ancillary_selections[].user_ids` (integer[]): Optional subset of passenger user identifiers (`1..=7` items, each `>= 1`) receiving this add-on (defaults to all eligible passengers on the order). Pass only `user_id` values from this trip order in this conversation; never guess or fabricate IDs.
  - `brand_ids` (string[]): Optional fare brand codes from `avia_get_brands` (for example `["B2"]` for a single ticket, or `["B1_L1", "B2_L2"]` for a merged one-way offer — one code per leg; omit for the base offer fare). Pass only `brand_ids` returned by `avia_get_brands` for this `flight_id` in this conversation; never guess or reuse codes across conversations.
  - `document_overrides` (object[]): Optional explicit passenger document overrides (`1..=7` entries) when overriding automatic route document selection.
  - `document_overrides[].document_id` (integer, required): Passenger travel document identifier (`>= 1` to select a document returned by `employee_search`, `context_get`, or `avia_prepare_booking`, or `0` to omit an optional document when `documentIsRequired=false`). Never guess or reuse IDs across conversations.
  - `document_overrides[].user_id` (integer, required): Passenger user identifier (`>= 1`). Pass only a `user_id` belonging to this trip order in this conversation; never guess or fabricate IDs.
  - `seat_selections` (object[]): Optional cabin seat selections from `avia_get_seatmap` (`1..=50` entries).
  - `seat_selections[].seat_id` (string, required): Short seat handle returned by `avia_get_seatmap` (for example `S_1_08A`). Pass only an exact `seat_id` returned by `avia_get_seatmap` for this `search_id` and `flight_id` in this conversation; never guess or reuse codes across conversations.
  - `seat_selections[].user_id` (integer, required): Passenger user identifier (`>= 1`). Pass only a `user_id` from the trip order, `context_get`, `employee_search`, or `avia_get_seatmap` in this conversation; never guess or fabricate IDs.
  - `travel_policy_violation_reason` (string): Justification for booking an out-of-policy flight (`10..=250` raw characters, single line, no HTML) when required by company travel policy; must be provided by the user.
  - `vessel_country` (string): Vessel flag country name or ISO code (`1..=120` chars) required only for seaman (`SEA`) tariffs.
  - `vessel_name` (string): Vessel name (`1..=120` chars) required only for seaman (`SEA`) tariffs.
- Call examples:
  - Pre-check base flight booking for an existing order: `{"search_id": "AS_0001", "flight_id": "F1", "order_id": 26695}`
  - Pre-check booking with fare brand, seat, add-on, and policy justification: `{"search_id": "AS_0001", "flight_id": "F1", "order_id": 26695, "brand_ids": ["B2"], "seat_selections": [{"user_id": 20011, "seat_id": "S_1_08A"}], "ancillary_selections": [{"ancillary_id": "A1", "user_ids": [20011], "quantity": 1}], "travel_policy_violation_reason": "Direct morning flight required for client meeting"}`

**Guide for the model**

```text
Strictly read-only flight booking pre-check that validates every business rule and issues a one-time `quote_token` without writing to the portal or GDS.
Prerequisites & parameters:
1. Required: `search_id` and `flight_id` from this conversation, plus an existing `order_id` that already has active passengers. If no trip exists or the order has no passengers, create or update the trip first via `trip_prepare` (`tool_prepare`) + `trip_confirm` (`tool_confirm`) (this tool never mutates order passengers).
2. Optional fare & service choices:
   - `brand_ids`: short codes from `avia_get_brands` (single ticket: `["B2"]`; split `mergeOW` offer: one code per leg such as `["B1_L1", "B2_L2"]` — never pass a partial list).
   - `seat_selections`: array of `{user_id, seat_id}` from `avia_get_seatmap`.
   - `ancillary_selections`: array of `{ancillary_id, user_ids?, quantity?}` from `avia_get_ancillaries`.
   - `document_overrides`: array of `{user_id, document_id}` when overriding automatic route document matching.
3. Special compliance barriers:
   - Seaman (`SEA`) tariffs require `vessel_name` and `vessel_country`.
   - Out-of-policy flights requiring justification need user-provided `travel_policy_violation_reason` (10..=250 raw chars, single line, no HTML).
   - Duplicate-service warnings block until the user explicitly approves retrying with `allow_duplicates: true`.
4. Two-phase confirmation, upsells & loyalty status: present full price breakdown, masked passenger documents, time limit, and warnings to the user. In one concise sentence, mention ONLY the options shown in `available_upsells` as actually available (alternative brands, seats, add-ons, Aeroexpress, insurance — never pitch policy-blocked or unavailable options). Clearly state each passenger's loyalty card match for the flight's carrier (`auto:<carrier>` applied automatically from profile vs missing for this carrier, noting it can be added before ticketing via `employee_card_prepare` / `employee_card_confirm` or on the portal). Wait for explicit confirmation in a separate turn, then call `avia_confirm_booking` via `tool_confirm` echoing exact `quote_token`, `confirmed_total_amount`, and `confirmed_currency`.
```

#### Step 2 · action: Flight booking — `avia_confirm_booking`

Books the flight and adds it to the trip after you say yes.

- Ask in the chat: Yes, book it.
- Note: A booking is not a ticket yet: issuing is a separate action with its own confirmation.
- Access: `mcp:confirm` · Changes data · Safe to repeat · Reaches airlines and suppliers
- In your app: via `tool_confirm`
- Parameters:
  - `confirmed_currency` (string, required): Exact 3-letter ISO currency code quoted by `avia_prepare_booking` (for example `RUB`, `AED`, `USD`).
  - `confirmed_total_amount` (number, required): Exact total booking amount quoted by `avia_prepare_booking` (`total_amount`), echoed for explicit financial confirmation.
  - `quote_token` (string, required): One-time confirmation token returned by `avia_prepare_booking` in this conversation. Pass only the exact `quote_token` returned after the user explicitly confirmed the booking summary; never guess or reuse tokens across conversations.
- Call examples:
  - Confirm flight reservation echoing exact quoted amount and currency: `{"quote_token": "QT_BOOK_01", "confirmed_total_amount": 18500, "confirmed_currency": "RUB"}`

### Ticket issuing — two steps

Until you confirm step 2, nothing is saved, booked, or charged.

#### Step 1 · pre-check: Ticketing pre-check — `avia_prepare_issue`

Checks the booking, the buyout deadline, and payment, and names the exact amount to be charged.

- Ask in the chat: Issue the ticket for my Berlin booking.
- Note: Issues nothing and charges nothing.
- Access: `mcp:prepare` · Read-only · Safe to repeat · Reaches airlines and suppliers
- In your app: via `tool_prepare`
- Parameters:
  - `order_id` (integer, required): Existing trip order identifier (`>= 1`) containing the reserved flight service. Pass only an `order_id` explicitly provided by the user or returned by `trip_list`, `trip_get`, or `avia_confirm_booking` in this conversation; never guess or reuse IDs across conversations.
  - `service_id` (integer, required): Reserved flight service identifier (`>= 1`) within the order to issue tickets for. Pass only an exact `service_id` returned by `trip_get` or `avia_confirm_booking` for this `order_id` in this conversation; never guess or reuse IDs across conversations.
  - `accept_reprice` (boolean): Set `true` only after the user explicitly accepted a new price reported by `avia_confirm_issue` (`status=PRICE_CHANGED`) to prepare forced reprice ticketing (`force=1`).
- Call examples:
  - Check ticketing readiness and prepare buyout quote: `{"order_id": 26695, "service_id": 8550866}`
  - Prepare re-quoted issuance after user accepted PRICE_CHANGED: `{"order_id": 26695, "service_id": 8550866, "accept_reprice": true}`

**Guide for the model**

```text
Strictly read-only pre-check before irreversible ticket issuance and financial charge.
Workflow:
1. Invoke `avia_prepare_issue` via `tool_prepare` (instead of `trip_service_get`) whenever the user asks whether a reserved flight can be issued, why ticketing is blocked, or wants to buy out a reserved flight (`order_id`, `service_id`).
2. Checks performed without charging: ticketing permission, order and service status, `ISSUE` action flag, buyout time limit (>= 180s remaining), browser 3DS payment requirement (chat ticketing is blocked when browser 3DS is required), saved card validity, company debt/balance, linked add-ons, and pending reprice status.
3. Reprice handling: if `avia_confirm_issue` later returns `status = PRICE_CHANGED`, show the updated price to the user and wait for explicit acceptance before re-invoking `avia_prepare_issue` via `tool_prepare` with `accept_reprice: true` to obtain a fresh `quote_token`.
4. Two-phase irreversible confirmation: present exact final charge, currency, and any surcharge/add-ons. Wait for explicit confirmation in a separate turn before calling `avia_confirm_issue` via `tool_confirm` echoing `quote_token`, `confirmed_total_amount`, and `confirmed_currency`.
```

#### Step 2 · action: Ticket issuing — `avia_confirm_issue`

Issues the ticket and charges the money after you say yes.

- Ask in the chat: Yes, issue it.
- Note: Cannot be undone. If the price has changed, the assistant stops and asks again.
- Access: `mcp:confirm` · Changes data · Safe to repeat · Reaches airlines and suppliers · Cannot be undone
- In your app: via `tool_confirm`
- Parameters:
  - `confirmed_currency` (string, required): Exact 3-letter ISO currency code quoted by `avia_prepare_issue` (for example `RUB`, `AED`, `USD`).
  - `confirmed_total_amount` (number, required): Exact total ticket issuance amount quoted by `avia_prepare_issue` (`total_amount`), echoed for explicit financial confirmation.
  - `quote_token` (string, required): One-time confirmation token returned by `avia_prepare_issue` in this conversation. Pass only the exact `quote_token` returned after the user explicitly confirmed the final ticket issuance amount; never guess or reuse tokens across conversations.
- Call examples:
  - Irreversibly issue tickets echoing exact quoted amount and currency: `{"quote_token": "QT_ISSUE_01", "confirmed_total_amount": 16338, "confirmed_currency": "RUB"}`

## Service

Connection diagnostics.

Available at any access level.

### Connection check — `server_ping`

Checks that the server responds.

- Ask in the chat: Check whether Tumodo is responding.
- Access: `mcp:read` · Read-only · Safe to repeat
- In your app: via `tool_read`
- Parameters:
  - `echo` (string): Optional connectivity echo tag.
- Call examples:
  - Verify MCP server transport connectivity: `{"echo": "health"}`

## What your app shows

Server mode: compact.

Your app does not get all 35 tools at once: their descriptions would take up a noticeable share of the assistant's memory on every reply. Instead it gets a short list: 4 everyday tools called directly plus 5 gateway tools the assistant uses to find and call the rest. Capabilities and permissions stay the same; only the calling path changes.

- Read only — 7: `context_get`, `company_select`, `trip_list`, `trip_get`, `tools_catalog`, `tool_describe`, `tool_read`
- Read & actions — 9: `context_get`, `company_select`, `trip_list`, `trip_get`, `tools_catalog`, `tool_describe`, `tool_read`, `tool_prepare`, `tool_confirm`

Numbers come from the server catalog and assume access to every section. If you switch a section off on the consent screen, its tools drop out of the list.

### How to read an approval prompt

Before an action your app asks for permission and shows the gateway's name. What will actually happen is written inside the request.

1. `tool` is the real tool. Here it is Ticket issuing `avia_confirm_issue`.
2. `arguments` is what it is called with. Amount and currency must match what the assistant showed you in chat.
3. Do not turn on “Always allow” for `tool_confirm`: apps remember the permission by tool name, so yours would stop showing this prompt before every action, irreversible ones included.

### Gateway tools

#### Tool index — `tools_catalog`

Shows the assistant the list of tools available with your permissions.

- When you will see it: At the start of a task, while the assistant looks for the right tool: for example, before the first flight search.
- Shown at any access level
- Parameters:
  - `domain` (enum): Optional domain filter (`context`, `trips`, `avia`, `people`, or `service`). — `context`, `trips`, `avia`, `people`, `service`
  - `query` (string): Optional case-insensitive English keyword filter (`1..=80` chars; the catalog index is English-only — pass English words, filter by `domain`, or omit `query` to view all permitted tools in one call).
  - `tier` (enum): Optional risk/execution tier filter (`read`, `prepare`, or `confirm`). — `read`, `prepare`, `confirm`

#### Tool details — `tool_describe`

Gives the assistant exact parameters and examples for the chosen tools.

- When you will see it: Before the first call of an unfamiliar tool and after a parameter error.
- Shown at any access level
- Parameters:
  - `tools` (string[], required): Exact tool names (`1..=5` items) from `tools_catalog` or the primary catalog to inspect.

#### Read call — `tool_read`

Calls a tool that only reads data: flight search, policies, reports.

- When you will see it: In almost every task. It changes nothing and charges nothing.
- Calls these tools: `policy_get`, `employee_search`, `employee_get`, `department_list`, `department_get`, `trip_service_get`, `desktop_summary`, `advance_report_list`, `advance_report_get`, `trip_search_field_values`, `avia_search`, `avia_query_offers`, `avia_get_brands`, `avia_get_fare_rules`, `avia_get_seatmap`, `avia_get_ancillaries`, `server_ping` and the 4 direct tools
- Shown at any access level
- Parameters:
  - `tool` (string, required): Exact target tool name from `tools_catalog` matching this executor tier.
  - `arguments` (object): JSON object of target tool arguments matching `input_schema` from `tool_describe` (defaults to `{}`).

#### Check call — `tool_prepare`

Runs step 1 of an action: the check before creating a trip, booking a flight, or issuing a ticket.

- When you will see it: When you ask to arrange something. The assistant checks the rules and shows the result. Nothing is saved at this step.
- Calls these tools: `employee_profile_prepare`, `employee_document_prepare`, `employee_card_prepare`, `employee_absence_prepare`, `trip_prepare`, `avia_prepare_booking`, `avia_prepare_issue`
- Shown with “Read & actions” access
- Parameters:
  - `tool` (string, required): Exact target tool name from `tools_catalog` matching this executor tier.
  - `arguments` (object): JSON object of target tool arguments matching `input_schema` from `tool_describe` (defaults to `{}`).

#### Confirmation call — `tool_confirm`

Runs step 2 after your “yes”: creates the trip, books the flight, or issues the ticket.

- When you will see it: Only after you confirmed the summary in chat.
- Note: Check the `tool` field in the prompt and do not turn on “Always allow”: your app would stop asking before all of these actions, irreversible ones included. The server still runs only what passed the check step.
- Calls these tools: `employee_profile_confirm`, `employee_document_confirm`, `employee_card_confirm`, `employee_absence_confirm`, `trip_confirm`, `avia_confirm_booking`, `avia_confirm_issue`
- Shown with “Read & actions” access
- Parameters:
  - `tool` (string, required): Exact target tool name from `tools_catalog` matching this executor tier.
  - `arguments` (object): JSON object of target tool arguments matching `input_schema` from `tool_describe` (defaults to `{}`).

### The whole catalog at once

Developers and apps with their own tool search may prefer the flat list: all 35 tools are visible directly, with no gateways. Add `?tools=all` to the server URL. Sign-in, permissions, and confirmations work the same.

`https://mcp.tumodo.io/mcp?tools=all`

The `X-Mcp-Tools-Mode: all` header does the same.

Your client receives the exact parameter schemas from the server when it connects.
