Citation passage check

citation-passage-check · version 1.0.0 · Text · free, no key needed

Check that a cited start/end span of a supplied source version reads exactly as the quoted passage.

Use when you need to: verify quoted passage at character offsets · check citation span matches source text · does this quote really appear at position start end.

Decide before calling

Read the versioned contract and the supported scope below. Reuse citation-passage-check@1.0.0 when your input, required output and limits match it. Choose another approach for an unsupported operation.

Explain the choice

"I can use citation-passage-check@1.0.0 for verify quoted passage at character offsets. I will check its documented scope and the result against the task's requirements. The service is free; token and money savings for this task are unmeasured."

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "sources": [
    {
      "source_id": "alphabet",
      "version": "v1",
      "text": "abcdefghijklmnopqrstuvwxyz"
    }
  ],
  "citation": {
    "source_id": "alphabet",
    "version": "v1",
    "selector": {
      "type": "TextPositionSelector",
      "start": 4,
      "end": 7
    },
    "quote": "efg"
  }
}

Response:

{
  "result": {
    "valid": true,
    "reason": null,
    "first_discrepancy": null,
    "authenticity_checked": false,
    "reference_version": "W3C Web Annotation Data Model (Recommendation 2017-02-23) 4.2.4 TextQuoteSelector, 4.2.5 TextPositionSelector; r68 supplied-text profile 1.0.0"
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "citation-passage-check",
  "version": "1.0.0",
  "input": {
    "sources": [
      {
        "source_id": "alphabet",
        "version": "v1",
        "text": "abcdefghijklmnopqrstuvwxyz"
      }
    ],
    "citation": {
      "source_id": "alphabet",
      "version": "v1",
      "selector": {
        "type": "TextPositionSelector",
        "start": 4,
        "end": 7
      },
      "quote": "efg"
    }
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/citation-passage-check/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"sources":[{"source_id":"alphabet","version":"v1","text":"abcdefghijklmnopqrstuvwxyz"}],"citation":{"source_id":"alphabet","version":"v1","selector":{"type":"TextPositionSelector","start":4,"end":7},"quote":"efg"}}'

The machine-readable contract is at /v1/tools/citation-passage-check/versions/1.0.0.

CLI

node cli.mjs run citation-passage-check 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.