Find dangling and duplicated cross-references (Section 3.2, Table 4, Figure 2, [7]) in a document

$0.005 USDC per call · Agent infrastructure · POST /api/v1/cross-reference-check · Id cross-reference-check

Scans a document for the targets it defines (numbered headings, Table/Figure/Listing/Equation captions at line start, Appendix/Annex headings, [n] bibliography entries, [^id] footnote definitions) and the references it makes to them ('see Section 3.2', 'Tables 2 and 4', 'Figures 3 to 5', '[7]', '[^note]'), and reports references with no target, targets defined twice, and targets never referenced, each with offsets in UTF-16, code points, UTF-8 bytes and graphemes. English labels only; it does not check that a target says what the reference claims, and 'see above' style references are not resolved. Plain text and Markdown.

What you get

Finds 'see Table 5' when there is no Table 5 before a document goes out. 150,000 characters per $0.005 call.

Call it

Send the JSON body below to https://agents.writerslogic.com/api/v1/cross-reference-check. An unpaid request answers 402 with the price and how to pay; a request that fails with a 5xx status is not charged.

curl -i -X POST https://agents.writerslogic.com/api/v1/cross-reference-check \
  -H 'content-type: application/json' \
  -d '{"text":"# 1 Introduction\nSee Section 2 and Table 3.\n\n# 2 Method\nTable 1: Settings\n\n[1] Smith 2020\n\nAs in [1] and [2]."}'

Input

FieldTypeRequiredDescription
textstring; length 1..150000yesDocument text (plain text or Markdown).

Example request body

{
  "text": "# 1 Introduction\nSee Section 2 and Table 3.\n\n# 2 Method\nTable 1: Settings\n\n[1] Smith 2020\n\nAs in [1] and [2]."
}

Result

The response is { "data": ..., "_provenance": ... }. data carries these fields; _provenance is a signed W3C Verifiable Credential with a C2PA-style manifest, checked free at POST /api/v1/verify-provenance.

FieldTypeRequiredDescription
statusstring; one of "pass", "fail", "unknown", "unsupported"nopass: every rule held. fail: a rule was violated (see witnesses). unknown: the input lacks the evidence to decide. unsupported: outside what this engine covers. Missing evidence is never a pass.
targetsarray<object>; max 500 itemsno
referencesarray<object>; max 500 itemsno
danglingarray<object>; max 500 itemsno
duplicatesarray<object>; max 500 itemsno
unreferencedarray<object>; max 500 itemsno
truncatedbooleanno
witnessesarray<object>no
versionsobjectnoEvery semantic dependency of this answer (engine, tables and their as-of dates, tokenizer, calendar, rounding profile).
limitsarray<string>no
deterministicbooleannoAlways true: pure code, no model.

Pay and connect

Available through: x402 (USDC on Base), MCP. MCP clients reach it through the context-evidence-kit package.

Machine-readable