parse_invoice
Parse a supplier's commercial invoice or packing list into customs-ready line items.
Extracts invoice number, date, parties, currency, Incoterms and country of origin, and for each
line: description, model, material, supplier HS code, quantity, unit, price, amount, net and
gross weight. Checks arithmetic (qty x price, sum vs total), explains what to add to the invoice
value for customs value under the given Incoterms, and suggests a TN VED search query per line
(HS code first 6 digits or Russian keywords). Feed the lines to tnved_search and calc_import_payments.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "parse_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_url | No | Public link to the invoice file: .xlsx/.csv are parsed directly; PDF/scans/DOCX go through DocParse when the server has it configured | |
| invoice_text | No | Invoice or packing list as Markdown or plain text, e.g. the output of DocParse. Tables with English, Chinese (品名, 数量, 单价, 金额, 净重) or Russian headers |