Skip to main content
Glama

Map import columns

map_import
Destructive

Set 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

NameRequiredDescriptionDefault
job_idYesthe import job id
mappingNoOMIT to let the server auto-map. Provide a mapping to override.
save_asNooptional name to save this mapping as a reusable template
source_systemNothe system the file was exported from; used only when mapping is omitted
organization_idNoorganization to act in, an id from get_me; omit to use your active organization

Output Schema

NameRequiredDescriptionDefault
okYestrue on success (including confirmation_required prompts)
dataNothe API response { status (HTTP status), data: { import_job_id, status, mapping, ai_generated, decision_model { mapping_confidence, target, ready_to_commit } } }
errorNowhen ok is false

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / job_id / minLength
      Added value: +1
    • removedInput schema / properties / mapping / additionalProperties
      Removed value: -false
    • removedInput schema / properties / mapping / properties / columns / items / additionalProperties
      Removed value: -false
    • changedInput schema / properties / organization_id / description
      Previous value: -"defaults to your active organization"New value: +"organization to act in, an id from get_me; omit to use your active organization"
    • addedInput schema / properties / source_system
      Added value: +{
      +  "description": "the system the file was exported from; used only when mapping is omitted",
      +  "enum": [
      +    "HUBSPOT",
      +    "FLEX",
      +    "BACK_ON_STAGE",
      +    "PLANNING_CENTER",
      +    "LASSO",
      +    "MASTER_TOUR",
      +    "RENTMAN",
      +    "STAGERA"
      +  ],
      +  "type": "string"
      +}
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / properties / data / description
      Previous value: -"tool payload (API/composite/confirmation object); object, array, or primitive JSON"New value: +"the API response { status (HTTP status), data: { import_job_id, status, mapping, ai_generated, decision_model { mapping_confidence, target, ready_to_commit } } }"
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "data": {
      +      "description": "tool payload (API/composite/confirmation object); object, array, or primitive JSON"
      +    },
      +    "error": {
      +      "description": "when ok is false",
      +      "type": "string"
      +    },
      +    "ok": {
      +      "description": "true on success (including confirmation_required prompts)",
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "ok"
      +  ],
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.7/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Goes well beyond the destructive=true annotation by naming what is destroyed (the current mapping and the preview stored by preview_import), the overwrite semantics of save_as templates, persistence scope (visible to CRM managers via list_imports), and that there is no confirmation step. Minor gap: it does not say what the tool returns or whether it fails when job state is wrong, though an output schema exists.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action and dense with useful detail, but the enumeration of all eight source_system values duplicates the schema enum and the sentences are long compound clauses. Trimming the vendor list would tighten it without losing information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a five-parameter, nested-schema mutation with an output schema, the description covers the destructive side effects, persistence, visibility, workflow ordering, and the save_as caution. Nothing an agent needs to invoke it safely is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning: omitting mapping triggers server auto-mapping, source_system is only consulted when mapping is omitted, and save_as overwrites an existing template for the same column layout and requires user confirmation. Those are behavioral consequences not stated in the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource (set the column→field mapping for an import job) in the first sentence, and immediately contrasts it with the auto-map path and with the preview_import/commit_import siblings. An agent can place this tool in the import workflow without opening another schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit conditional guidance: call with no mapping to auto-map, pass source_system only for foreign exports, call preview_import before commit_import, and confirm with the user before save_as. It also notes that nothing is written until commit_import, which is exactly the when-to-use boundary an agent needs.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.