Skip to main content
Glama

WritersLogic verifiable AI agents

citation-span

Locate quoted text in a source with exact offsets, or classify it as normalized, elided, paraphrased or absent — Finds each quote an agent attributes to a source text and returns where it sits: exact offsets in UTF-16, code points, UTF-8 bytes and graphemes, so the span slices back to the matched text. Tries an exact match, then a match tolerant of whitespace, curly vs straight quotes, dash types, ellipses, invisible characters and Unicode forms (NFC/NFD, ligatures), naming which normalizations were needed,

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "source": "<source>",
      "quotes": "<quotes>"
    },
    "name": "citation-span"
  }
}

Input Schema

NameRequiredDescriptionDefault
quotesYesUp to 50 quotes, 40000 characters in total.
sourceYesText the quotes are claimed to come from.
tolerateNoNormalizations that still count as a match. Default: all six.
exactOnlyNoCount only byte-identical matches as pass; normalized matches become fail. Default false.
minLengthNoQuotes shorter than this many characters (after trimming quote marks) are too-short and give unknown. Default 8.
ignoreCaseNoAlso tolerate case differences (reported as a normalization). Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources