Skip to main content
Glama

merge_duplicate_contact_groups

Destructive

Merge the duplicate groups listed in selectedGroupIds (their groupId values) from a completed duplicate scan or review (scanJobId). Each group keeps one contact (a shared profile over a team-only record, then the most recently created): its empty fields are filled from the others, all emails and phones are combined onto it, the others' list memberships, campaign enrollments, CRM links, owner assignments, tasks and activity move to it (where it already has the same one, the other's copy is deleted; an enrollment in a campaign it is already in is instead stopped along with its pending sends), and the other contacts are archived. Moved enrollments continue their sequences using the kept contact's details, and a campaign that enrolls new members of its lists may start contacting it. Runs in the background and answers { data: { jobId } }; that job records how many groups were merged and contacts archived. Contacts are shared, so a merge changes them for everyone who has them, and it cannot be undone: only merge groups the user has seen and approved.

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": {
      "scanJobId": "<scanJobId>",
      "selectedGroupIds": "<selectedGroupIds>"
    },
    "name": "merge_duplicate_contact_groups"
  }
}

Input Schema

NameRequiredDescriptionDefault
scanJobIdYesThe jobId of a completed duplicate scan or duplicate review whose groups to merge
selectedGroupIdsYesThe groups to merge, by their groupId

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

With destructiveHint=true and openWorldHint=true already declared, the description still adds substantial context: which contact is kept and why, how fields/emails/phones are combined, how duplicate memberships, enrollments, CRM links, tasks and activity are moved or deleted, that stopped enrollments halt pending sends, that other contacts are archived, and that running sequences may resume contacting the kept contact. It also discloses the shared-across-users blast radius and irreversibility. No contradiction with annotations.

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 inputs, then the consequences; every sentence carries substantive content. It is one very long run-on sentence with stacked parentheticals, which costs readability, but no clause is 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?

Despite no output schema, it explains the async behavior ("Runs in the background") and the response shape { data: { jobId } }, plus what the job reports. It also covers irreversibility, cross-user impact and enrollment side effects, leaving little an agent needs to ask before calling it.

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 the baseline is 3, but the description adds a relationship the schema cannot express: selectedGroupIds are the groupId values of groups produced by that specific scanJobId scan/review. It also describes what merging each group does per item in the array, giving the array items real semantics.

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+resource ("Merge the duplicate groups") and binds it to the exact inputs ("listed in selectedGroupIds ... from a completed duplicate scan or review (scanJobId)"). This clearly separates it from scan/review siblings like start_duplicate_contacts_scan and create_contact_duplicates_review, which produce rather than consume those groups.

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?

Gives a clear precondition (groups must come from a completed scan or review) and an explicit approval gate ("only merge groups the user has seen and approved"). It does not name alternative tools or a when-not-to-use case, but the operative usage condition is unambiguous.

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.