Skip to main content
Glama

import_leads

Destructive

Bulk import leads WITH custom fields, duplicate check and a log. PREVIEW BY DEFAULT: nothing is written unless commit=true; preview and commit take the same path and write the same log (list_import_runs). Duplicates: same e-mail = the existing lead (skipped, or with update_existing=true its EMPTY columns are filled and the custom values set — never overwritten); same company domain (from e-mail or website, free-mail ignored) = only a suggestion, not created unless create_domain_matches=true. Bad rows do not stop the run. Accepts rows (array; lead columns like title, first_name, last_name, email, phone, website, city, postal_code, country, category, source, notes … plus custom: { key: value }) or csv (header line; a column named like a custom field key or custom_ goes into that field; multiselect values separated by ; or ,). Up to 10000 rows per call.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "import_leads"
  }
}

Input Schema

NameRequiredDescriptionDefault
csvNoCSV text with header line (alternative to rows)
rowsNoLeads as objects with lead columns plus custom: { key: value }
commitNotrue writes. Default false = preview.
sourceNoWhere the rows come from, e.g. 'brevo-2025-12' — appears in the log; also set as the leads' source if the row has none.
update_existingNoSame e-mail: fill empty columns and set custom values on the existing lead.
create_domain_matchesNoCreate leads even if only the company domain matches an existing lead.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / csv / description
      Added value: +"CSV text with header line (alternative to rows)"
    • addedInput schema / properties / rows / description
      Added value: +"Leads as objects with lead columns plus custom: { key: value }"
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only flag destructiveHint/readOnlyHint/idempotentHint; the description goes far beyond by disclosing that preview is the default and writes nothing, that preview and commit share the same code path and log, that existing leads are never overwritten (only empty columns filled), that bad rows do not abort the run, and the 10000-row cap.

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 default-safe behaviour, which is the most important fact, and every clause carries information. It is a dense paragraph with a very long rows/csv sentence, so scanning cost is higher than a bulleted layout would be.

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 destructive bulk-write tool with no output schema, it covers the safety model, accepted input shapes, duplicate policy, row limit, and where results are recorded (list_import_runs). An agent has everything needed to invoke it correctly.

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 already 100%, yet the description adds real semantics: the dual role of 'source' (log entry plus fallback lead source), CSV header mapping into custom fields via key or custom_<key>, ';' or ',' for multiselect values, and the precise skip-vs-fill behaviour of update_existing.

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?

Opens with a specific verb and resource ('Bulk import leads') and immediately enumerates the differentiators: custom fields, duplicate check, logging. An agent can distinguish this from add_lead-style siblings and from list_import_runs without opening the 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?

Explicitly states the default mode (preview) and the exact switch to real writes (commit=true), plus the conditions that trigger each duplicate path (update_existing, create_domain_matches). It does not name sibling importers (e.g. import_brevo_contacts, sync_linkedin_leads) or say when to prefer them, so a small routing gap remains.

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.