Skip to main content
Glama

Import contacts from CSV

import_contacts

Import contacts from CSV text and start the import. Detects the email, first name and last name columns from the header. Returns {import, mapping_used}; the import runs in the background. Errors: empty_csv, invalid_csv, csv_too_large, too_many_rows, unknown_column, not_found (list). Next: get_import with import.id until import.status is done; rows that failed or were skipped are in errors.

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": {
      "csv": "<csv>"
    },
    "name": "import_contacts"
  }
}

Input Schema

NameRequiredDescriptionDefault
csvYesThe whole CSV file as text. First row is the header. Up to 25 MB.
tagsNoTags to add to every imported contact.
filenameNoFile name for the record, such as "customers.csv".
list_idsNoList ids (lst_...) every imported contact is added to.
email_columnNoHeader of the email column. Leave out to detect it ("email", "e-mail", ...).
update_existingNoMerge into contacts that already exist instead of skipping them. Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Goes well past the annotations by disclosing that the import runs in the background, the exact return shape {import, mapping_used}, an enumerated error list (empty_csv, invalid_csv, csv_too_large, too_many_rows, unknown_column, not_found), and where failed or skipped rows surface. This is exactly the async and failure-mode context the readOnly/destructive hints cannot convey.

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

Conciseness5/5

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

Front-loaded with the action, then return shape, then errors, then next step, using compact labeled segments with no filler. Every clause carries operational information an agent needs to call and follow up correctly.

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?

With no output schema and an asynchronous workflow, the description supplies the missing pieces: the response envelope, the polling continuation, and the error taxonomy. Nothing material for correct invocation and follow-through is absent.

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

Parameters3/5

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

Schema coverage is 100%, so all six parameters are already documented, including email_column's auto-detect fallback and update_existing's merge semantics. The description restates header detection and the first row being the header, which adds little beyond the schema, so the baseline 3 applies.

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 ('Import contacts from CSV text') plus an explicit secondary action ('start the import'), and clarifies that header columns are auto-detected. An agent can distinguish this bulk-file ingestion tool from add_contact or bulk_contacts without opening any schema.

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

Usage Guidelines4/5

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

Gives clear forward guidance: the import is asynchronous and the agent should poll 'get_import with import.id until import.status is done'. It does not say when to prefer this over sibling ingestion paths (bulk_contacts, import_site, add_contact), so no explicit alternatives or exclusions are offered.

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.

Resources