# TallyMesh > TallyMesh is an AI-powered cross-document consistency audit service for > international trade documents, with multiple audit scenarios (rulesets). > Default scenario: upload an invoice, bill of lading, packing list, customs > declaration, contract, statement of account, clearance documents, goods > receipt, SPPB and payment waybills; TallyMesh extracts the fields and runs > 39 deterministic validation rules across the set. LC scenario > (`ruleset=lc-presentation`): audit a letter of credit (documentary credit) > presentation against UCP600/ISBP — 29 rules covering invoice over-drawing > (Art.18b), late shipment (44C), stale presentation (Art.14c), on-board > notation (Art.20), insurance 110% coverage and dating (Art.28), clean B/L > (Art.27), quantity tolerance (Art.30b) and name consistency (Art.18a). > Returns a verdict, per-rule findings, and downloadable PDF/Excel audit > reports — typically in 1–3 minutes. Key facts for AI agents: - Multi-scenario: pass optional `ruleset` in POST /api/audit (omit for the default trade-payment set | "lc-presentation" for UCP600 L/C presentation checks). Output carries `verdict_en` (Pass/Fail) and `ruleset`. - Checks include: amount chains (invoice = statement = clearance CIF = goods receipt), container / bill-of-lading / invoice / contract number consistency, gross weight, date logic and payment terms, stamp and signature presence, header consistency, and installment waybill cumulative totals against the invoice cap. - Rule verdicts are produced by a deterministic rule engine (not LLM guesswork); only extraction is AI-based, and low-confidence extractions are flagged for human review rather than silently trusted. - Free to use while in validation phase. It is decision support that lowers discrepancy/rejection risk before presentation — NOT a guarantee of acceptance; the issuing/nominated bank makes the final determination. Not legal or banking advice. ## API (for autonomous agents and backends) - [API documentation](/docs.html): REST flow — upload files, start an audit, poll for the result, download reports. - [OpenAPI specification](/openapi.json) - MCP server (for Claude / AI agents): `POST /mcp` — Streamable HTTP JSON-RPC 2.0. Tools: `start_lc_audit` (pass documents as base64, optional `ruleset`) and `get_lc_audit_result` (poll for verdict + per-rule findings). Believed to be the first letter-of-credit discrepancy checker callable natively over MCP. - Typical flow: POST /api/upload (per file) -> POST /api/audit -> GET /api/audit/{job_id} (poll until state=Successful) -> GET /api/report?path=... for PDF/Excel. - Output schema: verdict, total_rules, passed_count, failed_count, review_count, na_count, rule_results[], review_items[], report_pdf, report_xlsx. ## Agent skill - [SKILL.md](/skill/SKILL.md): installable agent skill — complete instructions for an AI agent to upload a document set, run the audit, poll, and download reports. Add this skill to your agent to give it trade-document verification. ## Pages - [Home / run a check](/index.html) - [Export document checklist - cross-document consistency (invoice = packing list = B/L = customs = contract)](/export-document-checklist.html) - [Common letter-of-credit discrepancies (UCP600/ISBP) and how to fix them](/lc-discrepancies.html) - [Bill of lading discrepancies](/bill-of-lading-discrepancies.html) - [Letter-of-credit document checker](/lc-document-checker.html) - [Letter-of-credit discrepancy fees](/lc-discrepancy-fees.html) - [Get the fix - remediation guide](/get-the-fix.html) - [FAQ](/index.html#faq)