Common workflows
The assistant picks the tools and calls them in order. This is what typical tasks look like.
“I need to be in Berlin on Wednesday, back on Friday, with a bag”
“Prepare a trip to Berlin for me and Smith”
“Which bookings have deadlines coming up? Issue the Berlin ticket”
“What is the refund penalty, and where is my advance report?”
Profile & companies
3Your profile, role, companies, active company switch, travel policies, and daily allowances.
Profile & rolecontext_getShows your profile, company, role, and what you are allowed to do.Read
No parameters: the tool is called without arguments.
- In your app: direct
- Read-only
- Safe to repeat
mcp:read
Call examples 1
Verify caller context at conversation start
{}Description for the model
Returns verified user profile (home departure city, home rail hub, department, position), active company, corporate role, scope bounds, pending approvals count, and capabilities. CALL WHEN: starting a conversation to inspect caller context, default departure city or rail hub, and permissions. DO NOT CALL: to search flights (use avia_search), hotels, employees (use employee_search), read travel policies (use policy_get), or list/create trips.
JSON Schema
{
"additionalProperties": false,
"type": "object"
}Active companycompany_selectLists your companies and switches the active one for this chat.Read
The switch applies to this chat only.
>= 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.3..=120 chars, excluding bare legal forms) to filter or search companies.Technical descriptions are shown as the model sees them.
- In your app: direct
- Read-only
- Safe to repeat
mcp:read
Call examples 2
Search accessible companies by name
{
"query": "Alpha"
}Switch active dialog company by ID
{
"company_id": 10
}Description for the model
Lists, searches, and switches the active working company for this dialog. CALL WHEN: inspecting holding companies, searching client companies as an agency manager, or switching active company via company_id or query. DO NOT CALL: for single-company employees, private trip mode, or searching flights, hotels, employees (use employee_search), or trips.
JSON Schema
{
"additionalProperties": false,
"properties": {
"company_id": {
"default": null,
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
},
"query": {
"default": null,
"description": "Substring query (`3..=120` chars, excluding bare legal forms) to filter or search companies.",
"maxLength": 120,
"minLength": 3,
"type": [
"string",
"null"
]
}
},
"type": "object"
}Travel policy & allowancespolicy_getShows which travel policies and daily allowances apply to you or to your employee.Read
>= 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.custom_rules), default true.daily_allowances), default true.0). Pass next_policies_offset when policies_has_more=true.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.1..=50, default 20).5 more optional
0). Pass the returned next_rules_offset when rules are truncated.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.effectivecompany_catalogall, avia, hotel, train, rail, taxi, transfer, vip_hall, car_rental, aeroexpress, or bus, default all).allaviahoteltrainrailtaxitransfervip_hallcar_rentalaeroexpressbus>= 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.regionIdRL or countryCodeRL (page size 25, default 0). Pass the returned next_values_offset when list_values_has_more=true.Technical descriptions are shown as the model sees them.
- In your app: via
tool_read - Read-only
- Safe to repeat
mcp:read
Call examples 3
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
}Tool arguments. With the compact list the assistant passes them through tool_read.
Description for the model
Returns ONLY the effective active corporate travel policies and applicable daily allowances resolved for the current employee (or a permitted colleague via user_id) by default (scope="effective"), including exact policy names, violation modes, assignment sources (profile, primary department, or company default), taxi restrictions, and custom text rules. Pass scope="company_catalog" only when explicitly asked for all company policies. Supports service_type, rule_query, and policies_offset/rules_offset/rules_limit/values_offset pagination. CALL WHEN: checking active travel policy limits, allowed classes/stars/caps, taxi tariffs, custom guidelines, or daily allowance rates. DO NOT CALL: to inspect advance report expenses (use advance_report_get), pending approvals/deadlines (use desktop_summary), or employees (use employee_search).
JSON Schema
{
"$defs": {
"PolicyScopeParam": {
"description": "Lookup scope supported by `policy_get`.",
"oneOf": [
{
"const": "effective",
"description": "Default: returns ONLY the effective travel policies and applicable daily allowances resolved for the target employee (`profile -> primary department -> company default`).",
"type": "string"
},
{
"const": "company_catalog",
"description": "Coordinators/managers only (cannot be combined with `user_id`): returns all travel policies and daily allowances configured in the active company.",
"type": "string"
}
]
},
"PolicyServiceTypeParam": {
"description": "Service categories supported in `policy_get`.",
"enum": [
"all",
"avia",
"hotel",
"train",
"rail",
"taxi",
"transfer",
"vip_hall",
"car_rental",
"aeroexpress",
"bus"
],
"type": "string"
}
},
"additionalProperties": false,
"properties": {
"company_id": {
"default": null,
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
},
"include_custom_rules": {
"default": true,
"description": "Include corporate custom text travel policy rules (`custom_rules`), default `true`.",
"type": "boolean"
},
"include_daily_allowances": {
"default": true,
"description": "Include corporate daily allowance rates (`daily_allowances`), default `true`.",
"type": "boolean"
},
"policies_offset": {
"default": null,
"description": "Zero-based pagination offset across loaded policies when a catalog exceeds 10 policies (default `0`). Pass `next_policies_offset` when `policies_has_more=true`.",
"format": "uint32",
"minimum": 0,
"type": [
"integer",
"null"
]
},
"rule_query": {
"default": null,
"description": "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.",
"maxLength": 80,
"minLength": 1,
"type": [
"string",
"null"
]
},
"rules_limit": {
"default": null,
"description": "Maximum number of rules returned per policy per page (`1..=50`, default `20`).",
"format": "uint8",
"maximum": 50,
"minimum": 1,
"type": [
"integer",
"null"
]
},
"rules_offset": {
"default": null,
"description": "Zero-based pagination offset into each policy's filtered rules list (default `0`). Pass the returned `next_rules_offset` when rules are truncated.",
"format": "uint32",
"minimum": 0,
"type": [
"integer",
"null"
]
},
"scope": {
"$ref": "#/$defs/PolicyScopeParam",
"description": "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."
},
"service_type": {
"$ref": "#/$defs/PolicyServiceTypeParam",
"description": "Optional service category filter (`all`, `avia`, `hotel`, `train`, `rail`, `taxi`, `transfer`, `vip_hall`, `car_rental`, `aeroexpress`, or `bus`, default `all`)."
},
"user_id": {
"default": null,
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
},
"values_offset": {
"default": null,
"description": "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`.",
"format": "uint32",
"minimum": 0,
"type": [
"integer",
"null"
]
}
},
"type": "object"
}Trips
9View trips, services, approvals, and advance reports, prepare and save trips after your confirmation.
Trip listtrip_listFinds trips by date, traveler, booking reference, or ticket number.Read
context_get reports enable_filter_ao_completed=true).>= 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.2..=120 chars, at least 2 non-quote chars). Must be paired with analytic_id.in_progress or required).in_progressrequired>= 1). Pass only an author_id returned by context_get, employee_search, or another tool in this conversation; never guess or fabricate IDs.2..=40 chars, automatically uppercased).21 more optional
>= 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.>= 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.2..=120 chars) matching company name (useful in holding overview).YYYY-MM-DD); includes empty drafts.YYYY-MM-DD); includes empty drafts.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.2..=20 chars, e.g. SU100); hides empty drafts.1..=15, default 15).>= 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.2..=120 chars, at least 2 non-whitespace chars).>= 1). Pass only a user_id returned by context_get, employee_search, or another tool in this conversation; never guess or fabricate IDs.2..=120 chars) matching trip title/description.YYYY-MM-DD) for avia services; hides empty drafts.>= 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.reservedticketedannulledcancel_requestedcancelledissuingmanual_checkexchangeddeletedexpiredcancellingreservingexchangingaviahoteltransfertrainaeroexpressarbitrarytourvisaeventinvitationbusinsurancetaxibusiness_travel_passvip_hallcar_rentalavia_insurance3..=40 chars).YYYY-MM-DD); hides empty drafts.YYYY-MM-DD); hides empty drafts.Technical descriptions are shown as the model sees them.
- In your app: direct
- Read-only
- Safe to repeat
mcp:read
Call examples 2
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"
}Description for the model
Lists fresh corporate trips with role barriers, date/passenger/PNR filters, and cursor pagination (TTL = 0). Set only_my=true when a coordinator or manager asks specifically for their own trips (otherwise all visible company/holding trips are returned). CALL WHEN: viewing upcoming, past, draft, or pending-approval trips, or looking up a trip by order_id, passenger, PNR booking_ref, or ticket_number. DO NOT CALL: to inspect full service details, time limits, or approvers of a known order_id (use trip_get), search new flights (use avia_search) or hotels, switch companies (use company_select), or search employees and travel documents (use employee_search).
JSON Schema
{
"$defs": {
"ApprovalFilterParam": {
"description": "Approval state filter supported by `trip_list`.",
"enum": [
"in_progress",
"required"
],
"type": "string"
},
"TripServiceFilterStatusParam": {
"description": "Service booking statuses supported in `trip_list` filters (non-zero statuses only).",
"enum": [
"reserved",
"ticketed",
"annulled",
"cancel_requested",
"cancelled",
"issuing",
"manual_check",
"exchanged",
"deleted",
"expired",
"cancelling",
"reserving",
"exchanging"
],
"type": "string"
},
"TripServiceTypeParam": {
"description": "Service categories supported in `trip_list` filters.",
"enum": [
"avia",
"hotel",
"transfer",
"train",
"aeroexpress",
"arbitrary",
"tour",
"visa",
"event",
"invitation",
"bus",
"insurance",
"taxi",
"business_travel_pass",
"vip_hall",
"car_rental",
"avia_insurance"
],
"type": "string"
}
},
"additionalProperties": false,
"properties": {
"advance_report_not_submitted": {
"default": false,
"description": "Return only trips with an unsubmitted advance report (available when `context_get` reports `enable_filter_ao_completed=true`).",
"type": "boolean"
},
"analytic_id": {
"default": null,
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
},
"analytic_value": {
"default": null,
"description": "Analytic value substring (`2..=120` chars, at least 2 non-quote chars). Must be paired with `analytic_id`.",
"maxLength": 120,
"minLength": 2,
"type": [
"string",
"null"
]
},
"approval_filter": {
"anyOf": [
{
"$ref": "#/$defs/ApprovalFilterParam"
},
{
"type": "null"
}
],
"description": "Filter by order approval progress (`in_progress` or `required`)."
},
"author_id": {
"default": null,
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
},
"booking_ref": {
"default": null,
"description": "Booking reference / PNR substring (`2..=40` chars, automatically uppercased).",
"maxLength": 40,
"minLength": 2,
"type": [
"string",
"null"
]
},
"city_id": {
"default": null,
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
},
"company_id": {
"default": null,
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
},
"company_name": {
"default": null,
"description": "Substring query (`2..=120` chars) matching company name (useful in holding overview).",
"maxLength": 120,
"minLength": 2,
"type": [
"string",
"null"
]
},
"created_date_from": {
"default": null,
"description": "Filter trips created from calendar date (`YYYY-MM-DD`); includes empty drafts.",
"type": [
"string",
"null"
]
},
"created_date_to": {
"default": null,
"description": "Filter trips created up to calendar date (`YYYY-MM-DD`); includes empty drafts.",
"type": [
"string",
"null"
]
},
"cursor_before_order_id": {
"default": null,
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
},
"exclude_drafts": {
"default": false,
"description": "Exclude draft-only orders.",
"type": "boolean"
},
"flight_number": {
"default": null,
"description": "Flight number substring (`2..=20` chars, e.g. `SU100`); hides empty drafts.",
"maxLength": 20,
"minLength": 2,
"type": [
"string",
"null"
]
},
"limit": {
"default": null,
"description": "Maximum number of trips to return (`1..=15`, default `15`).",
"format": "uint8",
"maximum": 15,
"minimum": 1,
"type": [
"integer",
"null"
]
},
"only_my": {
"default": false,
"description": "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).",
"type": "boolean"
},
"order_id": {
"default": null,
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
},
"passenger_name": {
"default": null,
"description": "Passenger full-name substring (`2..=120` chars, at least 2 non-whitespace chars).",
"maxLength": 120,
"minLength": 2,
"type": [
"string",
"null"
]
},
"passenger_user_id": {
"default": null,
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
},
"query_title": {
"default": null,
"description": "Substring query (`2..=120` chars) matching trip title/description.",
"maxLength": 120,
"minLength": 2,
"type": [
"string",
"null"
]
},
"segment_departure": {
"default": null,
"description": "Exact flight segment departure calendar date (`YYYY-MM-DD`) for avia services; hides empty drafts.",
"type": [
"string",
"null"
]
},
"service_id": {
"default": null,
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
},
"service_status": {
"anyOf": [
{
"$ref": "#/$defs/TripServiceFilterStatusParam"
},
{
"type": "null"
}
],
"description": "Filter by non-zero service status."
},
"service_type": {
"anyOf": [
{
"$ref": "#/$defs/TripServiceTypeParam"
},
{
"type": "null"
}
],
"description": "Filter by service category."
},
"ticket_number": {
"default": null,
"description": "Issued ticket number substring (`3..=40` chars).",
"maxLength": 40,
"minLength": 3,
"type": [
"string",
"null"
]
},
"trip_date_from": {
"default": null,
"description": "Filter services from departure or check-in date (`YYYY-MM-DD`); hides empty drafts.",
"type": [
"string",
"null"
]
},
"trip_date_to": {
"default": null,
"description": "Filter services up to departure or return date (`YYYY-MM-DD`); hides empty drafts.",
"type": [
"string",
"null"
]
}
},
"type": "object"
}Trip detailstrip_getShows the whole trip: budget, approval steps, and services.Read
Document numbers arrive masked.
>= 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.true when the user asks for active/non-cancelled services only (excludes cancelled, annulled, deleted, expired, and exchanged services).2..=120 chars) matching passenger full name on each service.reservedticketedannulledcancel_requestedcancelledissuingmanual_checkexchangeddeletedexpiredcancellingreservingexchangingtrain covers both domestic and European rail).aviahoteltransfertrainaeroexpressarbitrarytourvisaeventinvitationbusinsurancetaxibusiness_travel_passvip_hallcar_rentalavia_insurance1..=50, default 20).0).Technical descriptions are shown as the model sees them.
- In your app: direct
- Read-only
- Safe to repeat
mcp:read
Call examples 1
Inspect active services in a trip order
{
"order_id": 26695,
"active_services_only": true,
"services_limit": 20
}Description for the model
Returns detailed trip card by order_id: pre-approval budget, approval steps, masked documents, services_summary, and up to 50 filtered services per page (default 20, linked ancillaries folded as +N anc) (TTL = 0). CALL WHEN: inspecting order overview, deadlines, approvers, or filtering services in large orders. DO NOT CALL: for fee breakdowns, segments, cabin/seat/meal/policy details of specific services (use trip_service_get), listing multiple trips (use trip_list), switching companies (use company_select), searching employees and documents (use employee_search), or to open an existing trip for editing fields (use trip_prepare with order_id).
JSON Schema
{
"$defs": {
"TripServiceFilterStatusParam": {
"description": "Service booking statuses supported in `trip_list` filters (non-zero statuses only).",
"enum": [
"reserved",
"ticketed",
"annulled",
"cancel_requested",
"cancelled",
"issuing",
"manual_check",
"exchanged",
"deleted",
"expired",
"cancelling",
"reserving",
"exchanging"
],
"type": "string"
},
"TripServiceTypeParam": {
"description": "Service categories supported in `trip_list` filters.",
"enum": [
"avia",
"hotel",
"transfer",
"train",
"aeroexpress",
"arbitrary",
"tour",
"visa",
"event",
"invitation",
"bus",
"insurance",
"taxi",
"business_travel_pass",
"vip_hall",
"car_rental",
"avia_insurance"
],
"type": "string"
}
},
"additionalProperties": false,
"properties": {
"active_services_only": {
"default": false,
"description": "Set `true` when the user asks for active/non-cancelled services only (excludes cancelled, annulled, deleted, expired, and exchanged services).",
"type": "boolean"
},
"order_id": {
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": "integer"
},
"passenger_name": {
"default": null,
"description": "Case-insensitive substring query (`2..=120` chars) matching passenger full name on each service.",
"maxLength": 120,
"minLength": 2,
"type": [
"string",
"null"
]
},
"service_status": {
"anyOf": [
{
"$ref": "#/$defs/TripServiceFilterStatusParam"
},
{
"type": "null"
}
],
"description": "Filter services by non-zero booking status."
},
"service_type": {
"anyOf": [
{
"$ref": "#/$defs/TripServiceTypeParam"
},
{
"type": "null"
}
],
"description": "Filter services by category (`train` covers both domestic and European rail)."
},
"services_limit": {
"default": null,
"description": "Maximum number of services to return per page (`1..=50`, default `20`).",
"format": "uint8",
"maximum": 50,
"minimum": 1,
"type": [
"integer",
"null"
]
},
"services_offset": {
"default": null,
"description": "Zero-based pagination offset for the filtered service list (default `0`).",
"format": "uint32",
"minimum": 0,
"type": [
"integer",
"null"
]
}
},
"required": [
"order_id"
],
"type": "object"
}Service detailstrip_service_getBreaks down one service in a trip: what the price is made of, segments, baggage, refund penalties.Read
>= 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.>= 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.0..=128000) for paginating long post-booking fare rule texts (page size 4000 chars) when include_fare_rules=true.include_fare_rules=true: penalties (default), restrictions, or full.penaltiesrestrictionsfullavia.tarif, serviceId > 0) for non-arbitrary avia services in service_ids. Default false to keep normal detail calls fast.Technical descriptions are shown as the model sees them.
- In your app: via
tool_read - Read-only
- Safe to repeat
mcp:read
Call examples 1
Inspect booked service pricing and post-booking fare rules
{
"order_id": 26695,
"service_ids": [
8550866
],
"include_fare_rules": true,
"fare_rules_section": "penalties"
}Tool arguments. With the compact list the assistant passes them through tool_read.
Description for the model
Returns detailed client view of 1 to 5 services in an order: fee and penalty breakdown (tariff, service_fee, return_fee, penalty, pay_later, VAT), flight/rail/bus segments, baggage, branded fare, hotel room/meal/policy, car/seat/ereg, passengers, and linked ancillaries (TTL = 0). Pass include_fare_rules=true to also fetch post-booking airline fare rules (penalties, restrictions, or full text paginated by fare_rules_offset_chars) for non-arbitrary avia services. CALL WHEN: inspecting exact client pricing, segments, seats, rooms, policies, or post-booking avia fare rules for known service_id values from trip_get. DO NOT CALL: without an order_id and target service_ids (call trip_get first), to check flight issuance readiness/blockers (use avia_prepare_issue), to inspect approval steps/budget (use trip_get), or to list multiple trips (use trip_list).
JSON Schema
{
"$defs": {
"AviaFareRulesSectionParam": {
"description": "Fare rules section selector supported by `avia_get_fare_rules`.",
"oneOf": [
{
"const": "penalties",
"description": "Refund, exchange, and no-show penalty sections (default).",
"type": "string"
},
{
"const": "restrictions",
"description": "Baggage, stay, stopover, and ticket restriction sections.",
"type": "string"
},
{
"const": "full",
"description": "Full sanitized fare rule text across all sections.",
"type": "string"
}
]
}
},
"additionalProperties": false,
"properties": {
"fare_rules_offset_chars": {
"default": 0,
"description": "Zero-based character offset (`0..=128000`) for paginating long post-booking fare rule texts (page size `4000` chars) when `include_fare_rules=true`.",
"format": "uint",
"maximum": 128000,
"minimum": 0,
"type": "integer"
},
"fare_rules_section": {
"$ref": "#/$defs/AviaFareRulesSectionParam",
"description": "Section of post-booking avia fare rules to return when `include_fare_rules=true`: `penalties` (default), `restrictions`, or `full`."
},
"include_fare_rules": {
"default": false,
"description": "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.",
"type": "boolean"
},
"order_id": {
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": "integer"
},
"service_ids": {
"description": "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.",
"items": {
"format": "uint64",
"minimum": 0,
"type": "integer"
},
"maxItems": 5,
"minItems": 1,
"type": "array"
}
},
"required": [
"order_id",
"service_ids"
],
"type": "object"
}What needs attentiondesktop_summaryCollects what is waiting for you: approvals, bookings with a buyout deadline running out, and cancellation requests.Read
>= 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.1..=50, default 15).trip_approvals, expense_approvals, deadlines, cancel_requests, default 0). Pass next_offset when has_more=true.all, approvals, deadlines, or cancel_requests, default all).allapprovalsdeadlinescancel_requestsTechnical descriptions are shown as the model sees them.
- In your app: via
tool_read - Read-only
- Safe to repeat
mcp:read
Call examples 1
Load all operational queues for today
{
"section": "all",
"limit": 15
}Tool arguments. With the compact list the assistant passes them through tool_read.
Description for the model
Returns the fresh corporate desktop operational summary (TTL = 0): trips and advance reports awaiting the caller's approval, reserved services with burning buyout time limits, and pending cancellation/refund requests. Supports section, offset, and limit pagination. CALL WHEN: the user asks what requires attention today, what awaits approval, which reservations are about to expire, or which cancellation requests are pending. DO NOT CALL: to search general trip history by dates or PNR (use trip_list), inspect full expense rows of one advance report (use advance_report_get), or read travel policy limits (use policy_get).
JSON Schema
{
"$defs": {
"DesktopSummarySectionParam": {
"description": "Sections supported by `desktop_summary`.",
"enum": [
"all",
"approvals",
"deadlines",
"cancel_requests"
],
"type": "string"
}
},
"additionalProperties": false,
"properties": {
"company_id": {
"default": null,
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
},
"limit": {
"default": null,
"description": "Maximum number of items returned per section (`1..=50`, default `15`).",
"format": "uint8",
"maximum": 50,
"minimum": 1,
"type": [
"integer",
"null"
]
},
"offset": {
"default": null,
"description": "Zero-based pagination offset into each requested queue (`trip_approvals`, `expense_approvals`, `deadlines`, `cancel_requests`, default `0`). Pass `next_offset` when `has_more=true`.",
"format": "uint32",
"minimum": 0,
"type": [
"integer",
"null"
]
},
"section": {
"$ref": "#/$defs/DesktopSummarySectionParam",
"description": "Operational section to inspect (`all`, `approvals`, `deadlines`, or `cancel_requests`, default `all`)."
}
},
"type": "object"
}Advance reportsadvance_report_listFinds advance reports: yours and the ones waiting for your approval.Read
>= 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.>= 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.YYYY-MM-DD).YYYY-MM-DD).>= 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.1..=15, default 15).12 more optional
YYYY-MM-DD).YYYY-MM-DD).>= 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.>= 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.2..=120 chars, at least 2 non-whitespace chars).2..=120 chars) matching standalone report purpose (aim).2..=120 chars) matching report title.1..=120 chars) matching advance report string number.>= 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.Technical descriptions are shown as the model sees them.
- In your app: via
tool_read - Read-only
- Safe to repeat
mcp:read
Call examples 1
List advance reports awaiting approval
{
"needs_approval": true,
"limit": 10
}Tool arguments. With the compact list the assistant passes them through tool_read.
Description for the model
Lists and paginates fresh corporate advance reports (both attached to business trips and standalone without a trip) with tab counters (total, only_mine, needs_approval, on_approval), date/employee/order filters, and cursor pagination (TTL = 0). CALL WHEN: viewing advance reports, checking which reports await approval or belong to an employee, or finding an order_id before reading expense details. DO NOT CALL: to inspect itemized expenses, receipts, or totals of a known order_id (use advance_report_get), list trips or flight/hotel bookings (use trip_list), or read daily allowance policy rates (use policy_get).
JSON Schema
{
"additionalProperties": false,
"properties": {
"author_id": {
"default": null,
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
},
"company_id": {
"default": null,
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
},
"created_date_from": {
"default": null,
"description": "Filter reports created from calendar date (`YYYY-MM-DD`).",
"type": [
"string",
"null"
]
},
"created_date_to": {
"default": null,
"description": "Filter reports created up to calendar date (`YYYY-MM-DD`).",
"type": [
"string",
"null"
]
},
"cursor_from_id": {
"default": null,
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
},
"limit": {
"default": null,
"description": "Maximum number of advance reports to return (`1..=15`, default `15`).",
"format": "uint8",
"maximum": 15,
"minimum": 1,
"type": [
"integer",
"null"
]
},
"needs_approval": {
"default": false,
"description": "Return only advance reports currently awaiting the caller's approval.",
"type": "boolean"
},
"on_approval": {
"default": false,
"description": "Return only advance reports currently in approval workflow.",
"type": "boolean"
},
"only_mine": {
"default": false,
"description": "Return only advance reports belonging to the current user.",
"type": "boolean"
},
"order_date_from": {
"default": null,
"description": "Filter reports by trip/expense period start date (`YYYY-MM-DD`).",
"type": [
"string",
"null"
]
},
"order_date_to": {
"default": null,
"description": "Filter reports by trip/expense period end date (`YYYY-MM-DD`).",
"type": [
"string",
"null"
]
},
"order_id": {
"default": null,
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
},
"order_passenger_id": {
"default": null,
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
},
"passenger_name": {
"default": null,
"description": "Employee full-name substring (`2..=120` chars, at least 2 non-whitespace chars).",
"maxLength": 120,
"minLength": 2,
"type": [
"string",
"null"
]
},
"query_purpose": {
"default": null,
"description": "Substring query (`2..=120` chars) matching standalone report purpose (`aim`).",
"maxLength": 120,
"minLength": 2,
"type": [
"string",
"null"
]
},
"query_title": {
"default": null,
"description": "Substring query (`2..=120` chars) matching report title.",
"maxLength": 120,
"minLength": 2,
"type": [
"string",
"null"
]
},
"report_number": {
"default": null,
"description": "Substring query (`1..=120` chars) matching advance report string number.",
"maxLength": 120,
"minLength": 1,
"type": [
"string",
"null"
]
},
"user_id": {
"default": null,
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
}
},
"type": "object"
}Advance reportadvance_report_getShows a report: daily allowances, expenses, receipts, and the balance to pay out or return.Read
Receipts come as a list; the assistant does not get the files.
>= 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.all, daily, prepayment, or expenses, default all). Currency totals still reflect all items in the report.alldailyprepaymentexpenses1..=50, default 30).0). Pass next_expenses_offset when expenses_has_more=true.30, default 0). Pass next_receipts_offset when receipts_has_more=true.>= 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.true for standalone advance reports without a trip or false for trip expenses; omit to auto-detect.Technical descriptions are shown as the model sees them.
- In your app: via
tool_read - Read-only
- Safe to repeat
mcp:read
Call examples 1
Read itemized advance report expenses and totals
{
"order_id": 26695,
"expense_type": "all",
"limit": 30
}Tool arguments. With the compact list the assistant passes them through tool_read.
Description for the model
Returns detailed advance report and trip expenses for a verified order_id (in-trip or standalone): daily allowances, prepayments, expense rows (filtered and paginated via expense_type/offset/limit), full claimed/approved/net_balance totals per currency across all rows, per-expense and order receipt metadata (paginated via receipts_offset, without binary content), and KEDO/external approval statuses (TTL = 0). CALL WHEN: inspecting expenses, receipts, net balance, or approval status for a specific order_id. DO NOT CALL: without an order_id (call advance_report_list or trip_list first), to inspect flight/hotel booking fares or segments (use trip_get or trip_service_get), or to read company daily allowance policy rates (use policy_get).
JSON Schema
{
"$defs": {
"AdvanceReportExpenseTypeParam": {
"description": "Expense item type filter supported by `advance_report_get`.",
"enum": [
"all",
"daily",
"prepayment",
"expenses"
],
"type": "string"
}
},
"additionalProperties": false,
"properties": {
"expense_type": {
"$ref": "#/$defs/AdvanceReportExpenseTypeParam",
"description": "Optional expense row category filter (`all`, `daily`, `prepayment`, or `expenses`, default `all`). Currency totals still reflect all items in the report."
},
"limit": {
"default": null,
"description": "Maximum number of expense rows to return per page (`1..=50`, default `30`).",
"format": "uint8",
"maximum": 50,
"minimum": 1,
"type": [
"integer",
"null"
]
},
"offset": {
"default": null,
"description": "Zero-based pagination offset for the filtered expense rows (default `0`). Pass `next_expenses_offset` when `expenses_has_more=true`.",
"format": "uint32",
"minimum": 0,
"type": [
"integer",
"null"
]
},
"order_id": {
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": "integer"
},
"receipts_offset": {
"default": null,
"description": "Zero-based pagination offset for attached receipt metadata (page size `30`, default `0`). Pass `next_receipts_offset` when `receipts_has_more=true`.",
"format": "uint32",
"minimum": 0,
"type": [
"integer",
"null"
]
},
"user_id": {
"default": null,
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
},
"without_trip": {
"default": null,
"description": "Set `true` for standalone advance reports without a trip or `false` for trip expenses; omit to auto-detect.",
"type": [
"boolean",
"null"
]
}
},
"required": [
"order_id"
],
"type": "object"
}Trip form lookupstrip_search_field_valuesFinds values for trip fields: cities, countries, cost centers, payment methods.Read
Payment card numbers arrive masked.
citycountryanalyticorganisationtransport_paymentaccommodation_paymentweekend_reasonpayment_card>= 1, required when field_kind is analytic). Pass only an analytic_id returned by trip_prepare in this conversation; never guess IDs.>= 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.>= 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.1..=25, default 15).>= 2 chars required for city; optional for other categories, max 120 chars).Technical descriptions are shown as the model sees them.
- In your app: via
tool_read - Read-only
- Safe to repeat
mcp:read
Call examples 2
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
}Tool arguments. With the compact list the assistant passes them through tool_read.
Description for the model
Searches reference values needed while filling a trip draft: cities (for departure or destination), countries (for custom destination places type=1), large cost center analytics, organisations, transport/accommodation payment options, weekend work reasons, and masked available payment cards. CALL WHEN: resolving city/country IDs or large dictionary fields flagged by trip_prepare. DO NOT CALL: to search colleagues or travelers (use employee_search), switch companies (use company_select), or list trips (use trip_list).
JSON Schema
{
"$defs": {
"TripFieldKindParam": {
"description": "Reference dictionary categories supported by `trip_search_field_values`.",
"enum": [
"city",
"country",
"analytic",
"organisation",
"transport_payment",
"accommodation_payment",
"weekend_reason",
"payment_card"
],
"type": "string"
}
},
"additionalProperties": false,
"properties": {
"analytic_id": {
"default": null,
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
},
"company_id": {
"default": null,
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
},
"contact_person_id": {
"default": null,
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
},
"field_kind": {
"$ref": "#/$defs/TripFieldKindParam",
"description": "Reference dictionary category to search."
},
"limit": {
"default": null,
"description": "Maximum number of options to return (`1..=25`, default `15`).",
"format": "uint8",
"maximum": 25,
"minimum": 1,
"type": [
"integer",
"null"
]
},
"query": {
"default": null,
"description": "Search substring (`>= 2` chars required for `city`; optional for other categories, max 120 chars).",
"maxLength": 120,
"type": [
"string",
"null"
]
}
},
"required": [
"field_kind"
],
"type": "object"
}Trip creation
Actions · two stepsStep 1 · pre-checkTrip pre-checktrip_prepareChecks what is missing to create a trip and puts the draft together.
Saves nothing.
analytic_id).Child fields · 3
>= 1). Pass only an analytic_id returned by trip_prepare in this conversation; never guess or reuse IDs from other conversations.1..=255 chars) for free-text analytics or label of a selected list value.>= 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.0..=255 chars).passenger_user_ids alongside when the traveler is known).Child fields · 6
YYYY-MM-DD).avia, hotel, or rail).YYYY-MM-DD).>= 1). Pass only a city_id returned by a tool in this conversation; never guess IDs.true only after the user explicitly declined matching approved trips and wants to create a new trip.>= 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.>= 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.12 more optional
>= 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.trip_prepare response in this conversation. Pass only the exact draft_id returned in this conversation; never guess or reuse draft_id across conversations.YYYY-MM-DD) when dates control is required without destination places.>= 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.>= 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.>= 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.bill, card, abstract_corporate_card, or abstract_personal_card).billcardabstract_corporate_cardabstract_personal_card1..=20 items) when cities control is active (replaces the full places list on draft update — pass all destinations when adding another place).Child fields · 11
YYYY-MM-DD).YYYY-MM-DD).1..=255 chars).1..=255 chars) when required by company form settings.>= 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.>= 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.type = 1, 1..=255 chars).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).>= 1) when editing an existing order; omit for new places. Pass only an ID returned by trip_prepare for this order; never guess IDs.1..=255 chars) when required by company form settings.0 for a catalog city (default) or 1 for a custom location name.YYYY-MM-DD) when dates control is required without destination places.0..=255 chars).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).Child fields · 5
restDay or doublePayment).restDaydoublePaymentYYYY-MM-DD).1..=255 chars).>= 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.YYYY-MM-DD), required when compensation is restDay.Technical descriptions are shown as the model sees them.
- In your app: via
tool_prepare - Read-only
- Safe to repeat
mcp:prepare
Call examples 4
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
}
}Tool arguments. With the compact list the assistant passes them through tool_prepare.
Description for the model
Read-only server-driven trip form evaluator (saves nothing to DB). Always run FIRST — even with empty {} arguments — whenever the user wants to create a trip or asks what fields are needed, because required fields depend on company settings (some companies allow an empty draft with zero fields). Evaluates company rules, pre-approval, cost centers, and payment methods, returning exact missing_fields or status=READY with a one-time quote_token. CALL WHEN: starting a new trip (run first with {} or whatever details the user already gave — NEVER ask for route, dates, title, or passengers beforehand) or editing an existing order by order_id without calling trip_get first. DO NOT CALL: only to view/list trips (use trip_get or trip_list), search colleagues (use employee_search), or save to DB (use trip_confirm after user confirmation).
JSON Schema
{
"$defs": {
"TripBookingContextParam": {
"additionalProperties": false,
"description": "Context of an already selected travel service to check for matching pre-approved trips.",
"properties": {
"city_id": {
"default": null,
"description": "Optional destination city identifier (`>= 1`). Pass only a `city_id` returned by a tool in this conversation; never guess IDs.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
},
"end_date": {
"description": "Service end date (`YYYY-MM-DD`).",
"type": "string"
},
"force_create_new": {
"default": false,
"description": "Set `true` only after the user explicitly declined matching approved trips and wants to create a new trip.",
"type": "boolean"
},
"price": {
"description": "Optional expected service price (non-negative decimal) for remaining pre-approval budget matching.",
"format": "double",
"type": [
"number",
"null"
]
},
"service_type": {
"description": "Service type being booked (for example `avia`, `hotel`, or `rail`).",
"maxLength": 32,
"minLength": 1,
"type": "string"
},
"start_date": {
"description": "Service start date (`YYYY-MM-DD`).",
"type": "string"
}
},
"required": [
"service_type",
"start_date",
"end_date"
],
"type": "object"
},
"TripDraftAnalyticParam": {
"additionalProperties": false,
"description": "Cost center / analytic value entry for `trip_prepare`.",
"properties": {
"analytic_id": {
"description": "Analytic identifier (`>= 1`). Pass only an `analytic_id` returned by `trip_prepare` in this conversation; never guess or reuse IDs from other conversations.",
"format": "uint64",
"minimum": 1,
"type": "integer"
},
"value": {
"default": null,
"description": "String value (`1..=255` chars) for free-text analytics or label of a selected list value.",
"maxLength": 255,
"type": [
"string",
"null"
]
},
"value_id": {
"default": null,
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
}
},
"required": [
"analytic_id"
],
"type": "object"
},
"TripDraftPlaceParam": {
"additionalProperties": false,
"description": "Destination place item for `trip_prepare` when cities control is active.",
"properties": {
"accommodation_payment_method": {
"default": null,
"description": "Accommodation payment method option (`1..=255` chars) when required by company form settings.",
"maxLength": 255,
"type": [
"string",
"null"
]
},
"destination_city_id": {
"default": null,
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
},
"destination_country_id": {
"default": null,
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
},
"destination_name": {
"default": null,
"description": "Custom destination name (required when `type = 1`, `1..=255` chars).",
"maxLength": 255,
"minLength": 1,
"type": [
"string",
"null"
]
},
"destination_organisation": {
"default": null,
"description": "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).",
"maxLength": 255,
"type": [
"string",
"null"
]
},
"end_date": {
"description": "Departure / end date from this destination (`YYYY-MM-DD`).",
"type": "string"
},
"id": {
"default": null,
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
},
"start_date": {
"description": "Arrival / start date in this destination (`YYYY-MM-DD`).",
"type": "string"
},
"transport_payment_method": {
"default": null,
"description": "Transport payment method option (`1..=255` chars) when required by company form settings.",
"maxLength": 255,
"type": [
"string",
"null"
]
},
"trip_purpose": {
"description": "Business purpose of visiting this destination (`1..=255` chars).",
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"type": {
"default": null,
"description": "Location type: `0` for a catalog city (default) or `1` for a custom location name.",
"format": "uint8",
"maximum": 1,
"minimum": 0,
"type": [
"integer",
"null"
]
}
},
"required": [
"start_date",
"end_date",
"trip_purpose"
],
"type": "object"
},
"TripDraftWeekendWorkParam": {
"additionalProperties": false,
"description": "Weekend work record for a traveler in `trip_prepare`.",
"properties": {
"compensation": {
"$ref": "#/$defs/WeekendCompensationParam",
"description": "Compensation type (`restDay` or `doublePayment`)."
},
"date": {
"description": "Weekend work calendar date (`YYYY-MM-DD`).",
"type": "string"
},
"reason": {
"description": "Justification or reason for weekend work (`1..=255` chars).",
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"rest_day": {
"default": null,
"description": "Compensatory day-off date (`YYYY-MM-DD`), required when `compensation` is `restDay`.",
"type": [
"string",
"null"
]
},
"user_id": {
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": "integer"
}
},
"required": [
"user_id",
"date",
"reason",
"compensation"
],
"type": "object"
},
"TripPaymentMethodParam": {
"description": "Payment methods supported by `trip_prepare`.",
"oneOf": [
{
"const": "bill",
"description": "Corporate invoice / bank transfer (`orderPayment = 0`).",
"type": "string"
},
{
"const": "card",
"description": "Saved corporate or personal card (`orderPayment = 1`, requires `payment_card_id`).",
"type": "string"
},
{
"const": "abstract_corporate_card",
"description": "Abstract corporate card payment without a pre-saved card ID (`orderPayment = 3`).",
"type": "string"
},
{
"const": "abstract_personal_card",
"description": "Abstract personal card payment without a pre-saved card ID (`orderPayment = 4`).",
"type": "string"
}
]
},
"WeekendCompensationParam": {
"description": "Compensation type for weekend work records (`restDay` or `doublePayment`).",
"oneOf": [
{
"const": "restDay",
"description": "Compensatory day off (`restDay`, requires `rest_day` date).",
"type": "string"
},
{
"const": "doublePayment",
"description": "Double pay for working on a weekend (`doublePayment`).",
"type": "string"
}
]
}
},
"additionalProperties": false,
"properties": {
"allow_weekend_booking": {
"default": null,
"description": "Allow staying over the nearest weekend before or after the approved trip dates when company pre-approval enables this option.",
"type": [
"boolean",
"null"
]
},
"analytics": {
"description": "Cost center / analytic values to set or update on this draft (merged by `analytic_id`).",
"items": {
"$ref": "#/$defs/TripDraftAnalyticParam"
},
"maxItems": 50,
"type": [
"array",
"null"
]
},
"approval_comment": {
"default": null,
"description": "Optional comment for approvers (`0..=255` chars).",
"maxLength": 255,
"type": [
"string",
"null"
]
},
"booking_context": {
"anyOf": [
{
"$ref": "#/$defs/TripBookingContextParam"
},
{
"type": "null"
}
],
"description": "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)."
},
"company_id": {
"default": null,
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
},
"contact_person_id": {
"default": null,
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
},
"departure_city_id": {
"default": null,
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
},
"draft_id": {
"default": null,
"description": "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.",
"maxLength": 64,
"minLength": 1,
"type": [
"string",
"null"
]
},
"end_date": {
"default": null,
"description": "Trip end date (`YYYY-MM-DD`) when dates control is required without destination places.",
"type": [
"string",
"null"
]
},
"order_id": {
"default": null,
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
},
"passenger_user_ids": {
"default": null,
"description": "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.",
"items": {
"format": "uint64",
"minimum": 0,
"type": "integer"
},
"maxItems": 50,
"type": [
"array",
"null"
]
},
"payment_card_id": {
"default": null,
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
},
"payment_method": {
"anyOf": [
{
"$ref": "#/$defs/TripPaymentMethodParam"
},
{
"type": "null"
}
],
"description": "Trip payment method (`bill`, `card`, `abstract_corporate_card`, or `abstract_personal_card`)."
},
"places": {
"description": "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).",
"items": {
"$ref": "#/$defs/TripDraftPlaceParam"
},
"maxItems": 20,
"type": [
"array",
"null"
]
},
"start_date": {
"default": null,
"description": "Trip start date (`YYYY-MM-DD`) when dates control is required without destination places.",
"type": [
"string",
"null"
]
},
"travel_budget": {
"description": "Requested pre-approval travel budget limit (non-negative decimal in company currency).",
"format": "double",
"type": [
"number",
"null"
]
},
"trip_name": {
"default": null,
"description": "Trip title or short description (`0..=255` chars).",
"maxLength": 255,
"type": [
"string",
"null"
]
},
"weekend_works": {
"description": "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).",
"items": {
"$ref": "#/$defs/TripDraftWeekendWorkParam"
},
"maxItems": 50,
"type": [
"array",
"null"
]
}
},
"type": "object"
}Step 2 · actionTrip creationtrip_confirmCreates or updates the trip from the prepared draft after you say yes.
If your company requires pre-approval, approvers get a notification.
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.Technical descriptions are shown as the model sees them.
- In your app: via
tool_confirm - Changes data
- Safe to repeat
mcp:prepare
Call examples 1
Save prepared trip after explicit user confirmation
{
"quote_token": "QT_0001"
}Tool arguments. With the compact list the assistant passes them through tool_confirm.
Description for the model
Redeems a one-time quote_token from trip_prepare to create or update the trip order in core (and trigger pre-approval notifications when required). CALL WHEN: the user explicitly confirmed the prepared trip summary and quote_token is active from a prior turn. DO NOT CALL: in the same turn as trip_prepare before user review, without a valid quote_token from this conversation, or to inspect/list trips (use trip_get or trip_list).
JSON Schema
{
"additionalProperties": false,
"properties": {
"quote_token": {
"description": "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.",
"maxLength": 64,
"minLength": 1,
"type": "string"
}
},
"required": [
"quote_token"
],
"type": "object"
}Until you confirm step 2, nothing is saved, booked, or charged.
Colleagues & departments
12View colleagues and departments, and update employee profile, documents, loyalty/personal rail cards, absences, and structural analytics after your confirmation.
Colleague & guest searchemployee_searchFinds colleagues and guests by name, email, or login so they can be added to a trip.Read
The assistant does not see phone numbers, emails, or birth dates, only whether they are filled in. Documents arrive masked.
>= 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.>= 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.1..=20, default 10).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.Technical descriptions are shown as the model sees them.
- In your app: via
tool_read - Read-only
- Safe to repeat
mcp:read
Call examples 1
Find colleague by full name
{
"query": "Ivanov",
"limit": 10
}Tool arguments. With the compact list the assistant passes them through tool_read.
Description for the model
Searches active colleagues, travelers, and external guests in the permitted company and departments by full name (Cyrillic/Latin), email, or login (tab number is not supported), returning home city, home rail hub, contact/birth-date readiness booleans (without raw PII), masked travel documents, expiry status, citizenship, active avia loyalty carriers, RZD-Bonus cards, and active corporate/personal rail discount cards. Regular employees inspect their own profile only. CALL WHEN: finding a colleague or guest before viewing trips or policies, or checking travel documents and rail/avia cards. DO NOT CALL: to search trips by PNR or dates (use trip_list), switch companies (use company_select), or inspect service pricing (use trip_service_get).
JSON Schema
{
"additionalProperties": false,
"properties": {
"company_id": {
"default": null,
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
},
"department_id": {
"default": null,
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
},
"limit": {
"default": null,
"description": "Maximum number of active employees to return (`1..=20`, default `10`).",
"format": "uint8",
"maximum": 20,
"minimum": 1,
"type": [
"integer",
"null"
]
},
"query": {
"default": null,
"description": "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`.",
"maxLength": 120,
"type": [
"string",
"null"
]
}
},
"type": "object"
}Employee profileemployee_getShows an employee profile: departments, settings, masked travel documents, loyalty and rail discount cards, absence periods, and structural analytics.Read
Main/additional phones and emails, documents, loyalty cards, and personal rail card codes arrive masked; raw contacts, login, and birth date are omitted.
1..=50, default 20).0).1..=50, default 20).0).>= 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.1..=50, default 20).5 more optional
0).1..=50, default 20).0).["all"]). Specify a subset such as ["summary", "documents"] or ["absences"] to inspect only specific parts of the profile.allsummarydocumentsbonus_cardsrail_discountsabsencesanalytics>= 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.Technical descriptions are shown as the model sees them.
- In your app: via
tool_read - Read-only
- Safe to repeat
mcp:read
Call examples 2
Inspect caller's own full profile
{}Inspect colleague documents and absences only
{
"user_id": 20015,
"sections": [
"summary",
"documents",
"absences"
]
}Tool arguments. With the compact list the assistant passes them through tool_read.
Description for the model
Returns an employee profile card (caller's own profile when user_id is omitted, or a permitted colleague): job title, gender, departments, account status, locale/currency/time zone, home city/rail hub, masked main/additional phones and emails with readiness flags (no raw email/phone/birth date), masked travel documents with issue/expiry/IIN, masked airline/RZD loyalty cards, active European rail cards (personal assignment_id and masked code), absences with substitutes, and analytics. Supports section filtering and pagination (TTL = 0). CALL WHEN: inspecting a known employee's profile, masked contacts, document validity, loyalty/rail cards, absences, or analytics. DO NOT CALL: to search colleagues by name/email (use employee_search), inspect travel policy limits (use policy_get), or list company departments (use department_list).
JSON Schema
{
"$defs": {
"EmployeeProfileSectionParam": {
"description": "Profile section selector for `employee_get`.",
"oneOf": [
{
"const": "all",
"description": "Load profile summary together with documents, loyalty cards, rail discount cards, absences, and structural analytics.",
"type": "string"
},
{
"const": "summary",
"description": "Load only core employee summary, settings, and department memberships without extra section RPC calls.",
"type": "string"
},
{
"const": "documents",
"description": "Load masked employee travel documents with expiry status and warnings.",
"type": "string"
},
{
"const": "bonus_cards",
"description": "Load masked airline and RZD-Bonus loyalty cards.",
"type": "string"
},
{
"const": "rail_discounts",
"description": "Load active corporate and personal European rail discount cards.",
"type": "string"
},
{
"const": "absences",
"description": "Load active periods of absence and assigned substitutes.",
"type": "string"
},
{
"const": "analytics",
"description": "Load company structural analytics assigned to the employee profile.",
"type": "string"
}
]
}
},
"additionalProperties": false,
"properties": {
"absences_limit": {
"default": null,
"description": "Maximum number of absence periods to return per page (`1..=50`, default `20`).",
"format": "uint8",
"maximum": 50,
"minimum": 1,
"type": [
"integer",
"null"
]
},
"absences_offset": {
"default": null,
"description": "Zero-based pagination offset for the absence periods section (default `0`).",
"format": "uint32",
"minimum": 0,
"type": [
"integer",
"null"
]
},
"bonus_cards_limit": {
"default": null,
"description": "Maximum number of loyalty cards to return per page (`1..=50`, default `20`).",
"format": "uint8",
"maximum": 50,
"minimum": 1,
"type": [
"integer",
"null"
]
},
"bonus_cards_offset": {
"default": null,
"description": "Zero-based pagination offset for the loyalty cards section (default `0`).",
"format": "uint32",
"minimum": 0,
"type": [
"integer",
"null"
]
},
"company_id": {
"default": null,
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
},
"documents_limit": {
"default": null,
"description": "Maximum number of documents to return per page (`1..=50`, default `20`).",
"format": "uint8",
"maximum": 50,
"minimum": 1,
"type": [
"integer",
"null"
]
},
"documents_offset": {
"default": null,
"description": "Zero-based pagination offset for the documents section (default `0`).",
"format": "uint32",
"minimum": 0,
"type": [
"integer",
"null"
]
},
"rail_discounts_limit": {
"default": null,
"description": "Maximum number of rail discount cards to return per page (`1..=50`, default `20`).",
"format": "uint8",
"maximum": 50,
"minimum": 1,
"type": [
"integer",
"null"
]
},
"rail_discounts_offset": {
"default": null,
"description": "Zero-based pagination offset for the European rail discount cards section (default `0`).",
"format": "uint32",
"minimum": 0,
"type": [
"integer",
"null"
]
},
"sections": {
"description": "Sections to load (default `[\"all\"]`). Specify a subset such as `[\"summary\", \"documents\"]` or `[\"absences\"]` to inspect only specific parts of the profile.",
"items": {
"$ref": "#/$defs/EmployeeProfileSectionParam"
},
"type": "array"
},
"user_id": {
"default": null,
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
}
},
"type": "object"
}Company departmentsdepartment_listLists departments in the active company together with their heads and member counts.Read
>= 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.1..=50, default 25).0).0..=120 chars) matching department name or department head name.Technical descriptions are shown as the model sees them.
- In your app: via
tool_read - Read-only
- Safe to repeat
mcp:read
Call examples 1
List departments in active company
{
"limit": 25
}Tool arguments. With the compact list the assistant passes them through tool_read.
Description for the model
Lists or searches departments in the active company (up to 50 per page, default 25) with department head name/position, active member counts, and markers for the caller's own primary and additional departments (TTL = 0). Regular employees and department-restricted coordinators see only their own departments. CALL WHEN: exploring company department structure, locating a department_id, or finding who leads each department. DO NOT CALL: to inspect individual department members (use department_get), search colleagues by email/name (use employee_search), or switch active companies (use company_select).
JSON Schema
{
"additionalProperties": false,
"properties": {
"company_id": {
"default": null,
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
},
"limit": {
"default": null,
"description": "Maximum number of departments to return per page (`1..=50`, default `25`).",
"format": "uint8",
"maximum": 50,
"minimum": 1,
"type": [
"integer",
"null"
]
},
"offset": {
"default": null,
"description": "Zero-based pagination offset for the department list (default `0`).",
"format": "uint32",
"minimum": 0,
"type": [
"integer",
"null"
]
},
"query": {
"default": null,
"description": "Optional case-insensitive search substring (`0..=120` chars) matching department name or department head name.",
"maxLength": 120,
"type": [
"string",
"null"
]
}
},
"type": "object"
}Department detailsdepartment_getShows a department's head and paginated member list with filtering by name or job title.Read
Regular employees can only view their own department; contact details and birth dates are never exposed.
>= 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.>= 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.true to include inactive, expired, or locked members alongside active department members (default false).0..=120 chars) filtering department members by full name or job title.1..=50, default 25).0).Technical descriptions are shown as the model sees them.
- In your app: via
tool_read - Read-only
- Safe to repeat
mcp:read
Call examples 1
Inspect department head and active members
{
"department_id": 21,
"members_limit": 25
}Tool arguments. With the compact list the assistant passes them through tool_read.
Description for the model
Returns details of a company department by department_id: department head, active member count, and paginated member roster (up to 50 per page, default 25) with optional name/title search and include_inactive toggle, marking whether this is each member's primary or additional department without exposing raw PII (TTL = 0). Regular employees and department-restricted coordinators may inspect only their own departments. CALL WHEN: checking who leads a department or listing members of a known department_id. DO NOT CALL: without a department_id (call department_list first), to inspect an employee's documents/absences (use employee_get), or to check travel policy limits (use policy_get).
JSON Schema
{
"additionalProperties": false,
"properties": {
"company_id": {
"default": null,
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
},
"department_id": {
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": "integer"
},
"include_inactive": {
"default": false,
"description": "Set `true` to include inactive, expired, or locked members alongside active department members (default `false`).",
"type": "boolean"
},
"member_search": {
"default": null,
"description": "Optional case-insensitive substring (`0..=120` chars) filtering department members by full name or job title.",
"maxLength": 120,
"type": [
"string",
"null"
]
},
"members_limit": {
"default": null,
"description": "Maximum number of members to return per page (`1..=50`, default `25`).",
"format": "uint8",
"maximum": 50,
"minimum": 1,
"type": [
"integer",
"null"
]
},
"members_offset": {
"default": null,
"description": "Zero-based pagination offset for the filtered member list (default `0`).",
"format": "uint32",
"minimum": 0,
"type": [
"integer",
"null"
]
}
},
"required": [
"department_id"
],
"type": "object"
}Confirm employee profile update
Actions · two stepsStep 1 · pre-checkEmployee profile pre-checkemployee_profile_prepareValidates permissions, name/birth-date rules, country phone masks, and directories, then returns a diff (masked current values, normalized proposed values for review) without saving.
Saves nothing; warns if changing phone or email will reset 2FA and enforces the hide_employee_pii restriction.
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.Child fields · 2
>= 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.null, "", or "#noanalitic#" clears an optional analytic; required analytics cannot be cleared; list analytics must match an allowed option).>= 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.setUserPhone with duplicate-phone detection (PHONE_DUPLICATE). Blocked when hide_employee_pii is enabled.Child fields · 3
+79990001122, 7..=15 digits).true only after the user explicitly confirmed overriding a PHONE_DUPLICATE conflict returned by employee_profile_confirm.user.setUser (read-merge-write). Blocked when hide_employee_pii is enabled.Child fields · 21
"" marks existing additional email for deletion)."" marks existing additional phone for deletion).additional_phone.RUB, AED, USD, or currency ID; allowed only when company multi-currency expenses are enabled).YYYY-MM-DD format (1900-01-01 through today).info.getCountryList.true to clear the employee's home departure city (userHomeCityId = 0); cannot be combined with home_city or home_city_id."" clears email). Changing email resets email-based 2FA if enabled.1..=100 chars, letters, spaces, and hyphens only; no digits; no leading/trailing hyphen).1..=100 ASCII Latin letters, spaces, and hyphens; allowed only on Russian point of sale or when translit override is enabled).2..=120 chars) resolved via hotelmulti.fastSearch (city/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.1..=100 chars, letters, spaces, and hyphens only; no digits; single - allowed).1..=100 ASCII Latin letters, spaces, and hyphens; allowed only on Russian point of sale or when translit override is enabled).user.setUser ("" clears; do not combine with phone_update). Changing phone resets SMS/phone 2FA if enabled.main_phone.0..=100 chars; pass empty string "" to clear; no digits).0..=255 chars; "" clears; blocked when hidden by company policy).0..=255 chars; "" clears).M or F).MF>= 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.Technical descriptions are shown as the model sees them.
- In your app: via
tool_prepare - Read-only
- Safe to repeat
mcp:prepare
Call examples 3
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"
}
]
}Tool arguments. With the compact list the assistant passes them through tool_prepare.
Description for the model
Strictly read-only pre-check for updating an employee's profile fields (name, gender, birth date, citizenship, contacts, home city, job title, personnel number, multi-currency base country/currency), duplicate-checked main phone, or structural analytics. Validates permissions, UserRuleList rules, country phone masks, company flags, live directories, and hide_employee_pii, then returns a diff (masked existing values, normalized proposed values for review) with 2FA reset warnings and a one-time quote_token without writing to core. CALL WHEN: preparing edits to the caller's own profile or a colleague's profile/analytics for user review before saving. DO NOT CALL: to save changes (use employee_profile_confirm after user approval), to read a profile (use employee_get), or to change login, password, roles, departments, or lock status.
JSON Schema
{
"$defs": {
"EmployeeAnalyticPatchItemParams": {
"additionalProperties": false,
"description": "Single structural analytic assignment for `employee_profile_prepare` (`user.setAnalyticMass`).",
"properties": {
"analytic_id": {
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": "integer"
},
"value": {
"default": null,
"description": "New value for the analytic (`null`, `\"\"`, or `\"#noanalitic#\"` clears an optional analytic; required analytics cannot be cleared; list analytics must match an allowed option).",
"maxLength": 255,
"type": [
"string",
"null"
]
}
},
"required": [
"analytic_id"
],
"type": "object"
},
"EmployeePhoneUpdateParams": {
"additionalProperties": false,
"description": "Primary phone update with server-side duplicate check (`user.setUserPhone`).",
"properties": {
"allow_duplicate_phone": {
"default": false,
"description": "Set `true` only after the user explicitly confirmed overriding a `PHONE_DUPLICATE` conflict returned by `employee_profile_confirm`.",
"type": "boolean"
},
"country": {
"default": null,
"description": "Optional phone country ISO-2 code, name, or directory ID (inferred from calling code or profile if omitted).",
"maxLength": 120,
"minLength": 1,
"type": [
"string",
"null"
]
},
"phone_number": {
"description": "Full phone number including country code (for example `+79990001122`, `7..=15` digits).",
"maxLength": 32,
"minLength": 7,
"type": "string"
}
},
"required": [
"phone_number"
],
"type": "object"
},
"EmployeeProfilePatchParams": {
"additionalProperties": false,
"description": "Editable personal, contact, and company-profile fields for `employee_profile_prepare` (`user.setUser` read-merge-write).",
"properties": {
"additional_email": {
"default": null,
"description": "Additional contact email (`\"\"` marks existing additional email for deletion).",
"maxLength": 254,
"type": [
"string",
"null"
]
},
"additional_phone": {
"default": null,
"description": "Additional contact phone number (`\"\"` marks existing additional phone for deletion).",
"maxLength": 32,
"type": [
"string",
"null"
]
},
"additional_phone_country": {
"default": null,
"description": "Optional phone country ISO-2 code, name, or ID for `additional_phone`.",
"maxLength": 120,
"minLength": 1,
"type": [
"string",
"null"
]
},
"base_country": {
"default": null,
"description": "Base country for multi-currency expenses (ISO-2 code, name, or ID; allowed only when company multi-currency expenses are enabled).",
"maxLength": 120,
"minLength": 1,
"type": [
"string",
"null"
]
},
"base_currency": {
"default": null,
"description": "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).",
"maxLength": 16,
"minLength": 1,
"type": [
"string",
"null"
]
},
"birth_date": {
"default": null,
"description": "Date of birth in `YYYY-MM-DD` format (`1900-01-01` through today).",
"maxLength": 10,
"minLength": 10,
"type": [
"string",
"null"
]
},
"citizenship_country": {
"default": null,
"description": "Citizenship country ISO-2 code, country name, or directory ID resolved via `info.getCountryList`.",
"maxLength": 120,
"minLength": 1,
"type": [
"string",
"null"
]
},
"clear_home_city": {
"default": false,
"description": "Set `true` to clear the employee's home departure city (`userHomeCityId = 0`); cannot be combined with `home_city` or `home_city_id`.",
"type": "boolean"
},
"email": {
"default": null,
"description": "Primary contact email address (`\"\"` clears email). Changing email resets email-based 2FA if enabled.",
"maxLength": 254,
"type": [
"string",
"null"
]
},
"first_name": {
"default": null,
"description": "Employee first name (`1..=100` chars, letters, spaces, and hyphens only; no digits; no leading/trailing hyphen).",
"maxLength": 100,
"minLength": 1,
"type": [
"string",
"null"
]
},
"first_name_lat": {
"default": null,
"description": "Latin first name (`1..=100` ASCII Latin letters, spaces, and hyphens; allowed only on Russian point of sale or when translit override is enabled).",
"maxLength": 100,
"minLength": 1,
"type": [
"string",
"null"
]
},
"home_city": {
"default": null,
"description": "Home departure city name query (`2..=120` chars) resolved via `hotelmulti.fastSearch` (`city`/`City`).",
"maxLength": 120,
"minLength": 2,
"type": [
"string",
"null"
]
},
"home_city_id": {
"default": null,
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
},
"last_name": {
"default": null,
"description": "Employee last name (`1..=100` chars, letters, spaces, and hyphens only; no digits; single `-` allowed).",
"maxLength": 100,
"minLength": 1,
"type": [
"string",
"null"
]
},
"last_name_lat": {
"default": null,
"description": "Latin last name (`1..=100` ASCII Latin letters, spaces, and hyphens; allowed only on Russian point of sale or when translit override is enabled).",
"maxLength": 100,
"minLength": 1,
"type": [
"string",
"null"
]
},
"main_phone": {
"default": null,
"description": "Primary phone number updated directly via `user.setUser` (`\"\"` clears; do not combine with `phone_update`). Changing phone resets SMS/phone 2FA if enabled.",
"maxLength": 32,
"type": [
"string",
"null"
]
},
"main_phone_country": {
"default": null,
"description": "Optional phone country ISO-2 code, name, or ID for `main_phone`.",
"maxLength": 120,
"minLength": 1,
"type": [
"string",
"null"
]
},
"middle_name": {
"default": null,
"description": "Employee middle name (`0..=100` chars; pass empty string `\"\"` to clear; no digits).",
"maxLength": 100,
"type": [
"string",
"null"
]
},
"personnel_number": {
"default": null,
"description": "Employee personnel / payroll number (`0..=255` chars; `\"\"` clears; blocked when hidden by company policy).",
"maxLength": 255,
"type": [
"string",
"null"
]
},
"position": {
"default": null,
"description": "Job title / position (`0..=255` chars; `\"\"` clears).",
"maxLength": 255,
"type": [
"string",
"null"
]
},
"sex": {
"anyOf": [
{
"$ref": "#/$defs/EmployeeSexParam"
},
{
"type": "null"
}
],
"description": "Employee gender (`M` or `F`)."
}
},
"type": "object"
},
"EmployeeSexParam": {
"description": "Gender enum supported in `employee_profile_prepare`.",
"enum": [
"M",
"F"
],
"type": "string"
}
},
"additionalProperties": false,
"properties": {
"analytics": {
"description": "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.",
"items": {
"$ref": "#/$defs/EmployeeAnalyticPatchItemParams"
},
"maxItems": 50,
"minItems": 1,
"type": [
"array",
"null"
]
},
"company_id": {
"default": null,
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
},
"phone_update": {
"anyOf": [
{
"$ref": "#/$defs/EmployeePhoneUpdateParams"
},
{
"type": "null"
}
],
"description": "Optional primary phone update applied via `user.setUserPhone` with duplicate-phone detection (`PHONE_DUPLICATE`). Blocked when `hide_employee_pii` is enabled."
},
"profile_patch": {
"anyOf": [
{
"$ref": "#/$defs/EmployeeProfilePatchParams"
},
{
"type": "null"
}
],
"description": "Optional personal, contact, and profile field updates applied via `user.setUser` (`read-merge-write`). Blocked when `hide_employee_pii` is enabled."
},
"user_id": {
"default": null,
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
}
},
"type": "object"
}Step 2 · actionConfirm employee profile updateemployee_profile_confirmSaves the prepared profile, phone, and structural analytics changes after your explicit confirmation.
Re-checks the live portal profile for concurrent edits and aborts cleanly on a duplicate phone before writing anything.
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.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.Technical descriptions are shown as the model sees them.
- In your app: via
tool_confirm - Changes data
- Safe to repeat
mcp:confirm
Call examples 1
Confirm prepared employee profile update
{
"quote_token": "qt_example_token",
"target_user_id": 20015
}Tool arguments. With the compact list the assistant passes them through tool_confirm.
Description for the model
Redeems a one-time quote_token from employee_profile_prepare to save employee profile, duplicate-checked phone, and structural analytics updates in strict order (setUserPhone -> setUser -> setAnalyticMass). Re-fetches the live portal profile to guard against concurrent edits and preserves protected fields unchanged (login, roles, travel policies, departments, lock flag). On PHONE_DUPLICATE aborts before any writes with zero partial mutations. CALL WHEN: the user explicitly confirmed the employee_profile_prepare diff and warnings in a prior turn. DO NOT CALL: in the same turn as employee_profile_prepare without user approval, without a valid quote_token from this conversation, or to inspect a profile (use employee_get).
JSON Schema
{
"additionalProperties": false,
"properties": {
"quote_token": {
"description": "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.",
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"target_user_id": {
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": "integer"
}
},
"required": [
"quote_token",
"target_user_id"
],
"type": "object"
}Until you confirm step 2, nothing is saved, booked, or charged.
Confirm employee document change
Actions · two stepsStep 1 · pre-checkEmployee document pre-checkemployee_document_prepareValidates permissions, document number masks, expiry dates, age thresholds, and IIN for creating, updating, or deleting an employee document without saving.
Saves nothing; masks existing values, shows normalized proposed number and IIN for review, and is blocked when hide_employee_pii is enabled.
create, update, or delete).createupdatedelete>= 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.create or update (omit when action=delete).Child fields · 10
YYYY-MM-DD format (required for Z, I, KZP, KZZ; ignored for P).YYYY-MM-DD format (required for KZP; must be strictly earlier than date_of_expiry).P: 10 digits, Z: 9 digits, I: 2..16 Latin/digits, KZP: 9 digits, KZZ: 1 letter + 8 digits; required on create).P, Z, S, I, KZP, KZZ; required when action=create).PZSIKZPKZZZ, I, KZP, KZZ; cleared by core for P and S).0..=255 chars; "" clears).info.getCountryList (stored by core only for I and S; ignored for P, Z, KZP, KZZ; cannot be cleared once set).Z, I, KZP, KZZ; cleared by core for P and S).Z, I, KZP, KZZ; cleared by core for P and S).KZP and KZZ, optional 0 or 12 digits for I).>= 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.>= 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.Technical descriptions are shown as the model sees them.
- In your app: via
tool_prepare - Read-only
- Safe to repeat
mcp:prepare
Call examples 2
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
}Tool arguments. With the compact list the assistant passes them through tool_prepare.
Description for the model
Strictly read-only pre-check for creating, updating, or soft-deleting an employee identity document (types P, Z, S, I, KZP, KZZ). Validates permissions, hide_employee_pii=false, ownership, number masks, age thresholds (>=14 for P, >=16 for KZP), 12-digit IIN, expiry/issue dates, and max 2 foreign documents (I). Returns a diff (masked existing number, normalized proposed number/IIN for review) and one-time quote_token without writing. CALL WHEN: the user asks to add, edit, or delete a passport, birth certificate, or ID on an employee profile. DO NOT CALL: to read existing documents (use employee_get), to save changes directly (use employee_document_confirm after user approval), or when hide_employee_pii is enabled.
JSON Schema
{
"$defs": {
"EmployeeDocumentActionParam": {
"description": "Operation kind for `employee_document_prepare`.",
"oneOf": [
{
"const": "create",
"description": "Create a new document on the employee profile.",
"type": "string"
},
{
"const": "update",
"description": "Update an existing document (`document_id` required).",
"type": "string"
},
{
"const": "delete",
"description": "Soft-delete an existing document (`document_id` required).",
"type": "string"
}
]
},
"EmployeeDocumentFieldsParams": {
"additionalProperties": false,
"description": "Editable fields for creating or updating an employee identity document (`employee_document_prepare`).",
"properties": {
"date_of_expiry": {
"default": null,
"description": "Document expiry date in `YYYY-MM-DD` format (required for `Z`, `I`, `KZP`, `KZZ`; ignored for `P`).",
"maxLength": 10,
"type": [
"string",
"null"
]
},
"date_of_issue": {
"default": null,
"description": "Document issue date in `YYYY-MM-DD` format (required for `KZP`; must be strictly earlier than `date_of_expiry`).",
"maxLength": 10,
"type": [
"string",
"null"
]
},
"document_number": {
"default": null,
"description": "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`).",
"maxLength": 32,
"minLength": 1,
"type": [
"string",
"null"
]
},
"document_type": {
"anyOf": [
{
"$ref": "#/$defs/EmployeeDocumentTypeParam"
},
{
"type": "null"
}
],
"description": "Document type code (`P`, `Z`, `S`, `I`, `KZP`, `KZZ`; required when `action=create`)."
},
"first_name": {
"default": null,
"description": "First name as printed in the document (`Z`, `I`, `KZP`, `KZZ`; cleared by core for `P` and `S`).",
"maxLength": 100,
"type": [
"string",
"null"
]
},
"issued_by": {
"default": null,
"description": "Issuing authority text (`0..=255` chars; `\"\"` clears).",
"maxLength": 255,
"type": [
"string",
"null"
]
},
"issuing_country": {
"default": null,
"description": "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).",
"maxLength": 120,
"type": [
"string",
"null"
]
},
"last_name": {
"default": null,
"description": "Last name as printed in the document (`Z`, `I`, `KZP`, `KZZ`; cleared by core for `P` and `S`).",
"maxLength": 100,
"type": [
"string",
"null"
]
},
"middle_name": {
"default": null,
"description": "Middle name as printed in the document (`Z`, `I`, `KZP`, `KZZ`; cleared by core for `P` and `S`).",
"maxLength": 100,
"type": [
"string",
"null"
]
},
"resident_number": {
"default": null,
"description": "12-digit Kazakhstan resident identification number (IIN; required for `KZP` and `KZZ`, optional 0 or 12 digits for `I`).",
"maxLength": 12,
"type": [
"string",
"null"
]
}
},
"type": "object"
},
"EmployeeDocumentTypeParam": {
"description": "Supported travel identity document types in `employee_document_prepare`.",
"oneOf": [
{
"const": "P",
"description": "Russian internal passport (`P`, 10 digits, employee age >= 14).",
"type": "string"
},
{
"const": "Z",
"description": "Russian international passport (`Z`, 9 digits, expiry required).",
"type": "string"
},
{
"const": "S",
"description": "Birth certificate (`S`, Roman I..XXXV + 2 Cyrillic letters + 6 digits for RU citizens).",
"type": "string"
},
{
"const": "I",
"description": "Foreign passport/document (`I`, 2..16 Latin/digits, expiry required, max 2 per employee).",
"type": "string"
},
{
"const": "KZP",
"description": "Kazakhstan national ID (`KZP`, 9 digits, 12-digit IIN, issue & expiry dates, age >= 16).",
"type": "string"
},
{
"const": "KZZ",
"description": "Kazakhstan international passport (`KZZ`, 1 Latin letter + 8 digits, 12-digit IIN, expiry required).",
"type": "string"
}
]
}
},
"additionalProperties": false,
"properties": {
"action": {
"$ref": "#/$defs/EmployeeDocumentActionParam",
"description": "Document mutation action (`create`, `update`, or `delete`)."
},
"company_id": {
"default": null,
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
},
"document_fields": {
"anyOf": [
{
"$ref": "#/$defs/EmployeeDocumentFieldsParams"
},
{
"type": "null"
}
],
"description": "Document field values for `create` or `update` (omit when `action=delete`)."
},
"document_id": {
"default": null,
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
},
"user_id": {
"default": null,
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
}
},
"required": [
"action"
],
"type": "object"
}Step 2 · actionConfirm employee document changeemployee_document_confirmCreates, updates, or soft-deletes the prepared employee document after your explicit confirmation.Irreversible
Re-checks live employee documents on the portal against concurrent edits before writing.
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.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.Technical descriptions are shown as the model sees them.
- In your app: via
tool_confirm - Changes data
- Safe to repeat
- Cannot be undone
mcp:confirm
Call examples 1
Confirm prepared employee document change
{
"quote_token": "qt_doc_example",
"target_user_id": 20015
}Tool arguments. With the compact list the assistant passes them through tool_confirm.
Description for the model
Redeems a one-time quote_token from employee_document_prepare to create, update, or soft-delete one employee identity document via document.setDocuments. Re-checks live documents against concurrent edits (baseline_fingerprint) before writing and preserves unedited fields. Supports idempotent replay on the same quote_token. CALL WHEN: the user explicitly confirmed the prepared masked document diff in a prior turn and wants to save or delete it. DO NOT CALL: in the same turn as employee_document_prepare without explicit user confirmation, without a valid quote_token from this conversation, or to read documents (use employee_get).
JSON Schema
{
"additionalProperties": false,
"properties": {
"quote_token": {
"description": "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.",
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"target_user_id": {
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": "integer"
}
},
"required": [
"quote_token",
"target_user_id"
],
"type": "object"
}Until you confirm step 2, nothing is saved, booked, or charged.
Confirm employee card change
Actions · two stepsStep 1 · pre-checkEmployee card pre-checkemployee_card_prepareValidates permissions, carrier directory, card number format, Aeroflot tier, and personal rail discount card rules without saving.
Manages loyalty cards and personal employee rail discount cards only (company-wide corporate rail discounts are excluded); blocked when hide_employee_pii is enabled.
upsert to add/update or delete to soft-delete).upsertdeletebonus for airline/RZD-Bonus cards, or rail_discount for personal employee rail discount cards only).bonusrail_discountcard_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.action=upsert (omit when action=delete).Child fields · 7
/^[A-Za-z0-9]+$/, 1..=64 chars; card_kind=bonus only).BahnBonus; card_kind=rail_discount only).SU, S7, EK, RZHDB), carrier name, or directory ID resolved via info.getAirlineList (card_kind=bonus only; required when adding a new bonus card).>= 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.SU) loyalty tier (Basic, Basic Plus, Basic Pro, Silver, Gold, Platinum, Infinite Pro, Infinite; "" clears; card_kind=bonus with SU only).YYYY-MM-DD format ("" clears; card_kind=rail_discount only).YYYY-MM-DD format ("" clears; card_kind=rail_discount only).>= 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.>= 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.Technical descriptions are shown as the model sees them.
- In your app: via
tool_prepare - Read-only
- Safe to repeat
mcp:prepare
Call examples 2
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"
}
}Tool arguments. With the compact list the assistant passes them through tool_prepare.
Description for the model
Strictly read-only pre-check for adding, updating, or deleting an employee loyalty card (card_kind=bonus: airline or RZD-Bonus) or personal rail discount card (card_kind=rail_discount: strictly personal user_id>0 assignments; company-wide corporate rail discounts are excluded). Validates permissions, hide_employee_pii=false, carrier/rail catalog, Aeroflot tier, 12-digit BahnBonus code, and duplicates. Returns a diff (masked existing number, normalized proposed number for review) and quote_token without writing. CALL WHEN: adding, updating, or deleting an employee's frequent-flyer, RZD-Bonus, or personal rail card. DO NOT CALL: to read cards (use employee_get), to edit corporate company-wide rail discounts, or to save directly (use employee_card_confirm).
JSON Schema
{
"$defs": {
"EmployeeCardActionParam": {
"description": "Operation kind for `employee_card_prepare`.",
"oneOf": [
{
"const": "upsert",
"description": "Add a new card (`card_id` omitted) or update an existing card (`card_id` provided).",
"type": "string"
},
{
"const": "delete",
"description": "Soft-delete an existing card (`card_id` required).",
"type": "string"
}
]
},
"EmployeeCardKindParam": {
"description": "Card category managed by `employee_card_prepare` / `employee_card_confirm`.",
"oneOf": [
{
"const": "bonus",
"description": "Airline loyalty (frequent-flyer) card or RZD-Bonus card (`card.setCards`).",
"type": "string"
},
{
"const": "rail_discount",
"description": "Personal European rail discount or loyalty card assigned to this employee (`user_id > 0`; company-wide corporate rail discounts are excluded).",
"type": "string"
}
]
},
"EmployeeCardPayloadParams": {
"additionalProperties": false,
"description": "Editable fields for adding or updating a loyalty card (`bonus`) or personal rail discount card (`rail_discount`).",
"properties": {
"card_number": {
"default": null,
"description": "Loyalty card number using Latin letters and digits only (`/^[A-Za-z0-9]+$/`, `1..=64` chars; `card_kind=bonus` only).",
"maxLength": 64,
"minLength": 1,
"type": [
"string",
"null"
]
},
"card_number_code": {
"default": null,
"description": "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).",
"maxLength": 64,
"type": [
"string",
"null"
]
},
"carrier": {
"default": null,
"description": "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).",
"maxLength": 120,
"minLength": 1,
"type": [
"string",
"null"
]
},
"rail_card_id": {
"default": null,
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
},
"tier": {
"default": null,
"description": "Aeroflot (`SU`) loyalty tier (`Basic`, `Basic Plus`, `Basic Pro`, `Silver`, `Gold`, `Platinum`, `Infinite Pro`, `Infinite`; `\"\"` clears; `card_kind=bonus` with `SU` only).",
"maxLength": 32,
"type": [
"string",
"null"
]
},
"validity_from": {
"default": null,
"description": "Optional personal rail card validity start date in `YYYY-MM-DD` format (`\"\"` clears; `card_kind=rail_discount` only).",
"maxLength": 10,
"type": [
"string",
"null"
]
},
"validity_until": {
"default": null,
"description": "Optional personal rail card validity end date in `YYYY-MM-DD` format (`\"\"` clears; `card_kind=rail_discount` only).",
"maxLength": 10,
"type": [
"string",
"null"
]
}
},
"type": "object"
}
},
"additionalProperties": false,
"properties": {
"action": {
"$ref": "#/$defs/EmployeeCardActionParam",
"description": "Card mutation action (`upsert` to add/update or `delete` to soft-delete)."
},
"card_id": {
"default": null,
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
},
"card_kind": {
"$ref": "#/$defs/EmployeeCardKindParam",
"description": "Card category (`bonus` for airline/RZD-Bonus cards, or `rail_discount` for personal employee rail discount cards only)."
},
"card_payload": {
"anyOf": [
{
"$ref": "#/$defs/EmployeeCardPayloadParams"
},
{
"type": "null"
}
],
"description": "Card fields for `action=upsert` (omit when `action=delete`)."
},
"company_id": {
"default": null,
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
},
"user_id": {
"default": null,
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
}
},
"required": [
"card_kind",
"action"
],
"type": "object"
}Step 2 · actionConfirm employee card changeemployee_card_confirmAdds, updates, or deletes the prepared loyalty or personal rail discount card after your explicit confirmation.Irreversible
Re-checks live employee cards before writing and preserves card details during soft deletion.
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.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.Technical descriptions are shown as the model sees them.
- In your app: via
tool_confirm - Changes data
- Safe to repeat
- Cannot be undone
mcp:confirm
Call examples 1
Confirm prepared employee card change
{
"quote_token": "qt_card_example",
"target_user_id": 20015
}Tool arguments. With the compact list the assistant passes them through tool_confirm.
Description for the model
Redeems a one-time quote_token from employee_card_prepare to save or soft-delete one employee loyalty card (card.setCards) or personal rail discount assignment (card.setRailDiscounts, user_id>0 only). Re-checks live cards against concurrent edits (baseline_fingerprint) before writing and supports idempotent replay on the same quote_token. CALL WHEN: the user explicitly confirmed the prepared masked card preview in a prior turn and wants to save or delete it. DO NOT CALL: in the same turn as employee_card_prepare without explicit user confirmation, without a valid quote_token from this conversation, or to read cards (use employee_get).
JSON Schema
{
"additionalProperties": false,
"properties": {
"quote_token": {
"description": "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.",
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"target_user_id": {
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": "integer"
}
},
"required": [
"quote_token",
"target_user_id"
],
"type": "object"
}Until you confirm step 2, nothing is saved, booked, or charged.
Confirm employee absence change
Actions · two stepsStep 1 · pre-checkEmployee absence pre-checkemployee_absence_prepareValidates absence dates, checks for overlaps, and verifies deputy assignment permissions without saving.
Saves nothing; catches overlapping absence periods upfront and prevents standard employees from assigning deputies.
create, update, or delete).createupdatedelete>= 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.true to remove the assigned deputy on update (not allowed for Employee role; cannot be combined with substitute_user_id).>= 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.YYYY-MM-DD format (required on create; must be >= start_date).YYYY-MM-DD format (required on create; cannot be in the past on create).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.>= 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.Technical descriptions are shown as the model sees them.
- In your app: via
tool_prepare - Read-only
- Safe to repeat
mcp:prepare
Call examples 2
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
}Tool arguments. With the compact list the assistant passes them through tool_prepare.
Description for the model
Strictly read-only pre-check for creating, updating, or deleting an employee absence period (vacation/out-of-office) and optional deputy. Validates permissions, clean YYYY-MM-DD dates (start_date<=end_date, not in the past), overlaps with existing absences, and deputy eligibility (forbidden for standard Employee role; editors may assign an active colleague in the same company). Returns a preview diff and one-time quote_token without writing. CALL WHEN: scheduling, editing, or removing an employee absence period or deputy. DO NOT CALL: to view absences (use employee_get) or to save directly (use employee_absence_confirm after user confirmation).
JSON Schema
{
"$defs": {
"EmployeeAbsenceActionParam": {
"description": "Operation kind for `employee_absence_prepare`.",
"oneOf": [
{
"const": "create",
"description": "Create a new absence period.",
"type": "string"
},
{
"const": "update",
"description": "Update an existing absence period (`absence_id` required).",
"type": "string"
},
{
"const": "delete",
"description": "Soft-delete an existing absence period (`absence_id` required).",
"type": "string"
}
]
}
},
"additionalProperties": false,
"properties": {
"absence_id": {
"default": null,
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
},
"action": {
"$ref": "#/$defs/EmployeeAbsenceActionParam",
"description": "Absence mutation action (`create`, `update`, or `delete`)."
},
"clear_substitute": {
"default": false,
"description": "Set `true` to remove the assigned deputy on `update` (not allowed for `Employee` role; cannot be combined with `substitute_user_id`).",
"type": "boolean"
},
"company_id": {
"default": null,
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
},
"end_date": {
"default": null,
"description": "Absence end date in `YYYY-MM-DD` format (required on `create`; must be `>= start_date`).",
"maxLength": 10,
"minLength": 10,
"type": [
"string",
"null"
]
},
"start_date": {
"default": null,
"description": "Absence start date in `YYYY-MM-DD` format (required on `create`; cannot be in the past on `create`).",
"maxLength": 10,
"minLength": 10,
"type": [
"string",
"null"
]
},
"substitute_user_id": {
"default": null,
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
},
"user_id": {
"default": null,
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
}
},
"required": [
"action"
],
"type": "object"
}Step 2 · actionConfirm employee absence changeemployee_absence_confirmCreates, updates, or deletes the prepared employee absence period after your explicit confirmation.Irreversible
Re-checks live portal absences for concurrent edits and sends clean calendar dates without duplicate time suffixes.
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.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.Technical descriptions are shown as the model sees them.
- In your app: via
tool_confirm - Changes data
- Safe to repeat
- Cannot be undone
mcp:confirm
Call examples 1
Confirm prepared employee absence change
{
"quote_token": "qt_absence_example",
"target_user_id": 20015
}Tool arguments. With the compact list the assistant passes them through tool_confirm.
Description for the model
Redeems a one-time quote_token from employee_absence_prepare to create, update, or soft-delete one employee absence period via user.setUserAbsence using clean YYYY-MM-DD dates. Re-checks live portal absences against concurrent edits (baseline_fingerprint) before writing and supports idempotent replay on the same quote_token. CALL WHEN: the user explicitly confirmed the prepared absence preview in a prior turn and wants to save or delete it. DO NOT CALL: in the same turn as employee_absence_prepare without explicit user confirmation, without a valid quote_token from this conversation, or to read absences (use employee_get).
JSON Schema
{
"additionalProperties": false,
"properties": {
"quote_token": {
"description": "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.",
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"target_user_id": {
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": "integer"
}
},
"required": [
"quote_token",
"target_user_id"
],
"type": "object"
}Until you confirm step 2, nothing is saved, booked, or charged.
Flights
10Search flights, compare fares and add-ons, and book or issue tickets after your confirmation.
Flight searchavia_searchSearches flights by route and dates and checks them against your travel policy right away.Read
1 = one-way, 2 = round-trip or open-jaw, 3..=6 = multi-segment) in chronological order.Child fields · 3
YYYY-MM-DD, today or later).LED, Istanbul). For other languages, pass IATA code or English name.MOW, Moscow). For other languages, pass IATA code or English name.1..=7, default 1) when searching anonymously without passenger_user_ids and without order_id.economy, comfort, business, or first, default economy).economycomfortbusinessfirst0..=6, ages 2 to 11) for anonymous search; total adults + children + infants must not exceed 7.>= 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.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).3 more optional
0..=6, under 2 years) for anonymous search; cannot exceed adults.>= 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.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.Technical descriptions are shown as the model sees them.
- In your app: via
tool_read - Read-only
- Reaches airlines and suppliers
mcp:read
Call examples 2
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
}Tool arguments. With the compact list the assistant passes them through tool_read.
Description for the model
Searches live flight offers across all stops and airlines for one-way, round-trip (including merged one-way combinations), or multi-segment routes (1 to 6 legs), applies corporate travel policy checks, saves the full snapshot under search_id for follow-up inspection, and returns facets plus top 5 offers with short codes (F1..F5). Accepts city or airport names or 3-letter IATA codes directly. CALL WHEN: searching new flights by route, dates, cabin class, and passengers or for an existing trip order_id. DO NOT CALL: to filter, sort, or paginate results of an already completed search_id (use avia_query_offers), inspect already booked tickets/PNR (use trip_get or trip_service_get), check corporate policy rules alone (use policy_get), or search colleagues (use employee_search).
JSON Schema
{
"$defs": {
"AviaCabinClassParam": {
"description": "Cabin service class supported by `avia_search`.",
"oneOf": [
{
"const": "economy",
"description": "Economy class (`class = \"y\"`).",
"type": "string"
},
{
"const": "comfort",
"description": "Comfort / premium economy class (`class = \"s\"`).",
"type": "string"
},
{
"const": "business",
"description": "Business class (`class = \"c\"`).",
"type": "string"
},
{
"const": "first",
"description": "First class (`class = \"f\"`).",
"type": "string"
}
]
},
"AviaSearchSegmentParam": {
"additionalProperties": false,
"description": "Single flight route leg for `avia_search`.",
"properties": {
"departure_date": {
"description": "Departure date in ISO format (`YYYY-MM-DD`, today or later).",
"type": "string"
},
"destination": {
"description": "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.",
"maxLength": 120,
"minLength": 1,
"type": "string"
},
"origin": {
"description": "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.",
"maxLength": 120,
"minLength": 1,
"type": "string"
}
},
"required": [
"origin",
"destination",
"departure_date"
],
"type": "object"
}
},
"additionalProperties": false,
"properties": {
"adults": {
"default": null,
"description": "Adult passenger count (`1..=7`, default `1`) when searching anonymously without `passenger_user_ids` and without `order_id`.",
"format": "uint8",
"maximum": 7,
"minimum": 1,
"type": [
"integer",
"null"
]
},
"cabin_class": {
"$ref": "#/$defs/AviaCabinClassParam",
"description": "Cabin service class (`economy`, `comfort`, `business`, or `first`, default `economy`)."
},
"children": {
"default": null,
"description": "Child passenger count (`0..=6`, ages 2 to 11) for anonymous search; total `adults + children + infants` must not exceed `7`.",
"format": "uint8",
"maximum": 6,
"minimum": 0,
"type": [
"integer",
"null"
]
},
"company_id": {
"default": null,
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
},
"direct_only": {
"default": null,
"description": "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).",
"type": [
"boolean",
"null"
]
},
"infants": {
"default": null,
"description": "Infant passenger count without seat (`0..=6`, under 2 years) for anonymous search; cannot exceed `adults`.",
"format": "uint8",
"maximum": 6,
"minimum": 0,
"type": [
"integer",
"null"
]
},
"order_id": {
"default": null,
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
},
"passenger_user_ids": {
"default": null,
"description": "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.",
"items": {
"format": "uint64",
"minimum": 1,
"type": "integer"
},
"maxItems": 7,
"minItems": 1,
"type": [
"array",
"null"
]
},
"segments": {
"description": "Route legs (`1` = one-way, `2` = round-trip or open-jaw, `3..=6` = multi-segment) in chronological order.",
"items": {
"$ref": "#/$defs/AviaSearchSegmentParam"
},
"maxItems": 6,
"minItems": 1,
"type": "array"
}
},
"required": [
"segments"
],
"type": "object"
}Filter & sortavia_query_offersNarrows down and sorts the flights found: by price, stops, time, baggage, airline.Read
Works on the flights already found and does not start a new search.
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.SU, S7, DP): every segment of every leg must match one of these carriers.true = baggage included on all segments, false = baggage not included).DP, UT) to exclude if present as marketing, operating, or validating carrier on any segment."1549", "0015", "SU 1549", "SU1549", "S7 1005").true, keep only offers compliant with corporate travel policy (in_policy).21 more optional
1..=15, default 5).>= 1, checked against the longest route leg).0 = nonstop only, up to 3).>= 1; nonstop offers pass).true, exclude offers requiring airport change during a transfer.true, exclude offers with overnight transfers.0).HH:MM-HH:MM 24h format.["SVO", "VKO"].HH:MM-HH:MM 24h format (wraps midnight if start > end, e.g. 22:00-05:00).true = free or paid refund allowed, false = strictly non-refundable; unknown states excluded when set).HH:MM-HH:MM); valid only for round-trip searches.HH:MM-HH:MM); valid only for round-trip searches.true, exclude split/merged one-way combinations (mergeOW); when false, return only merged offers.recommended, price, duration, departure_time, arrival_time; default recommended).recommendedpricedurationdeparture_timearrival_timeasc or desc; default asc).ascdescTechnical descriptions are shown as the model sees them.
- In your app: via
tool_read - Read-only
- Safe to repeat
mcp:read
Call examples 2
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
}Tool arguments. With the compact list the assistant passes them through tool_read.
Description for the model
Filters, sorts, and paginates saved flight offers from an earlier avia_search snapshot in memory (0 upstream calls) while preserving stable short codes (F1..Fn). Supports stops, max price, inclusive/excluded airlines, per-leg outbound/return airports and HH:MM-HH:MM time windows, transfer airports/duration, no overnight or airport-change transfers, baggage, refundability, travel policy, single-ticket vs merged combinations, flight numbers, sort order, and offset/limit (default 5, max 15). CALL WHEN: refining, filtering, sorting, or paging results of an existing search_id. DO NOT CALL: before avia_search, without a known search_id from this conversation, or when changing route, dates, cabin class, or passengers (call avia_search).
JSON Schema
{
"$defs": {
"AviaSortByParam": {
"description": "Sort key supported by `avia_query_offers`.",
"oneOf": [
{
"const": "recommended",
"description": "Preserve initial search ranking (`smart-pick` or default policy-first order).",
"type": "string"
},
{
"const": "price",
"description": "Sort by client `display_price`.",
"type": "string"
},
{
"const": "duration",
"description": "Sort by flight duration (`max(leg duration)` then total legs duration).",
"type": "string"
},
{
"const": "departure_time",
"description": "Sort by outbound first-leg departure date and time.",
"type": "string"
},
{
"const": "arrival_time",
"description": "Sort by final-leg arrival date and time.",
"type": "string"
}
]
},
"AviaSortOrderParam": {
"description": "Sort direction supported by `avia_query_offers`.",
"oneOf": [
{
"const": "asc",
"description": "Ascending order (lowest price, shortest duration, earliest time).",
"type": "string"
},
{
"const": "desc",
"description": "Descending order.",
"type": "string"
}
]
}
},
"additionalProperties": false,
"properties": {
"airlines": {
"default": null,
"description": "Inclusive IATA/ICAO carrier codes (`SU`, `S7`, `DP`): every segment of every leg must match one of these carriers.",
"items": {
"type": "string"
},
"maxItems": 30,
"minItems": 1,
"type": [
"array",
"null"
]
},
"baggage_included": {
"default": null,
"description": "Filter by checked baggage inclusion (`true` = baggage included on all segments, `false` = baggage not included).",
"type": [
"boolean",
"null"
]
},
"exclude_airlines": {
"default": null,
"description": "Carrier codes (`DP`, `UT`) to exclude if present as marketing, operating, or validating carrier on any segment.",
"items": {
"type": "string"
},
"maxItems": 30,
"minItems": 1,
"type": [
"array",
"null"
]
},
"flight_number": {
"default": null,
"description": "Flight number filter across segments (accepts `\"1549\"`, `\"0015\"`, `\"SU 1549\"`, `\"SU1549\"`, `\"S7 1005\"`).",
"maxLength": 16,
"minLength": 1,
"type": [
"string",
"null"
]
},
"in_policy_only": {
"default": null,
"description": "When `true`, keep only offers compliant with corporate travel policy (`in_policy`).",
"type": [
"boolean",
"null"
]
},
"limit": {
"default": null,
"description": "Maximum offers to return per page (`1..=15`, default `5`).",
"format": "uint",
"maximum": 15,
"minimum": 1,
"type": [
"integer",
"null"
]
},
"max_duration_minutes": {
"default": null,
"description": "Maximum leg duration in minutes (`>= 1`, checked against the longest route leg).",
"format": "uint32",
"minimum": 1,
"type": [
"integer",
"null"
]
},
"max_price": {
"description": "Maximum display price per offer in display currency (strictly positive decimal).",
"format": "double",
"type": [
"number",
"null"
]
},
"max_stops": {
"default": null,
"description": "Maximum stops allowed on any route leg (`0` = nonstop only, up to `3`).",
"format": "uint8",
"maximum": 3,
"minimum": 0,
"type": [
"integer",
"null"
]
},
"max_transfer_minutes": {
"default": null,
"description": "Maximum layover duration at any single transfer in minutes (`>= 1`; nonstop offers pass).",
"format": "uint32",
"minimum": 1,
"type": [
"integer",
"null"
]
},
"no_airport_change": {
"default": null,
"description": "When `true`, exclude offers requiring airport change during a transfer.",
"type": [
"boolean",
"null"
]
},
"no_overnight_transfer": {
"default": null,
"description": "When `true`, exclude offers with overnight transfers.",
"type": [
"boolean",
"null"
]
},
"offset": {
"default": 0,
"description": "Zero-based pagination offset (default `0`).",
"format": "uint",
"minimum": 0,
"type": "integer"
},
"outbound_arrival_airports": {
"default": null,
"description": "Allowed arrival airport 3-letter IATA codes for leg 1 (outbound).",
"items": {
"type": "string"
},
"maxItems": 20,
"minItems": 1,
"type": [
"array",
"null"
]
},
"outbound_arrival_time": {
"default": null,
"description": "Outbound arrival local time window in `HH:MM-HH:MM` 24h format.",
"type": [
"string",
"null"
]
},
"outbound_departure_airports": {
"default": null,
"description": "Allowed departure airport 3-letter IATA codes for leg 1 (outbound), e.g. `[\"SVO\", \"VKO\"]`.",
"items": {
"type": "string"
},
"maxItems": 20,
"minItems": 1,
"type": [
"array",
"null"
]
},
"outbound_departure_time": {
"default": null,
"description": "Outbound departure local time window in `HH:MM-HH:MM` 24h format (wraps midnight if start > end, e.g. `22:00-05:00`).",
"type": [
"string",
"null"
]
},
"refundable": {
"default": null,
"description": "Filter by refundability (`true` = free or paid refund allowed, `false` = strictly non-refundable; unknown states excluded when set).",
"type": [
"boolean",
"null"
]
},
"return_arrival_airports": {
"default": null,
"description": "Allowed arrival airport IATA codes for leg 2 (return); valid only for round-trip searches.",
"items": {
"type": "string"
},
"maxItems": 20,
"minItems": 1,
"type": [
"array",
"null"
]
},
"return_arrival_time": {
"default": null,
"description": "Return arrival local time window (`HH:MM-HH:MM`); valid only for round-trip searches.",
"type": [
"string",
"null"
]
},
"return_departure_airports": {
"default": null,
"description": "Allowed departure airport IATA codes for leg 2 (return); valid only for round-trip searches.",
"items": {
"type": "string"
},
"maxItems": 20,
"minItems": 1,
"type": [
"array",
"null"
]
},
"return_departure_time": {
"default": null,
"description": "Return departure local time window (`HH:MM-HH:MM`); valid only for round-trip searches.",
"type": [
"string",
"null"
]
},
"search_id": {
"description": "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.",
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"single_ticket_only": {
"default": null,
"description": "When `true`, exclude split/merged one-way combinations (`mergeOW`); when `false`, return only merged offers.",
"type": [
"boolean",
"null"
]
},
"sort_by": {
"$ref": "#/$defs/AviaSortByParam",
"description": "Sort criterion (`recommended`, `price`, `duration`, `departure_time`, `arrival_time`; default `recommended`)."
},
"sort_order": {
"$ref": "#/$defs/AviaSortOrderParam",
"description": "Sort direction (`asc` or `desc`; default `asc`)."
},
"transfer_airports": {
"default": null,
"description": "Require at least one layover passing through one of these 3-letter IATA transfer airports.",
"items": {
"type": "string"
},
"maxItems": 20,
"minItems": 1,
"type": [
"array",
"null"
]
}
},
"required": [
"search_id"
],
"type": "object"
}Fare optionsavia_get_brandsCompares fares for one flight: baggage, refunds, exchanges, and the price difference.Read
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.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.Technical descriptions are shown as the model sees them.
- In your app: via
tool_read - Read-only
- Safe to repeat
- Reaches airlines and suppliers
mcp:read
Call examples 1
Compare fare brands for flight F1
{
"search_id": "AS_0001",
"flight_id": "F1"
}Tool arguments. With the compact list the assistant passes them through tool_read.
Description for the model
Loads and compares airline fare brands (families) for a saved flight_id from avia_search, including per-leg brands for merged one-way combinations (mergeOW), baggage/carry-on allowances, refund and exchange flags/fees, display prices with delta from the cheapest in-policy brand, seat/add-on flags, and two-stage corporate travel policy checks with violation reasons. Saves short brand codes (B1..Bn or B1_L1..B2_Ln) in the snapshot. CALL WHEN: comparing fare families, checking whether a baggage or refundable brand fits travel policy, or choosing brand_ids before reading fare rules, seat maps, or add-ons. DO NOT CALL: before avia_search, without a valid search_id and flight_id from this conversation, to filter search offers (use avia_query_offers), or to read full fare rules text (use avia_get_fare_rules).
JSON Schema
{
"additionalProperties": false,
"properties": {
"flight_id": {
"description": "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.",
"maxLength": 16,
"minLength": 1,
"type": "string"
},
"search_id": {
"description": "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.",
"maxLength": 64,
"minLength": 1,
"type": "string"
}
},
"required": [
"search_id",
"flight_id"
],
"type": "object"
}Fare rulesavia_get_fare_rulesShows the airline rules: refund and exchange penalties, restrictions.Read
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.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.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.4000 chars, default 0). Pass next_offset_chars when has_more=true.penalties default, restrictions, or full).penaltiesrestrictionsfullTechnical descriptions are shown as the model sees them.
- In your app: via
tool_read - Read-only
- Safe to repeat
- Reaches airlines and suppliers
mcp:read
Call examples 1
Read refund and exchange penalties for brand B2
{
"search_id": "AS_0001",
"flight_id": "F1",
"brand_ids": [
"B2"
],
"section": "penalties",
"offset_chars": 0
}Tool arguments. With the compact list the assistant passes them through tool_read.
Description for the model
Fetches and sanitizes airline fare rules (ATPCO or Sirena) for a saved flight_id or selected brand_ids from avia_get_brands, deduplicated per leg, split into structured sections (penalties for refund/exchange/no-show fees, restrictions for baggage/stay/routing, or full text), and paginated in 4000-character slices via offset_chars. CALL WHEN: the user asks about exact refund, exchange, no-show, baggage, or tariff conditions for a specific flight offer or fare brand. DO NOT CALL: before avia_search, without a valid search_id and flight_id, for merged one-way offers with partial brand_ids (pass one brand code per leg or omit brand_ids), to compare fare families (use avia_get_brands), or to inspect an already booked ticket (use trip_service_get).
JSON Schema
{
"$defs": {
"AviaFareRulesSectionParam": {
"description": "Fare rules section selector supported by `avia_get_fare_rules`.",
"oneOf": [
{
"const": "penalties",
"description": "Refund, exchange, and no-show penalty sections (default).",
"type": "string"
},
{
"const": "restrictions",
"description": "Baggage, stay, stopover, and ticket restriction sections.",
"type": "string"
},
{
"const": "full",
"description": "Full sanitized fare rule text across all sections.",
"type": "string"
}
]
}
},
"additionalProperties": false,
"properties": {
"brand_ids": {
"default": null,
"description": "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.",
"items": {
"type": "string"
},
"maxItems": 6,
"minItems": 1,
"type": [
"array",
"null"
]
},
"flight_id": {
"description": "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.",
"maxLength": 16,
"minLength": 1,
"type": "string"
},
"offset_chars": {
"default": 0,
"description": "Zero-based character offset for paginating long fare rule texts (page size `4000` chars, default `0`). Pass `next_offset_chars` when `has_more=true`.",
"format": "uint",
"minimum": 0,
"type": "integer"
},
"search_id": {
"description": "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.",
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"section": {
"$ref": "#/$defs/AviaFareRulesSectionParam",
"description": "Fare rules section to return (`penalties` default, `restrictions`, or `full`)."
}
},
"required": [
"search_id",
"flight_id"
],
"type": "object"
}Seat mapavia_get_seatmapShows the cabin: free seats, prices, and what your travel policy allows.Read
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.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.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.all, free, window, aisle, or extra_legroom; default all).allfreewindowaisleextra_legroom>= 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.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.3 more optional
next_row_from when has_more_rows=true.1). Switch using segments_summary.Technical descriptions are shown as the model sees them.
- In your app: via
tool_read - Read-only
- Safe to repeat
- Reaches airlines and suppliers
mcp:read
Call examples 1
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
}Tool arguments. With the compact list the assistant passes them through tool_read.
Description for the model
Loads the aircraft seat map for a saved flight_id (or selected brand_ids) and verified passengers, applying cabin layout, exit/wing rows, infant/child eligibility, travel policy seat rules (allowed, free_only, forbidden), and per-seat pricing with short codes (S_1_8A). Returns full-cabin counts, recommended seats, and up to 10 rows per call via segment_index, row_from/row_to, and filter (all, free, window, aisle, extra_legroom). Reports VIEW_ONLY, UNSUPPORTED, or PASSENGERS_REQUIRED explicitly with reasons. CALL WHEN: checking seat availability, prices, policy compliance, or choosing seats for a flight offer. DO NOT CALL: before avia_search, without a valid search_id and flight_id, to fetch baggage/meals/insurance (use avia_get_ancillaries), or for already booked services (use trip_service_get).
JSON Schema
{
"$defs": {
"AviaSeatFilterParam": {
"description": "Seat filter supported by `avia_get_seatmap`.",
"oneOf": [
{
"const": "all",
"description": "Show all seats in the requested row slice (default).",
"type": "string"
},
{
"const": "free",
"description": "Show only available free seats eligible for at least one passenger.",
"type": "string"
},
{
"const": "window",
"description": "Show only window seats (`W` trait).",
"type": "string"
},
{
"const": "aisle",
"description": "Show only aisle seats (`A` trait).",
"type": "string"
},
{
"const": "extra_legroom",
"description": "Show only extra-legroom seats (`L` / `E` / `extraLegroom` traits).",
"type": "string"
}
]
}
},
"additionalProperties": false,
"properties": {
"brand_ids": {
"default": null,
"description": "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.",
"items": {
"type": "string"
},
"maxItems": 6,
"minItems": 1,
"type": [
"array",
"null"
]
},
"filter": {
"$ref": "#/$defs/AviaSeatFilterParam",
"description": "Seat filter applied to the returned rows (`all`, `free`, `window`, `aisle`, or `extra_legroom`; default `all`)."
},
"flight_id": {
"description": "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.",
"maxLength": 16,
"minLength": 1,
"type": "string"
},
"order_id": {
"default": null,
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
},
"passenger_user_ids": {
"default": null,
"description": "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.",
"items": {
"format": "uint64",
"minimum": 1,
"type": "integer"
},
"maxItems": 7,
"minItems": 1,
"type": [
"array",
"null"
]
},
"row_from": {
"default": null,
"description": "First cabin row number to include (inclusive; up to 10 rows returned per call). Pass `next_row_from` when `has_more_rows=true`.",
"format": "uint32",
"maximum": 200,
"minimum": 1,
"type": [
"integer",
"null"
]
},
"row_to": {
"default": null,
"description": "Last cabin row number to include (inclusive; clamped to at most 10 rows per call).",
"format": "uint32",
"maximum": 200,
"minimum": 1,
"type": [
"integer",
"null"
]
},
"search_id": {
"description": "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.",
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"segment_index": {
"default": null,
"description": "1-based flight segment index across all route legs to inspect (default `1`). Switch using `segments_summary`.",
"format": "uint32",
"maximum": 20,
"minimum": 1,
"type": [
"integer",
"null"
]
}
},
"required": [
"search_id",
"flight_id"
],
"type": "object"
}Baggage & add-onsavia_get_ancillariesShows what can be added to a ticket: baggage, meals, Aeroexpress, insurance.Read
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.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.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.all, baggage, carry_on, meal, aeroexpress, insurance, or other; default all).allbaggagecarry_onmealaeroexpressinsuranceother1..=20, default 10).0). Pass next_offset when has_more=true.>= 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.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.Technical descriptions are shown as the model sees them.
- In your app: via
tool_read - Read-only
- Safe to repeat
- Reaches airlines and suppliers
mcp:read
Call examples 2
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
}Tool arguments. With the compact list the assistant passes them through tool_read.
Description for the model
Loads flight add-ons for a saved flight_id (or selected brand_ids) and verified passengers across up to three sources: airline GDS extras (extra baggage, meals, lounge, sports equipment), Moscow Aeroexpress tickets (DME/SVO within 90 days), and flight insurance, assigning short codes (A1..An) with corporate policy checks, passenger eligibility, mandatory option flags, and explicit soft-degradation notices. Paginates results via category, offset, and limit (default 10, max 20) while returning full category summaries. CALL WHEN: checking available extra baggage, meals, Aeroexpress, or insurance options and prices for a flight offer. DO NOT CALL: before avia_search, without a valid search_id and flight_id, to inspect aircraft seats (use avia_get_seatmap), or to compare fare brands (use avia_get_brands).
JSON Schema
{
"$defs": {
"AviaAncillaryCategoryParam": {
"description": "Add-on category filter supported by `avia_get_ancillaries`.",
"oneOf": [
{
"const": "all",
"description": "Return add-ons from all categories (default).",
"type": "string"
},
{
"const": "baggage",
"description": "Checked and extra baggage options.",
"type": "string"
},
{
"const": "carry_on",
"description": "Carry-on and cabin luggage options (`type=2, subType=201`).",
"type": "string"
},
{
"const": "meal",
"description": "In-flight meal options.",
"type": "string"
},
{
"const": "aeroexpress",
"description": "Moscow Aeroexpress tickets (`DME`/`SVO`).",
"type": "string"
},
{
"const": "insurance",
"description": "Flight travel insurance options.",
"type": "string"
},
{
"const": "other",
"description": "Lounge, fast track, sports equipment, special baggage, and other carrier options.",
"type": "string"
}
]
}
},
"additionalProperties": false,
"properties": {
"brand_ids": {
"default": null,
"description": "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.",
"items": {
"type": "string"
},
"maxItems": 6,
"minItems": 1,
"type": [
"array",
"null"
]
},
"category": {
"$ref": "#/$defs/AviaAncillaryCategoryParam",
"description": "Add-on category filter (`all`, `baggage`, `carry_on`, `meal`, `aeroexpress`, `insurance`, or `other`; default `all`)."
},
"flight_id": {
"description": "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.",
"maxLength": 16,
"minLength": 1,
"type": "string"
},
"limit": {
"default": null,
"description": "Maximum number of add-ons to return per page (`1..=20`, default `10`).",
"format": "uint",
"maximum": 20,
"minimum": 1,
"type": [
"integer",
"null"
]
},
"offset": {
"default": 0,
"description": "Zero-based pagination offset into the filtered add-ons list (default `0`). Pass `next_offset` when `has_more=true`.",
"format": "uint",
"minimum": 0,
"type": "integer"
},
"order_id": {
"default": null,
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": [
"integer",
"null"
]
},
"passenger_user_ids": {
"default": null,
"description": "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.",
"items": {
"format": "uint64",
"minimum": 1,
"type": "integer"
},
"maxItems": 7,
"minItems": 1,
"type": [
"array",
"null"
]
},
"search_id": {
"description": "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.",
"maxLength": 64,
"minLength": 1,
"type": "string"
}
},
"required": [
"search_id",
"flight_id"
],
"type": "object"
}Flight booking
Actions · two stepsStep 1 · pre-checkBooking pre-checkavia_prepare_bookingChecks travelers, documents, travel policy, and budget, and shows the final price.
Books nothing. Document numbers are shown masked.
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.>= 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.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.true only after the user explicitly confirmed proceeding despite a duplicate-service warning returned by avia_prepare_booking.avia_get_ancillaries (1..=30 entries).Child fields · 3
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.1..=10) for Aeroexpress or countable carrier add-ons.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.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.5 more optional
1..=7 entries) when overriding automatic route document selection.Child fields · 2
>= 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.>= 1). Pass only a user_id belonging to this trip order in this conversation; never guess or fabricate IDs.avia_get_seatmap (1..=50 entries).Child fields · 2
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.>= 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.10..=250 raw characters, single line, no HTML) when required by company travel policy; must be provided by the user.1..=120 chars) required only for seaman (SEA) tariffs.1..=120 chars) required only for seaman (SEA) tariffs.Technical descriptions are shown as the model sees them.
- In your app: via
tool_prepare - Read-only
- Safe to repeat
- Reaches airlines and suppliers
mcp:prepare
Call examples 2
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"
}Tool arguments. With the compact list the assistant passes them through tool_prepare.
Description for the model
Strictly read-only flight booking pre-check. Verifies order status, active passengers, route/date corridor, departure lead time, seaman tariff metadata, passenger documents, seat/add-on compatibility, travel policy rules, budget/balance, and duplicate bookings, then returns a full price breakdown with masked documents and a one-time quote_token without writing to core. CALL WHEN: the user selected a flight (and optional brand/seats/add-ons) for an existing trip order and wants to review the final booking summary before creating the reservation. DO NOT CALL: to actually create the reservation (use avia_confirm_booking after user review), to search flights (use avia_search), or without an existing order_id (create a trip first via trip_prepare and trip_confirm).
JSON Schema
{
"$defs": {
"AviaBookingAncillarySelectionParam": {
"additionalProperties": false,
"description": "Flight add-on selection (`GDS` baggage/meal, Aeroexpress, or insurance) in `avia_prepare_booking`.",
"properties": {
"ancillary_id": {
"description": "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.",
"maxLength": 32,
"minLength": 1,
"type": "string"
},
"quantity": {
"default": null,
"description": "Optional unit quantity (`1..=10`) for Aeroexpress or countable carrier add-ons.",
"format": "uint32",
"maximum": 10,
"minimum": 1,
"type": [
"integer",
"null"
]
},
"user_ids": {
"default": null,
"description": "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.",
"items": {
"format": "uint64",
"minimum": 1,
"type": "integer"
},
"maxItems": 7,
"minItems": 1,
"type": [
"array",
"null"
]
}
},
"required": [
"ancillary_id"
],
"type": "object"
},
"AviaBookingSeatSelectionParam": {
"additionalProperties": false,
"description": "Cabin seat assignment for a single passenger in `avia_prepare_booking`.",
"properties": {
"seat_id": {
"description": "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.",
"maxLength": 32,
"minLength": 1,
"type": "string"
},
"user_id": {
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": "integer"
}
},
"required": [
"user_id",
"seat_id"
],
"type": "object"
},
"AviaPassengerDocumentOverrideParam": {
"additionalProperties": false,
"description": "Explicit passenger travel document selection overriding automatic route selection in `avia_prepare_booking`.",
"properties": {
"document_id": {
"description": "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.",
"format": "uint64",
"minimum": 0,
"type": "integer"
},
"user_id": {
"description": "Passenger user identifier (`>= 1`). Pass only a `user_id` belonging to this trip order in this conversation; never guess or fabricate IDs.",
"format": "uint64",
"minimum": 1,
"type": "integer"
}
},
"required": [
"user_id",
"document_id"
],
"type": "object"
}
},
"additionalProperties": false,
"properties": {
"allow_duplicates": {
"default": false,
"description": "Set `true` only after the user explicitly confirmed proceeding despite a duplicate-service warning returned by `avia_prepare_booking`.",
"type": "boolean"
},
"ancillary_selections": {
"description": "Optional flight add-on selections from `avia_get_ancillaries` (`1..=30` entries).",
"items": {
"$ref": "#/$defs/AviaBookingAncillarySelectionParam"
},
"maxItems": 30,
"minItems": 1,
"type": [
"array",
"null"
]
},
"brand_ids": {
"default": null,
"description": "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.",
"items": {
"type": "string"
},
"maxItems": 6,
"minItems": 1,
"type": [
"array",
"null"
]
},
"document_overrides": {
"description": "Optional explicit passenger document overrides (`1..=7` entries) when overriding automatic route document selection.",
"items": {
"$ref": "#/$defs/AviaPassengerDocumentOverrideParam"
},
"maxItems": 7,
"minItems": 1,
"type": [
"array",
"null"
]
},
"flight_id": {
"description": "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.",
"maxLength": 16,
"minLength": 1,
"type": "string"
},
"order_id": {
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": "integer"
},
"search_id": {
"description": "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.",
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"seat_selections": {
"description": "Optional cabin seat selections from `avia_get_seatmap` (`1..=50` entries).",
"items": {
"$ref": "#/$defs/AviaBookingSeatSelectionParam"
},
"maxItems": 50,
"minItems": 1,
"type": [
"array",
"null"
]
},
"travel_policy_violation_reason": {
"default": null,
"description": "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.",
"maxLength": 250,
"minLength": 10,
"type": [
"string",
"null"
]
},
"vessel_country": {
"default": null,
"description": "Vessel flag country name or ISO code (`1..=120` chars) required only for seaman (`SEA`) tariffs.",
"maxLength": 120,
"minLength": 1,
"type": [
"string",
"null"
]
},
"vessel_name": {
"default": null,
"description": "Vessel name (`1..=120` chars) required only for seaman (`SEA`) tariffs.",
"maxLength": 120,
"minLength": 1,
"type": [
"string",
"null"
]
}
},
"required": [
"search_id",
"flight_id",
"order_id"
],
"type": "object"
}Step 2 · actionFlight bookingavia_confirm_bookingBooks the flight and adds it to the trip after you say yes.
A booking is not a ticket yet: issuing is a separate action with its own confirmation.
avia_prepare_booking (for example RUB, AED, USD).avia_prepare_booking (total_amount), echoed for explicit financial confirmation.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.Technical descriptions are shown as the model sees them.
- In your app: via
tool_confirm - Changes data
- Safe to repeat
- Reaches airlines and suppliers
mcp:confirm
Call examples 1
Confirm flight reservation echoing exact quoted amount and currency
{
"quote_token": "QT_BOOK_01",
"confirmed_total_amount": 18500,
"confirmed_currency": "RUB"
}Tool arguments. With the compact list the assistant passes them through tool_confirm.
Description for the model
Redeems a one-time quote_token from avia_prepare_booking to create the flight reservation(s) in GDS and attach them to the trip order (supports single tickets and sequential mergeOW pairs with PARTIAL_BOOKING protection and idempotent disconnect recovery). Requires echoing confirmed_total_amount and confirmed_currency from the prepared summary. CALL WHEN: the user explicitly confirmed the avia_prepare_booking summary in a prior turn (or via client confirmation prompt) and wants to place the reservation. DO NOT CALL: in the same turn as avia_prepare_booking without user confirmation, without a valid quote_token from this conversation, or to issue tickets for an already reserved flight (use avia_prepare_issue).
JSON Schema
{
"additionalProperties": false,
"properties": {
"confirmed_currency": {
"description": "Exact 3-letter ISO currency code quoted by `avia_prepare_booking` (for example `RUB`, `AED`, `USD`).",
"maxLength": 8,
"minLength": 3,
"type": "string"
},
"confirmed_total_amount": {
"description": "Exact total booking amount quoted by `avia_prepare_booking` (`total_amount`), echoed for explicit financial confirmation.",
"format": "double",
"type": "number"
},
"quote_token": {
"description": "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.",
"maxLength": 64,
"minLength": 1,
"type": "string"
}
},
"required": [
"quote_token",
"confirmed_total_amount",
"confirmed_currency"
],
"type": "object"
}Until you confirm step 2, nothing is saved, booked, or charged.
Ticket issuing
Actions · two stepsStep 1 · pre-checkTicketing pre-checkavia_prepare_issueChecks the booking, the buyout deadline, and payment, and names the exact amount to be charged.
Issues nothing and charges nothing.
>= 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.>= 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.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).Technical descriptions are shown as the model sees them.
- In your app: via
tool_prepare - Read-only
- Safe to repeat
- Reaches airlines and suppliers
mcp:prepare
Call examples 2
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
}Tool arguments. With the compact list the assistant passes them through tool_prepare.
Description for the model
Strictly read-only pre-check before irreversible flight ticket issuance. Verifies ticketing rights, order and service status, service_actions ISSUE permission, buyout time limit (>= 180s remaining), browser 3DS payment requirements, card validity, company debt/balance, linked add-ons, and reprice acceptance, then returns the exact final charge and a one-time quote_token without charging or issuing tickets. CALL WHEN: the user wants to check whether an already reserved flight can be issued (and why it is blocked), prepare ticket buyout, or accept a reprice after PRICE_CHANGED. DO NOT CALL: to issue tickets immediately (use avia_confirm_issue after explicit user confirmation), to book an unreserved flight (use avia_prepare_booking), or to inspect general trip details (use trip_get).
JSON Schema
{
"additionalProperties": false,
"properties": {
"accept_reprice": {
"default": false,
"description": "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`).",
"type": "boolean"
},
"order_id": {
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": "integer"
},
"service_id": {
"description": "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.",
"format": "uint64",
"minimum": 1,
"type": "integer"
}
},
"required": [
"order_id",
"service_id"
],
"type": "object"
}Step 2 · actionTicket issuingavia_confirm_issueIssues the ticket and charges the money after you say yes.Irreversible
Cannot be undone. If the price has changed, the assistant stops and asks again.
avia_prepare_issue (for example RUB, AED, USD).avia_prepare_issue (total_amount), echoed for explicit financial confirmation.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.Technical descriptions are shown as the model sees them.
- In your app: via
tool_confirm - Changes data
- Safe to repeat
- Reaches airlines and suppliers
- Cannot be undone
mcp:confirm
Call examples 1
Irreversibly issue tickets echoing exact quoted amount and currency
{
"quote_token": "QT_ISSUE_01",
"confirmed_total_amount": 16338,
"confirmed_currency": "RUB"
}Tool arguments. With the compact list the assistant passes them through tool_confirm.
Description for the model
Redeems a one-time quote_token from avia_prepare_issue to irreversibly issue flight tickets and charge funds via GDS (returns ISSUED, WAITING for async airline ticket numbers, or PRICE_CHANGED when supplier reprice requires re-confirmation). Requires echoing confirmed_total_amount and confirmed_currency from avia_prepare_issue. CALL WHEN: the user explicitly confirmed the final avia_prepare_issue summary and understands this action irreversibly charges funds and issues tickets. DO NOT CALL: in the same turn as avia_prepare_issue without explicit user confirmation, without a valid quote_token from this conversation, or before avia_prepare_issue succeeds.
JSON Schema
{
"additionalProperties": false,
"properties": {
"confirmed_currency": {
"description": "Exact 3-letter ISO currency code quoted by `avia_prepare_issue` (for example `RUB`, `AED`, `USD`).",
"maxLength": 8,
"minLength": 3,
"type": "string"
},
"confirmed_total_amount": {
"description": "Exact total ticket issuance amount quoted by `avia_prepare_issue` (`total_amount`), echoed for explicit financial confirmation.",
"format": "double",
"type": "number"
},
"quote_token": {
"description": "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.",
"maxLength": 64,
"minLength": 1,
"type": "string"
}
},
"required": [
"quote_token",
"confirmed_total_amount",
"confirmed_currency"
],
"type": "object"
}Until you confirm step 2, nothing is saved, booked, or charged.
Service
1Connection diagnostics.
Connection checkserver_pingChecks that the server responds.Read
Technical descriptions are shown as the model sees them.
- In your app: via
tool_read - Read-only
- Safe to repeat
mcp:read
Call examples 1
Verify MCP server transport connectivity
{
"echo": "health"
}Tool arguments. With the compact list the assistant passes them through tool_read.
Description for the model
Diagnostic connectivity check for the MCP server. CALL WHEN: the user explicitly asks to check or ping MCP server connectivity. DO NOT CALL: during regular business tasks or after another tool returns POLICY_DENIED, NOT_FOUND, or any business error (a tool response already proves transport is alive).
JSON Schema
{
"additionalProperties": false,
"properties": {
"echo": {
"default": null,
"description": "Optional connectivity echo tag.",
"type": [
"string",
"null"
]
}
},
"type": "object"
}What your app shows
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.
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
toolis the real tool. Here it is Ticket issuingavia_confirm_issue. - 2
argumentsis what it is called with. Amount and currency must match what the assistant showed you in chat. - !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
5The 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=allThe X-Mcp-Tools-Mode: all header does the same.