Export / Import Company Data
accounting_data_transferMove a company's local accounting rules and state between machines or API keys via export/import, with dry-run review and owner-approved execution; no e-arveldaja changes.
Instructions
Move this company's local MCP data (saved booking and annual-report rules, plus local state: statement balances, receipt digests, CAMT acknowledgements, limited-VAT settings, Lightyear USD pool) to another machine or a new API key. export = write one .json file (new file only, 0600; no credentials). import = dry run (per file new / identical / differs, row-level rule diffs, state record counts) → owner approval → execute:true + plan_handle. Refused for another company (company_mismatch). Existing state is never overwritten unless named in replace_state_stores; a differing rule file is written only when named in apply_rule_files. Nothing is changed in e-arveldaja.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"mode": "<mode>",
"file_path": "<file_path>"
},
"name": "accounting_data_transfer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | export | import | |
| execute | No | import: false (default) = dry run; true = execute an approved plan_handle | |
| file_path | Yes | Absolute path. export: the new .json file to write; import: the export file to read | |
| plan_handle | No | import with execute:true: the handle from the dry run | |
| apply_rule_files | No | import: rule files (paths as listed by the dry run) whose imported version replaces a differing local one | |
| replace_state_stores | No | import: state stores whose existing records for this company are replaced by the imported ones |