Skip to main content
Glama

Import contacts

import_contacts_from_file
Destructive

Import every contact or company from a file the user uploaded — a CSV or spreadsheet export, a .vcf of contacts, or a zip. Use this whenever they want more than a couple of records created from a file: it reads the whole file at once, so never read a contact list with read_file and create the records one at a time. Find the file first with search_graph_objects (type 'file') and pass its object_id, or pass part of the filename as name. Pass a description of what the file holds when the user gave one — it is what tells the column mapper that 'Ref' is a phone number.

Input Schema

NameRequiredDescriptionDefault
nameNoPart of the filename, when the object_id is unknown.
object_idNoThe file's graph object_id (from search_graph_objects).
descriptionNoThe user's own description of what the file holds.
target_typeNoWhat each row is. Defaults to contact.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=true, so safety framing is partly covered. The description adds useful behavior ('reads the whole file at once') and explains the column-mapping heuristic, but says nothing about what happens on malformed rows, duplicates, partial failures, or whether an import can be undone — notable omissions for a destructive bulk write with no output schema.

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 action and accepted formats, then the negative guidance, then parameter routing. Dense but nearly every clause carries information; the em-dash aside about the column mapper is worth its length, though the sentence structure is slightly run-on.

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

Completeness3/5

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

No output schema exists, so the description should say what an import produces or how failures surface. It covers input sourcing and column inference well, but an agent still cannot predict return values, duplicate handling, or error behavior for a destructive operation on many records.

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

Parameters4/5

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

Schema coverage is 100%, so baseline would be 3, but the description adds real meaning: name is the fallback when object_id is unknown, object_id comes from search_graph_objects of type 'file', and description feeds the column mapper (the 'Ref' is a phone number example). Only target_type's row semantics beyond the enum is left to 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 ('Import every contact or company from a file') and enumerates accepted formats (CSV, spreadsheet export, .vcf, zip). It also contrasts the bulk path with the wrong per-record path, so an agent can distinguish it from create_graph_object and read_file without opening a 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?

Gives explicit when-to-use ('whenever they want more than a couple of records created from a file') and an explicit anti-pattern ('never read a contact list with read_file and create the records one at a time'). It also prescribes the prerequisite lookup (search_graph_objects with type 'file') and the object_id/name fallback.

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.