# WeChat Red Packet Simulator AI Agent Connect

> Simulate deterministic WeChat 'Lucky Money' distributions with inequality metrics.

## Overview
- **Category:** finance
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_RP4rFDbtHCp8oOApW53JoItzbycpKP9v0ygY8JC0/ai-agent-connect
- **Tags:** wechat, hongbao, gini, distribution, simulator

## Description

This MCP server provides precise tools to simulate WeChat Red Packet (Hongbao) distributions. It implements the 'double average' constraint for fair random distributions and provides statistical analysis including the Gini coefficient to measure inequality. Use `simulate_distribution` to generate specific fund breakdowns, `get_distribution_stats` to analyze existing distributions, and `validate_constraints` to ensure a total amount can support the minimum 0.01 RMB requirement per recipient.

## Tools

### get_distribution_stats
Provides high-level summary metrics for a previously generated distribution

### simulate_distribution
Generates a specific distribution of funds based on the chosen logic

### validate_constraints
01 RMB.

Checks if a specific distribution configuration is valid under WeChat's economic rules

## Prompt Examples

**Prompt:** 
```
Simulate a fair random distribution of 100 RMB for 10 people.
```

**Response:** 
```
The distribution has been generated. The amounts are [12.45, 8.32, 15.10, 7.55, 11.20, 9.88, 13.40, 6.12, 10.50, 5.48]. The Lucky King received 15.10 RMB and the Gini coefficient is 0.24.
```

**Prompt:** 
```
Divide 50 RMB equally among 5 recipients.
```

**Response:** 
```
Each of the 5 recipients receives exactly 10.00 RMB.
```

**Prompt:** 
```
Check if 5 RMB is enough for 600 people.
```

**Response:** 
```
No, it is not possible. The required minimum is 6.00 RMB, resulting in a shortfall of 1.00 RMB.
```

## Frequently Asked Questions

**What is the difference between the distribution types?**
Fixed Equal divides the total amount equally among all recipients, while Random Fair uses a probabilistic approach where each person's share is bounded by twice the current average of the remaining funds.

**How is the inequality measured?**
Inequality is measured using the Gini coefficient, which ranges from 0 (perfect equality) to 1 (extreme inequality).

**Can I simulate a distribution that is too small?**
If the total amount is less than 0.01 RMB multiplied by the number of recipients, the `validate_constraints` tool will flag the configuration as impossible.
