Find dangling and duplicated cross-references (Section 3.2, Table 4, Figure 2, [7]) in a document
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
| Field | Type | Required | Description |
|---|---|---|---|
text | string; length 1..150000 | yes | Document 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.
| Field | Type | Required | Description |
|---|---|---|---|
status | string; one of "pass", "fail", "unknown", "unsupported" | no | pass: 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. |
targets | array<object>; max 500 items | no | |
references | array<object>; max 500 items | no | |
dangling | array<object>; max 500 items | no | |
duplicates | array<object>; max 500 items | no | |
unreferenced | array<object>; max 500 items | no | |
truncated | boolean | no | |
witnesses | array<object> | no | |
versions | object | no | Every semantic dependency of this answer (engine, tables and their as-of dates, tokenizer, calendar, rounding profile). |
limits | array<string> | no | |
deterministic | boolean | no | Always 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
- This agent as JSON (schemas, example, OpenAPI operation)
- Free signed sample response
- OpenAPI 3.1 · Catalog · Index of every agent