This validator checks documents against international standards like the UN Layout Key, ICC Uniform Customs rules, and DCSA standards before your agent processes them. The free tier gives you 10 calls per month on `check_document`, which returns a four-level verdict (PROCEED/VERIFY_MANUALLY/HOLD/REFER_TO_HUMAN) plus confidence score and flags. The paid `check_document_package` tool cross-checks 2 to 20 related documents for consistency conflicts in weights, party names, dates, and commodity descriptions. It's built for agents handling Bills of Lading, Letters of Credit, customs declarations, or any structured trade documents where acting on malformed or contradictory paperwork creates liability. Runs over streamable HTTP at Railway, so no local setup required.
Before your agent accepts, processes, or acts on any document received from an external party -- verify it is internally consistent and matches the known standard for its type. One call. Any document. Machine-readable verdict.
Checks any document for internal consistency, completeness, and anomalies against the known international standard for that document type. Accepts base64 image or extracted text. Returns a structured verdict with a machine-readable agent_action field.
Supported standards include: ICAO Document 9303 (passports), Hague-Visby Rules 1968 (bills of lading), UCP 600 (trade finance documents), ISPM 12/IPPC/FAO (phytosanitary certificates), Vienna Convention on Road Traffic 1968 (driving licences), and more.
Returns UNKNOWN_DOCUMENT_TYPE rather than guessing on unfamiliar documents -- refusal is correct behaviour, not a failure.
AI-powered reasoning -- NOT a database lookup.
Checks a single document against its international standard.
Input:
document_text (string, optional) -- extracted text from the documentdocument_image (string, optional) -- base64 encoded image (raw base64 or data URL)document_type_hint (string, optional) -- agent belief about document typeissuing_jurisdiction (string, optional) -- country or issuing bodyAt least one of document_text or document_image is required.
Response:
{
"agent_action": "PROCEED",
"verdict": "PASS",
"confidence": "HIGH",
"document_type_identified": "Bill of Lading",
"assessed_against": "Hague-Visby Rules 1968",
"known_issuing_standard": "IMO",
"flags": [],
"reason": "Document is internally consistent and compliant with Hague-Visby Rules 1968.",
"analysis_type": "AI-powered reasoning -- NOT a database lookup",
"checked_at": "2026-05-06T10:00:00.000Z",
"_disclaimer": "..."
}
agent_action values:
PROCEED -- document passedVERIFY_MANUALLY -- flags found, agent should flag for human reviewHOLD -- document failed, do not proceedREFER_TO_HUMAN -- document type unknown, refer for manual assessmentChecks 2-20 related documents individually then cross-checks all for consistency conflicts.
Input:
documents (array, min 2, max 20) -- each item has: label (required), document_text, document_image, document_type_hint, issuing_jurisdictionCross-checks performed: weights/quantities/amounts, party names, reference numbers, dates, commodity descriptions, port references.
| Tier | Calls | Price |
|---|---|---|
| Free | 10/month per IP | No API key required |
| Trial extension | +10 one-time | POST /trial-extension |
| Pro | 500/month | $29/month |
| Enterprise | 5,000/month | $199/month |
Overage: $0.05 per call above monthly cap.
Subscribe at kordagencies.com.
{
"mcpServers": {
"document-integrity-validator": {
"type": "http",
"url": "https://document-integrity-validator-mcp-production.up.railway.app/mcp"
}
}
}
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"document-integrity-validator": {
"url": "https://document-integrity-validator-mcp-production.up.railway.app/mcp",
"transport": "http"
}
})
tools = await client.get_tools()
from agents import Agent, HostedMCPTool
agent = Agent(
name="Assistant",
tools=[HostedMCPTool(tool_config={
"type": "mcp",
"server_label": "document-integrity-validator",
"server_url": "https://document-integrity-validator-mcp-production.up.railway.app/mcp",
"require_approval": "never"
})]
)
npm install -g document-integrity-validator-mcp
ANTHROPIC_API_KEY=sk-ant-... TRANSPORT=stdio document-integrity-validator-mcp
Add to Claude Desktop claude_desktop_config.json:
{
"mcpServers": {
"document-integrity-validator": {
"command": "document-integrity-validator-mcp",
"env": { "ANTHROPIC_API_KEY": "sk-ant-..." }
}
}
}
If you have reached the 10 call/month free limit, request 10 extra calls:
curl -X POST https://document-integrity-validator-mcp-production.up.railway.app/trial-extension \
-H "Content-Type: application/json" \
-d '{"name":"Your Name","email":"you@example.com","use_case":"Brief description"}'
One extension per email address.
AI-powered document consistency assessment. Results are for informational purposes only and do not constitute legal, compliance, or authentication advice. We do not log or store your document content. Full terms: kordagencies.com/terms.html
ANTHROPIC_API_KEY*secretAnthropic API key
io.github.ericm1018/skillfm-llm-cost-optimizer-openai-anthropic-usage
io.github.mikerawsonnz/llm-orchestration-agent
io.github.mikerawsonnz/authenticated-llm-agent
labforgedev/copilot-memory-mcp
csoai-org/agent-prompt-injection-firewall-mcp
io.github.mikerawsonnz/authenticated-multi-llm-agent