import_organisations
Import company records into accounts WITH validation, duplicate matching, provenance and a log. PREVIEW BY DEFAULT: nothing is written unless commit=true — a batch import is the change where one mistake hits two hundred rows, not one. Preview and real run take the same path and produce the same log, so what you review is what will happen. Duplicates are matched on register number + court, then VAT id, then normalised name — and a NAME match never merges by itself: same-named companies in different towns are common, and un-merging two companies afterwards is hand work across every record. An existing, non-empty field is never overwritten silently; it is reported as a difference. Bad rows do not stop the run, they land in the log with a reason. Accepts rows (array) or csv (text with a header line).
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": "import_organisations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| csv | No | Alternative to rows: CSV with a header line. Separator ; or , | |
| rows | No | Company records: name (required), legal_form, register_number, register_court, vat_id, address, postal_code, city, country, website, representatives[]. | |
| commit | No | true actually writes. Default false = preview. | |
| source | No | Where this came from — appears in the log and in each field's provenance. E.g. 'handelsregister', 'csv:kundenliste-2026'. | |
| merge_suggestions | No | true also merges UNCERTAIN (name-only) matches. Off by default, and think twice: that is the setting that merges two different companies. |