Map import columns
map_importSet the column→field mapping for an import job. Call with NO mapping to let the server auto-map; when the file is an export from HUBSPOT, FLEX, BACK_ON_STAGE, PLANNING_CENTER, LASSO, MASTER_TOUR, RENTMAN, STAGERA, pass source_system so that system's own column headers are mapped first. Each call replaces the job's current mapping and discards the preview that preview_import last stored on the job. What is stored: the mapping, on the import job in your organization, until the next map_import replaces it; CRM managers can see it through list_imports. With save_as, it also saves the mapping as the organization's template for this column layout, overwriting any template already saved for the same columns; confirm with the user before passing save_as. No gig or contact is written until commit_import. Once correct, call preview_import before commit_import. Runs on the first call; there is no confirmation step.
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": {
"job_id": "<job_id>"
},
"name": "map_import"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | the import job id | |
| mapping | No | OMIT to let the server auto-map. Provide a mapping to override. | |
| save_as | No | optional name to save this mapping as a reusable template | |
| source_system | No | the system the file was exported from; used only when mapping is omitted | |
| organization_id | No | organization to act in, an id from get_me; omit to use your active organization |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | true on success (including confirmation_required prompts) | |
| data | No | the API response { status (HTTP status), data: { import_job_id, status, mapping, ai_generated, decision_model { mapping_confidence, target, ready_to_commit } } } | |
| error | No | when ok is false |