# First Response Time Calculator AI Agent Connect

> First Response Time Calculator MCP handles the math for your customer support performance. It calculates response latencies by factoring in holidays, business hours, and specific channel rules. Instead of looking at raw elapsed time, your agent gets the actual time spent working on cases, making your SLA reporting actually meaningful.

## Overview
- **Category:** productivity
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_zhMU9GB2B5MKMqAM23N1YZcQubEz9vrRPatDs3Eh/ai-agent-connect
- **Tags:** latency, sla, business-hours, support-metrics, analytics-engine

## Description

You shouldn't have to manually subtract weekends and holidays to figure out how fast your team is responding to customers. This MCP handles those calculations for you. It looks at your specific business hours and holiday schedules to turn raw timestamps into real, actionable latency data. You can use it to process large batches of cases at once or convert single durations into business-specific timeframes. It also helps you clean up your data by filtering out automated or test cases that would otherwise skew your averages. Whether you need a quick median response time or a full statistical breakdown of your team's performance, your AI client can now perform these calculations with high precision.

## Tools

### aggregate_latency_statistics
This tool generates a statistical summary from your processed case durations. It provides the mean, median, and percentiles you need for reporting.

### calculate_case_latencies
This tool calculates the individual first response time for a specific set of customer cases. It handles the heavy lifting of time math for multiple records.

### get_business_hour_conversion
This tool converts a raw duration into the actual business time elapsed. It accounts for your specific operating hours and holidays.

### validate_exclusion_criteria
This tool determines if a specific case should be ignored based on your rules. Use it to strip out test data or automated entries from your metrics.

## Prompt Examples

**Prompt:** 
```
Calculate the response latencies for these three cases using the provided business calendar.
```

**Response:** 
```
The first case had a business duration of 45 minutes, the second case was excluded as a test case, and the third case had a business duration of 120 minutes. The mean business duration for valid cases is 82.5 minutes.
```

**Prompt:** 
```
Convert a raw duration of 500 minutes into business hours starting from 2023-10-01T09:00:00Z.
```

**Response:** 
```
Based on the business calendar, the business duration is 4 hours and 30 minutes.
```

**Prompt:** 
```
What is the median response time for these durations: 10, 20, 30, 40, 50?
```

**Response:** 
```
The median response time is 30 minutes.
```

## Capabilities

### Business Hour Logic
Your agent uses this to ignore time spent when your office is closed.

### Batch Processing
Your agent calculates latencies for entire sets of support cases in one go.

### Data Cleaning
Your agent filters out test cases to keep your metrics accurate.

### Statistical Summaries
Your agent produces mean, median, and percentile reports from raw data.

### Duration Conversion
Your agent turns raw elapsed time into meaningful business durations.

## Use Cases

### SLA Compliance Audits
Check if your team met response targets by calculating latencies against specific business hours.

### Performance Reporting
Generate median and percentile response times for monthly stakeholder updates.

### Data Cleaning
Remove automated bot responses or internal testing from your performance datasets.

### Capacity Planning
Analyze response trends to understand how much time is actually spent on customer interactions.

## Benefits

- Removes weekends and holidays from your response time math.
- Filters out noise like test cases automatically.
- Provides statistical distributions instead of simple averages.
- Converts raw timestamps into business-specific durations.

## How It Works

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

1. Connect the MCP to your preferred client like Claude or Cursor.
2. Provide your case data or raw durations to your agent.
3. Your agent applies business hour and holiday rules to the data.
4. Your agent filters out any cases that meet your exclusion criteria.
5. You receive a clean statistical summary or converted duration.

## Frequently Asked Questions

**How does this MCP handle weekends?**
It uses business hour conversion to ensure that time spent on weekends or outside of your set operating hours is not counted toward response latency.

**Can I exclude test cases from my reports?**
Yes, you can use the validation tool to filter out specific cases based on rules you provide, ensuring your metrics aren't skewed by non-customer data.

**What kind of statistics can I get?**
The MCP can generate mean, median, and percentile reports from your processed case durations.

**Which AI clients can I use this with?**
You can use this with any MCP-compatible client, including Claude, Cursor, and Windsurf.

**Does it account for holidays?**
Yes, the tool factors in holidays to ensure your response time calculations reflect actual business activity.

**How does this tool handle weekends and holidays?**
The tool uses the provided `calendarConfig` to subtract any time spent during weekends or defined holidays from the total elapsed time, ensuring only business hours are counted.

**Can I exclude specific cases from my statistics?**
Yes. You can use `validate_exclusion_criteria` to identify cases that should be skipped, such as test cases or automated notifications, before running your final aggregation.

**What statistical metrics are provided?**
The `aggregate_latency_statistics` tool provides the mean, median, 90th percentile (p90), and 95th percentile (p95) of the processed durations.
