Skip to main content
Glama

Import a contact draft

flow_commit_contact_import

Imports a draft built with flow_import_contacts as one contact import: the numbers are verified and merged into the brand's contacts as a file upload's are, and the rows it cannot use are listed by flow_list_rejected_contacts. A number the brand already has updates that contact: its name and email become this file's. The plan says how many of the draft's numbers already belong to contacts, with a few of them as they are now; tell the user before they confirm. Answers the import's id and the link to its summary in the portal; flow_get_contact_import follows its progress. Calling it again for the same draft answers the same import. While 5 imports of the brand wait, or others are being received, it is refused and the draft is kept for a retry.

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": {
      "draftId": "<draftId>"
    },
    "name": "flow_commit_contact_import"
  }
}

Input Schema

NameRequiredDescriptionDefault
brandIdNoThe id of the brand this change is for: the active brand (flow_whoami). Required when the connection covers several brands; the change is refused when another brand is active.
draftIdYesFrom flow_import_contacts

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior2/5

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

The description is rich on behavior the annotations do not cover: verification/merge semantics, the upsert rule that an existing number's name and email are overwritten, the returned import id and portal link, and queue-based refusal. However, it conflicts with the supplied hints — 'Calling it again for the same draft answers the same import' asserts idempotency where idempotentHint=false, and overwriting existing contacts' name and email sits awkwardly with destructiveHint=false. An agent reading both signals gets contradictory expectations, which caps this dimension despite the otherwise excellent disclosure.

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?

Five dense sentences, each carrying distinct information (merge rule, plan warning, return values, progress tool, retry policy) with the core action stated first. It is longer than typical but not padded; minor tightening is possible around the plan/preview sentence.

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 mutating, non-output-schema tool this covers everything an agent needs: what it operates on, what it returns, how to follow progress, how existing contacts are affected, what to tell the user, and when it will be refused. No return-value documentation is owed because no output schema exists and the description describes the response anyway.

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 description coverage is 100%, so both draftId and brandId are already documented, including the multi-brand refusal condition. The description adds only indirect meaning (draftId ties to flow_import_contacts and to repeat-call deduplication) but does not deepen brandId/draftId semantics 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?

The description names a specific verb and resource ('Imports a draft built with flow_import_contacts as one contact import') and anchors the draft to the sibling that creates it. It also distinguishes itself from flow_get_contact_import (progress) and flow_list_rejected_contacts (rejects), so an agent can pick it out of a crowded catalog 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?

It states the precondition (a draft from flow_import_contacts), the user-facing step that must happen first ('tell the user before they confirm' with plan counts), which tools to use for progress and rejects, and the exact condition under which the call is refused (five queued imports or active receipts) along with the recovery path (retry the kept draft).

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