Skip to main content
Glama

detect_pattern_contamination

Detect when AI-generated text completes known patterns not present in source documents, preventing contamination across domains like religious texts, legal documents, or fairy tales.

Instructions

Detect when output may be completing a known pattern not in source.

Domain-agnostic: works for any genre (religious, fairy tales, legal, etc.). Agent provides patterns dynamically based on document genre.

Args: claimed_output: What the agent claims is in the text. segment_id: ID of the segment to check against. patterns: Optional: Pattern definitions with trigger/expectedCompletion.

Returns: Pattern contamination detection result.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
claimed_outputYes
segment_idYes
patternsNo

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Rixmerz/bigcontext_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server