# Case Containment Rate Calculator AI Agent Connect

> Case Containment Rate Calculator MCP lets your AI client analyze interaction logs to measure how effectively you resolve issues without unnecessary escalations. It identifies why specific cases fail containment, compares performance across different service channels, and checks your data for logical errors or corruption.

## Overview
- **Category:** customer-service
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_9rMrlTmlGFajimLRIyCIUwjtJyPhc85t6K2oIVFA/ai-agent-connect
- **Tags:** containment, metrics, customer-experience, service-efficiency, interaction-analysis

## Description

You can use this MCP to turn raw interaction logs into actionable service efficiency metrics. Instead of manually digging through event chains to see why a customer was transferred or why a chat failed to resolve an issue, you let your agent do the heavy lifting. You provide the interaction data, and the MCP calculates your primary containment metrics and identifies the specific drivers causing leakage. It works by looking at the sequence of events in each journey, such as starts, transfers, and resolutions. You can also use it to see if one channel, like chat, is performing better than another, like phone. If your data looks messy or has illogical event sequences, the MCP catches those errors before you base your decisions on bad numbers. It's a direct way to see where your self-service or first-contact resolution is actually working and where it's falling short.

## Tools

### analyze_interaction_journeys
This tool calculates primary containment metrics by evaluating a set of interaction logs.

### compare_channel_efficiency
Use this to compare containment success rates across different service channels.

### identify_leakage_drivers
This tool investigates specific cases to find out why they failed to meet containment criteria.

### validate_journey_integrity
This tool checks that your interaction data is logically consistent and free of corruption.

## Prompt Examples

**Prompt:** 
```
Calculate the containment metrics for these interaction journeys: [{"caseId": "C1", "channel": "chat", "events": ["start", "resolution", "end"]}]
```

**Response:** 
```
{"containedCaseCount": 1, "totalCaseCount": 1, "containmentRate": 100, "leakageBreakdown": {}, "channelPerformance": [{"channelName": "chat", "containmentRate": 100, "volume": 1}]}
```

**Prompt:** 
```
Why did case C2 fail containment in this dataset: [{"caseId": "C2", "channel": "phone", "events": ["start", "transfer", "resolution", "end"]}]
```

**Response:** 
```
{"caseId": "C2", "isContained": false, "primaryLeakageReason": "transfer", "eventChain": ["start", "transfer", "resolution", "end"]}
```

**Prompt:** 
```
Check if the following journey data is valid: [{"caseId": "C3", "channel": "email", "events": ["reopen", "start"]}]
```

**Response:** 
```
{"isValid": false, "issues": ["A 'reopen' event occurs before a 'resolution' event"]}
```

## Capabilities

### Containment Calculation
Your agent calculates containment rates from raw interaction logs.

### Leakage Root Cause Analysis
The MCP identifies the specific events that caused a case to fail containment.

### Channel Benchmarking
Your agent compares how different service channels perform against each other.

### Data Integrity Auditing
The MCP flags illogical event sequences or corrupted data in your logs.

## Use Cases

### Identifying Transfer Issues
Find out if excessive transfers are the main reason your containment rate is dropping.

### Channel Optimization
Determine if your chat channel is more efficient than your phone channel.

### Data Quality Checks
Verify that your interaction logs don't contain impossible event sequences.

### Performance Reporting
Generate high level containment reports from a batch of interaction logs.

## Benefits

- Identifies specific event types that cause case leakage.
- Compares containment success across chat, phone, and email.
- Flags logical errors in interaction data sequences.
- Provides direct containment metrics from raw event logs.

## How It Works

You connect the MCP to your AI client and provide your interaction data for analysis.

1. Connect your preferred MCP-compatible client to Vinkius.
2. Provide your interaction logs or event chains to your agent.
3. Your agent uses the MCP tools to process the data.
4. You receive structured containment metrics or error reports.

## Frequently Asked Questions

**What is case containment?**
Containment refers to the ability to resolve a customer issue within a specific interaction without needing to escalate or transfer the case.

**How does this MCP identify leakage?**
The MCP looks at the sequence of events in a journey to find the specific point where a case failed to meet containment criteria.

**Can I use this with Claude or Cursor?**
Yes, you can connect this MCP to any MCP-compatible client like Claude, Cursor, or Windsurf.

**What kind of data does the MCP need?**
The MCP needs interaction logs that include case IDs, service channels, and sequences of events like start, transfer, or resolution.

**Does it check for data errors?**
Yes, the validate_journey_integrity tool checks for logical inconsistencies, such as a case being reopened before it was ever started.

**How can I find out why a specific case failed containment?**
You can use the `identify_leakage_drivers` tool to investigate the specific event chain that caused a case to fail containment.

**Can I compare performance between Chat and Email?**
Yes, the `compare_channel_efficiency` tool allows you to compare containment rates across different service channels.
