# Lineup Priority Logic Validator AI Agent Connect

> Deterministic surfing right-of-way and priority violation validator.

## Overview
- **Category:** safety
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_MU7r1Qfu4RfxkS9XMrDRzXxhEnyAY1gVjReMqwqT/ai-agent-connect
- **Tags:** surfing, priority, etiquette, validation, lineup

## Description

This MCP server provides precise tools for determining surfing right-of-way and identifying priority violations. It calculates priority scores based on distance to the peak, surfer position (inside vs. outside), and current state (standing vs. paddling). Use `calculate_lineup_priority` to rank surfers and identify drop-in violations, `validate_position_legality` to ensure surfer positions match wave behavior, and `get_lineup_summary` for a high-level overview of lineup density.

## Tools

### calculate_lineup_priority
Determines the priority ranking and right-of-way status for a group of surfers in a specific wave scenario

### validate_position_legality
Checks if the current surfer positions relative to the wave direction are physically consistent with the wave's behavior

### get_lineup_summary
Provides a high-level overview of the current lineup density and priority distribution

## Prompt Examples

**Prompt:** 
```
Calculate the priority for these surfers: surfer_1 (10m from peak, inside, standing), surfer_2 (5m from peak, outside, paddling) with a left breaking wave.
```

**Response:** 
```
The priority scores are: surfer_1: 140, surfer_2: 95. The right-of-way holder is surfer_1.
```

**Prompt:** 
```
Is there a drop-in violation if surfer_2 (score 40) takes a wave when surfer_1 (score 80) has the right of way?
```

**Response:** 
```
Yes, a drop-in violation is flagged because the score difference is 40, which exceeds the 20-point threshold.
```

**Prompt:** 
```
Give me a summary of the lineup: surfer_1 (inside), surfer_2 (outside), surfer_3 (inside).
```

**Response:** 
```
The lineup contains 3 surfers, with 2 surfers inside and 1 surfer outside.
```

## Frequently Asked Questions

**How is priority calculated?**
Priority is calculated using a base score from distance to the peak, with significant boosts for being 'inside' the pocket or already standing on the board.

**What constitutes a drop-in violation?**
A violation is flagged if a surfer takes a wave when their priority score is more than 20 points lower than the right-of-way holder.

**Can I check if my lineup configuration is valid?**
Yes, you can use the `validate_position_legality` tool to ensure surfer positions are physically consistent with the wave direction.
