# Repetition Pattern Detector AI Agent Connect

> Detects redundant linguistic patterns and calculates text compression metrics.

## Overview
- **Category:** productivity
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_UbCAaXsh6KoaYwTTEEzcAALH68CBifOo1XvihcUK/ai-agent-connect
- **Tags:** repetition, nlp, text-analysis, compression, redundancy

## Description

This MCP server provides deterministic tools to identify recurring sequences of words within any text. By analyzing 3-gram phrases, it identifies structural redundancy and provides actionable metrics like repetition ratios and theoretical compression gains. Use `analyze_text_repetition` for a deep dive into redundancy, `get_repetition_summary` for a high-level overview, or `check_repetition_threshold` to verify if a text exceeds specific redundancy limits.

## Tools

### analyze_text_repetition
Identifies repeating three-word sequences and calculates all redundancy and compression metrics

### check_repetition_threshold
Answers if the text exceeds a specific redundancy limit

### get_repetition_summary
Provides a high-level overview of text redundancy without the granular token counts

## Prompt Examples

**Prompt:** 
```
Analyze this text for repetitions: 'The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.'
```

**Response:** 
```
phraseCount: 10, repeatedPhrasesCount: 1, repetitionRatio: 0.1, tokensInRepetitions: 3, tokensSavedIfDeduped: 3, compressionRatio: 0.15
```

**Prompt:** 
```
Give me a quick summary of the redundancy in: 'Redundancy is bad. Redundancy is bad. Redundancy is bad.'
```

**Response:** 
```
phraseCount: 3, repeatedPhrasesCount: 1, repetitionRatio: 0.33
```

**Prompt:** 
```
Is the repetition ratio of 'Hello world hello world' above 0.2?
```

**Response:** 
```
isAboveThreshold: true, repetitionRatio: 0.33
```

## Frequently Asked Questions

**What constitutes a repeated phrase?**
A phrase is defined as a sequence of exactly three consecutive words that appears two or more times in the text.

**How is the compression ratio calculated?**
The compression ratio represents the theoretical percentage of the total word count that can be saved if all redundant repetitions are removed.

**Can I check if my text is too repetitive?**
Yes, you can use the `check_repetition_threshold` tool to see if the repetition ratio exceeds a specific limit you define.
