Skip to main content
Glama
agentreadycrm

agentreadycrm

Official

Merge Contacts

merge_contacts
Destructive

Merge a duplicate contact into the record to keep, consolidating interactions, deals, references, and empty fields while archiving the duplicate.

Instructions

Merge a duplicate contact into the one to keep, so two records of one person become one.

ALWAYS CONFIRM WITH THE USER BEFORE CALLING THIS. Show them both records, say which will be kept (target_id) and which merged away (source_id), and call this only after they say to proceed; never pick the duplicate on your own judgment. The kept contact takes every interaction, signal and external reference of the other, and every deal naming the other as its contact; its empty fields are filled from it, and a value it holds is never overwritten. The merged-away record is archived, not deleted (archive_contact(archived=false) restores it as a record of its own). Use this only for duplicates that already exist (find_or_create_contact avoids making them), and never rename a duplicate instead: its interactions would stay on the wrong record.

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": {
      "target_id": "<target_id>",
      "source_id": "<source_id>"
    },
    "name": "merge_contacts"
  }
}

Input Schema

NameRequiredDescriptionDefault
source_idYesThe duplicate to merge into it and archive.
target_idYesThe contact to keep.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.8/5.0
Behavior5/5

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

Goes well past the destructiveHint/openWorldHint annotations by disclosing the exact data migration: interactions, signals, external references and deals naming the source move to the target, empty target fields are backfilled while held values are never overwritten. It also discloses that the source is archived rather than deleted and gives the recovery path, archive_contact(archived=false).

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 action, then the mandatory confirmation gate, then the merge semantics and the alternative. Every sentence carries information, though the parenthetical restore hint and the multi-clause 'Use this only for...' sentence push it slightly longer than necessary.

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?

An output schema exists so return values need no explanation, and the annotations already flag destructiveness. What remains for a high-stakes mutation - irreversibility, what is migrated, what survives, and how to undo - is all covered, so nothing an agent needs to call it safely 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 properties are already documented, so the baseline is 3. The description still adds directional meaning beyond the schema (target_id is what will be kept, source_id is what gets merged away and archived) and warns the agent not to choose the duplicate on its own judgment, which is real semantic guidance.

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 the specific verb and resource (merge a duplicate contact into the one to keep) and immediately disambiguates direction by naming target_id as kept and source_id as merged away. An agent can distinguish this from merge_organizations and archive_contact without opening another 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?

Gives an explicit precondition (always confirm with the user, show both records, state which is kept/merged, wait for proceed), an explicit scope restriction (only for duplicates that already exist), a named preventive alternative (find_or_create_contact avoids making them), and an anti-pattern to avoid (never rename a duplicate instead).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.