# Agent Persona Consistency Scanner AI Agent Connect

## Overview
- **Category:** developer-tools
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_uwtBwZEKuSKxeFNTl0dmxTzvbJXCVc7X6w3HYrm8/ai-agent-connect
- **Tags:** persona, linguistics, llm-evaluation, consistency, text-analysis

## Tools

### analyze_text_consistency
Performs a comprehensive linguistic audit of a text segment to determine how well it fits a specific persona profile

### calculate_formality_index
Isolates the formality component to determine if the text's tone is too casual or too formal for the persona

### get_persona_lexicon
Retrieves the specific list of forbidden words and required linguistic markers for a given persona

## Prompt Examples

**Prompt:** 
```
Analyze this text for persona consistency: 'I am very happy to meet you. He said that the weather is nice.'
```

**Response:** 
```
The pronoun ratio analysis shows a 50% usage of 1st person pronouns and 50% 3rd person pronouns.
```

**Prompt:** 
```
Check if the following text contains any forbidden words: ['bad', 'error'], Text: 'This is a bad error.'
```

**Response:** 
```
The vocabulary check identified 2 violations: 'bad' and 'error'.
```

**Prompt:** 
```
Calculate the formality of: 'Don't you think it's great?'
```

**Response:** 
```
The formality score is high due to the presence of 2 contractions ('Don't', 'it's') in a short string.
```

## Frequently Asked Questions

**How does the formality score calculation work?**
The `calculate_formality` tool counts the number of contractions found in the input text and calculates a density score relative to the total word count (contractions per 100 words).

**Can I use a custom list of forbidden words?**
Yes, the `check_vocabulary` tool accepts a JSON array of strings representing your restricted lexicon to identify any violations in the text.

**What is included in a full persona drift analysis?**
The `scan_persona` tool performs an integrated audit, combining pronoun ratio analysis, formality scoring, and vocabulary violation checks into a single comprehensive persona drift score.

**How is the persona drift score calculated?**
The drift score is an aggregate metric derived from deviations in pronoun usage, contraction density (formality), and the presence of forbidden words found via `analyze_text_consistency`.

**Can I use this with Claude Desktop?**
Yes, this MCP server can be connected to Claude Desktop, Cursor, VS Code, Windsurf, and any other MCP-compatible client via Vinkius Edge.

**What is a vocabulary boundary violation?**
A violation occurs when the text contains words defined in the persona's forbidden lexicon, which can be retrieved using `get_persona_lexicon`.