# Gaotie Seat Allocation Logic AI Agent Connect

> Deterministic seat assignment calculator for Chinese High-Speed Rail (Gaotie).

## Overview
- **Category:** travel
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_lHUKgJA888yBFmJgFihSciUHpPAhNxLSHiycZ7VO/ai-agent-connect
- **Tags:** gaotie, china-rail, seat-assignment, travel-planning, logistics

## Description

This MCP server provides precise seat assignment logic for Chinese High-Speed Rail (Gaotie) services. It calculates optimal seat letters for passenger groups based on train class (G, D, or C) and service tier (Second, First, or Business). Use `calculate_seat_assignments` to find the best seat patterns for groups, `validate_seat_availability` to check if a specific seat letter exists in a class, or `get_layout_summary` to view the seating configuration. It ensures social cohesion by prioritizing adjacent seats for groups and window seats for individuals.

## Tools

### calculate_seat_assignments
Determines the optimal seat letters for a specific group of passengers based on train and service class

### get_layout_summary
Provides a descriptive summary of the seating arrangement for a chosen class

### validate_seat_availability
Verifies if a specific seat letter is physically possible within a given service class

## Prompt Examples

**Prompt:** 
```
Find the best seats for 2 passengers in Second Class on a G train.
```

**Response:** 
```
The optimal seats for your group are C and D.
```

**Prompt:** 
```
Is seat B available in First Class?
```

**Response:** 
```
No, seat B is not available in First Class layouts.
```

**Prompt:** 
```
What is the layout for Business Class?
```

**Response:** 
```
Business Class uses a specialized layout with available letters A, C, and F.
```

## Frequently Asked Questions

**Which train classes are supported?**
The tool supports G (Gaotie), D (Dongche), and C (Chengche) train classes.

**Can I check if a specific seat exists in First Class?**
Yes, you can use `validate_seat_availability` to verify if a seat letter like 'B' is valid for a specific service tier.

**How does the tool handle groups of passengers?**
The `calculate_seat_assignments` tool prioritizes keeping passengers together by selecting adjacent seat letters to ensure social cohesion.
