execute_import
Upload a CSV or XLSX file and trigger an import using a predefined mapping, returning an import ID for tracking.
Instructions
Uploads a CSV/XLSX file and starts an import using an existing mapping. The MCP server reads the file from disk — pass an absolute path. Returns the created import object including importId. Status starts as SCHEDULED — poll get_import_status or use wait_for_import. Limits: .csv/.xlsx/.xls only, 50MB max.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| companyId | Yes | Company id from list_companies. | |
| filePath | Yes | Absolute path to a .csv, .xlsx, or .xls file on the machine running the MCP server. | |
| entityName | Yes | Entity to import as — must match list_entities (e.g. 'Journal Entry'). | |
| mappingId | Yes | Mapping id from list_mappings to apply to the file. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Import id. | |
| status | Yes | Lifecycle status (SCHEDULED, IN_PROGRESS, FINISHED, FINISHED_WITH_WARNINGS, FAILED, CANCELED, REVERTING, REVERTED). | |
| entityName | No | Entity type being imported. | |
| fileName | No | Uploaded file name. | |
| summary | No | Counts per result type. | |
| createdAt | No | ISO timestamp. | |
| finishedAt | No | ISO timestamp when reached terminal status, if applicable. |