Truncation Detector & Graceful Terminator

Truncation Detector & Graceful Terminator MCP Connector for Claude

A+

Detects and repairs truncated LLM outputs to restore structural integrity.

3 tools Official Updated Oct 1, 2026 Official Vinkius Partner

This MCP server provides essential diagnostic and recovery tools for handling incomplete Large Language Model (LLM) responses. It identifies if an output was cut off due to token limits by checking for mid-word cutoffs, missing terminal punctuation, or unclosed structural elements like brackets and braces. Using detect_truncation, you can confirm if a response is incomplete. The repair_truncated_text tool uses a deterministic stack-based approach to append the necessary closing characters, ensuring JSON or Markdown structures are syntactically valid. Additionally, validate_structural_integrity allows for verifying the completeness of text in plain_text, json, or markdown formats.

llmtruncationjson-repairtext-processingdebugging

3 tools expose this connector's capabilities to your AI agent.

detect_truncation

repair_truncated_text

validate_structural_integrity

See how to talk to your AI agent using Truncation Detector & Graceful Terminator.

Check if this text is truncated: {"name": "item", "value": 10

{"name": "item", "value": 10}

Is this sentence complete? The weather is very

The weather is very.

Validate the integrity of this markdown: # Title This is a test

The markdown structure is valid.

The `detect_truncation` tool checks for missing terminal punctuation, mid-word cutoffs, and unmatched opening symbols like braces or brackets.

Related Connectors