# Chengyu Tone & Pattern Validator AI Agent Connect

> Validates the phonetic structure and poetic meter of Chinese Chengyu.

## Overview
- **Category:** education
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_VDu3h558n5HkWCZw4vQtZebsP4uWFHHbLwfiKMLk/ai-agent-connect
- **Tags:** chengyu, mandarin, phonetics, poetic-meter, linguistics

## Description

This MCP server provides tools to analyze the structural integrity of Chinese four-character idioms (Chengyu). It uses phonetic tone sequences to validate length, detect phonetic clashing, and check if the idiom adheres to classical poetic rhythms like Ping-Ping-Ze-Ze. You can also evaluate the semantic density to see how much narrative information is contained within the characters. Use `validate_chengyu_structure` for basic checks, `check_poetic_meter` for rhythmic analysis, and `evaluate_semantic_density` for narrative richness.

## Tools

### check_poetic_meter
g., "1-1-4-4") to check against classical patterns.

Determines if the tone pattern adheres to classical Chinese poetic rhythms

### validate_chengyu_structure
Validates the basic length and tone sequence of a provided Chengyu

### evaluate_semantic_density
Estimates the narrative richness of the idiom

## Prompt Examples

**Prompt:** 
```
Is the idiom '一帆风顺' with tones 1-2-1-4 structurally valid?
```

**Response:** 
```
Yes, the idiom is structurally valid with a tone pattern of 1-2-1-4.
```

**Prompt:** 
```
Check the poetic meter for the tone pattern 1-1-4-4.
```

**Response:** 
```
The pattern 1-1-4-4 matches the classical Ping-Ping-Ze-Ze rhythm.
```

**Prompt:** 
```
How much semantic density does '画蛇添足' have?
```

**Response:** 
```
The idiom '画蛇添足' has a high semantic density as it conveys a complete narrative concept.
```

## Frequently Asked Questions

**What is a Chengyu?**
A Chengyu is a traditional Chinese idiom consisting of exactly four characters, often carrying deep historical or poetic meaning.

**How do I check if an idiom follows classical poetic meter?**
You can use the `check_poetic_meter` tool by providing the hyphenated tone sequence of the idiom.

**What does phonetic clashing mean?**
Phonetic clashing occurs when a sequence of tones lacks melodic variation, such as four consecutive 4th tones, which disrupts the classical rhythm.
