# Trip Day Counter AI Agent Connect

> Trip Day Counter MCP handles the math for your travel planning. It calculates exact trip lengths, checks if your dates make sense, and summarizes trip spans. Your AI client uses these tools to ensure your itineraries are logically sound and easy to read.

## Overview
- **Category:** productivity
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_vzjM8uZvHwjRiSwTeLxSwncmq0tCXI36UncEpkhZ/ai-agent-connect
- **Tags:** travel, itinerary, duration, dates, planning

## Description

Planning a trip involves a lot of moving parts, and getting the math wrong on travel durations can mess up an entire itinerary. This MCP gives your AI client the specific tools it needs to handle date-based travel logic. Instead of guessing how many days you'll be away, your agent can use these tools to pull exact counts and verify that your departure and return dates actually work together. It's built for anyone managing multiple trip segments who needs to quickly identify the longest stays or get a clean summary of a trip's span. You can hand off your messy list of dates to your agent, and it will use this MCP to clean up the data and give you a clear picture of your travel timeline.

## Tools

### find_longest_trip
This tool scans a list of trip segments to find the one with the greatest duration.

### get_trip_duration
Use this to get the exact number of days for a specific trip.

### validate_itinerary_dates
This tool checks if your travel dates are logical and in the correct chronological order.

### get_trip_summary
This tool provides a quick overview of a trip's start, end, and total length.

## Prompt Examples

**Prompt:** 
```
How many days is my trip from 2024-06-01 to 2024-06-05?
```

**Response:** 
```
Your trip lasts 5 days.
```

**Prompt:** 
```
Give me a summary for a trip from 2024-12-20 to 2025-01-05.
```

**Response:** 
```
Departure: 2024-12-20, Return: 2025-01-05, Total Days: 17.
```

**Prompt:** 
```
Which is the longest trip: [{'departureDate': '2024-01-01', 'returnDate': '2024-01-05'}, {'departureDate': '2024-02-01', 'returnDate': '2024-02-10'}]?
```

**Response:** 
```
The longest trip is from 2024-02-01 to 2024-02-10, lasting 10 days.
```

## Capabilities

### Duration Calculation
Your agent calculates the exact number of days between any two travel dates.

### Date Validation
The MCP checks that your itinerary dates are chronologically possible.

### Trip Summarization
Your AI client generates high-level overviews of trip spans.

### Segment Analysis
The agent identifies the longest trip within a provided collection of segments.

## Use Cases

### Itinerary Auditing
Your agent uses the validation tool to ensure you haven't accidentally set a return date before a departure date.

### Travel Budgeting
Calculate exact trip lengths to help determine per-day costs.

### Multi-leg Trip Planning
Find the longest leg of a multi-city journey to prioritize hotel bookings.

### Data Cleanup
Convert a raw list of dates into a structured summary of trip durations.

## Benefits

- Eliminates manual date math errors.
- Validates itinerary logic automatically.
- Summarizes trip data into readable formats.
- Identifies trip extremes within large datasets.

## How It Works

Connect the MCP to your client and let your agent handle the math.

1. Connect the Trip Day Counter MCP to your AI client via Vinkius.
2. Provide your travel dates or trip list to your agent.
3. The agent calls the necessary tool to calculate or validate the data.
4. Your agent presents the final duration or summary to you.

## Frequently Asked Questions

**What does this MCP do?**
It provides tools for calculating trip durations, validating itinerary dates, and summarizing travel spans.

**How do I use it with Claude or Cursor?**
You connect to the MCP through the Vinkius platform, which hosts the tool for you. Once connected, your AI client can call the tools directly.

**Can it find the longest trip in a list?**
Yes, the find_longest_trip tool is designed to identify the longest segment from a collection of trips.

**Does it check if my dates are valid?**
Yes, the validate_itinerary_dates tool checks if your travel dates are logically sound.

**Do I need to host this myself?**
No, Vinkius hosts and manages the MCP for you, so it is ready to use immediately after connection.

**How is the trip duration calculated?**
The duration is calculated by finding the difference between the departure and return dates and including both days in the count.

**What date format should I use?**
All dates must be provided in the YYYY-MM-DD format.

**Can I validate multiple dates at once?**
Yes, you can use `validate_itinerary_dates` to check if a list of dates follows a logical chronological sequence.
