Skip to main content
Glama

Create contact batch

create_contact_batch

Create up to 1000 contacts in one call — use this for imports instead of repeated create_contact calls. Each item has the same shape as create_contact. on_conflict decides what happens to an email that already belongs to a contact, or repeats inside the batch: error (default) counts it as a failed item, skip keeps the existing contact and reports its id, upsert merges names, properties, segments and topics into it (a batch never re-subscribes anyone). validation strict (default) is all-or-nothing: any failed item — invalid, conflicting, or naming an unknown segment or topic — rejects the whole batch with that item's status and nothing is written; permissive writes every item that succeeds and lists the failures 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": {
      "contacts": "<contacts>"
    },
    "name": "create_contact_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
contactsYes1-1000 contacts, each the same shape as create_contact
validationNostrict (default): all-or-nothing; permissive: write the valid subset
on_conflictNoWhat to do with an email that already belongs to a contact (default error)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only give the safety profile (readOnlyHint=false, destructiveHint=false, openWorldHint=false); the description adds far more: a batch never re-subscribes anyone, error counts an item as failed, skip retains the existing contact and reports its id, upsert merges fields, and strict writes nothing on any failure while permissive writes the valid subset. These are consequential side effects the agent could not infer.

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-loads the core purpose and the sibling alternative in the first sentence, then details conflict and validation behavior. The remaining sentences are dense and parenthetical-heavy but each clause carries operational meaning, with no filler.

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 mutation tool with no output schema, the description covers the item limit, item shape, defaults, failure handling, and even partial return semantics ('reports its id', 'lists the failures in errors'). Nothing needed to call it correctly is missing.

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% and both enums are already described, so the baseline is 3; the description meaningfully exceeds it by explaining that conflicts include repeats inside the batch, that upsert merges names/properties/segments/topics without re-subscribing, and that strict rejection returns the offending item's status. Added value is real but partially overlaps the schema's enum descriptions.

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 ('Create up to 1000 contacts in one call') plus the batch scope, and explicitly distinguishes itself from the sibling create_contact by name. An agent can select it over create_contact 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?

Explicitly says to use this 'for imports instead of repeated create_contact calls', and further explains when to choose each on_conflict and validation mode. Both the alternative to avoid and the conditions selecting each mode are stated.

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.