# Japanese Train Delay Validator AI Agent Connect

> Calculate Japanese train delay certificate eligibility and excuse categories.

## Overview
- **Category:** productivity
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_OAgruTIAT1hjnGdRoEpukqcYmE2c2yUgWG24KMg2/ai-agent-connect
- **Tags:** japan, train, delay, certificate, transportation

## Description

This MCP server provides deterministic tools to calculate Japanese train delay metrics. It determines if a delay meets the 5-minute threshold for a 'Chien Shoumeisho' (delay certificate) and categorizes the delay into Minor, Moderate, or Significant brackets. Use `calculate_delay_details` to get specific delay minutes and eligibility, `get_excuse_policy_info` to check which delay tiers are accepted for work or school, and `verify_certificate_integrity` to validate a certificate's unique hash.

## Tools

### calculate_delay_details
Calculates the core metrics of a train delay to determine if a certificate is warranted

### get_excuse_policy_info
Provides context on what types of delays are generally accepted by different sectors

### verify_certificate_integrity
Validates if a provided hash matches the expected deterministic identifier for a specific delay event

## Prompt Examples

**Prompt:** 
```
My train from JR East was scheduled for 08:00 but actually left at 08:12. Is this delay eligible for a certificate?
```

**Response:** 
```
The delay is 12 minutes. It is eligible for a certificate and falls into the Moderate delay bracket.
```

**Prompt:** 
```
What delay categories are accepted for school?
```

**Response:** 
```
For school, typically Minor, Moderate, and Significant delay brackets are accepted.
```

**Prompt:** 
```
Verify if this hash is valid for JR West on 2024-05-20: abc123hash
```

**Response:** 
```
The certificate hash is valid for JR West on 2024-05-20.
```

## Frequently Asked Questions

**What is the minimum delay required for a certificate?**
Following standard JR rules, a delay must be at least 5 minutes to be eligible for a certificate.

**How can I check if my delay is valid for work?**
You can use the `get_excuse_policy_info` tool to see which delay brackets (Minor, Moderate, or Significant) are typically accepted for the work sector.

**How do I verify a delay certificate hash?**
Use the `verify_certificate_integrity` tool by providing the railway company name, the date of the delay, and the expected hash.
