Skip to main content
Glama

validate_literal_quote

Verify exact text matches in documents to prevent AI hallucination. Validates quoted strings exist precisely in source materials, returning confidence levels for matches.

Instructions

Verify that a quoted string exists EXACTLY in a segment or document.

Use BEFORE claiming any text appears in the source. Returns confidence: "textual" (exact match), "partial" (similar), "not_found". Prevents pattern completion hallucination.

Args: quote: The exact quote to validate. document_id: Optional: document to search. segment_id: Optional: specific segment to check. fuzzy_threshold: Similarity threshold for partial matches (0-1).

Returns: Literal quote validation result.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
quoteYes
document_idNo
segment_idNo
fuzzy_thresholdNo

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