Skip to main content
Glama

Samuelz® Communications

Kontaktimport vorbereiten

prepare_contact_import
Idempotent

Preview an existing CSV import, not create CRM contacts yet. csv is the exact supplied UTF-8 document; requestKey is the stable UUID for these same bytes. dryRun controls whether the preview source is stored; afterRow is the previous pagination.nextAfterRow, not a line to invent. confirm_contact_import is the separate explicitly confirmed application. Parse a bounded UTF-8 RFC4180 CSV with org_name,address_line_1,postal_code,city,country_code,preferred_language,lawful_basis and optional attention_line,address_line_2,state,website,email,phone,external_ref,source_url,tags,segment. Preview tenant-scoped duplicates/suppression before writes. dryRun=true persists nothing; otherwise stores only the preview source. Keep requestKey and CSV unchanged. Optional campaignKey/campaignTitle group imported members. Follow pagination.nextAfterRow with the same requestKey/CSV as afterRow, including empty pages. Does not grant marketing consent, create users, send or subscribe anyone.

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

Input Schema

NameRequiredDescriptionDefault
csvYesExact supplied UTF-8 RFC4180 CSV with the required postal/contact headers. Never infer absent lawful basis or missing address fields.
dryRunNotrue parses/previews without persistence; false (default) stores only the preview source, never applies contacts or sends.
afterRowNoCopy pagination.nextAfterRow from the preceding preview/confirmation page with the same import identity and source. Default 0 starts the first page, including after an empty page.
requestKeyYesStable UUID for this exact CSV import preview. Keep it with identical CSV bytes during pagination and retry.
campaignKeyNoOptional stable campaign grouping; supply campaignTitle together with it or omit both.
campaignTitleNoHuman title of the optional campaign grouping; supply campaignKey together with it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / afterRow / description
      Added value: +"Copy pagination.nextAfterRow from the preceding preview/confirmation page with the same import identity and source. Default 0 starts the first page, including after an empty page."
    • addedInput schema / properties / campaignKey / description
      Added value: +"Optional stable campaign grouping; supply campaignTitle together with it or omit both."
    • addedInput schema / properties / campaignTitle / description
      Added value: +"Human title of the optional campaign grouping; supply campaignKey together with it."
    • addedInput schema / properties / csv / description
      Added value: +"Exact supplied UTF-8 RFC4180 CSV with the required postal/contact headers. Never infer absent lawful basis or missing address fields."
    • addedInput schema / properties / dryRun / description
      Added value: +"true parses/previews without persistence; false (default) stores only the preview source, never applies contacts or sends."
    • addedInput schema / properties / requestKey / description
      Added value: +"Stable UUID for this exact CSV import preview. Keep it with identical CSV bytes during pagination and retry."
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only say readOnlyHint=false, idempotentHint=true, destructiveHint=false. The description adds the crucial write-scope nuance: dryRun=true persists nothing, otherwise only the preview source is stored and no contacts or sends occur, plus it explicitly disclaims granting marketing consent, creating users, or subscribing anyone. It also discloses that duplicate/suppression checks are tenant-scoped and happen before writes — context the annotations 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.

Conciseness3/5

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

Front-loaded and information-dense, but it reads as one long run-on paragraph where purpose, parameter semantics, pagination protocol, and disclaimer are interleaved. Some content is repeated ('exact supplied UTF-8 document' / 'Parse a bounded UTF-8 RFC4180 CSV'), and grouping parameter guidance separately would make it easier to skim.

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

Completeness4/5

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

There is no output schema, so the description must imply return shape; it does so by referencing pagination.nextAfterRow as the continuation cursor, which is the key thing an agent needs. Given high schema coverage and rich annotations, this is nearly complete, though it never states what the preview itself contains (e.g., duplicate counts or row errors).

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 is 3, but the description adds meaning beyond it: it enumerates the required and optional CSV headers (org_name, address_line_1, postal_code, city, country_code, preferred_language, lawful_basis plus optional columns), and frames afterRow as 'the previous pagination.nextAfterRow, not a line to invent'. That guards against a common misuse the schema alone understates.

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 ('Preview an existing CSV import') and immediately scopes what it is not ('not create CRM contacts yet', pointing to confirm_contact_import as 'the separate explicitly confirmed application'). An agent can distinguish this from the sibling confirm tool without opening either 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 routing: use this to preview, use confirm_contact_import for the confirmed application. It also gives concrete operational conditions — keep requestKey and CSV unchanged across pages, advance via afterRow from pagination.nextAfterRow (including empty pages), and pair campaignKey with campaignTitle or omit both. When and when-not are both covered.

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