Skip to main content
Glama
agentreadycrm

agentreadycrm

Official

Merge Organizations

merge_organizations
Destructive

Combine two duplicate organization records by keeping one target and archiving the source, transferring contacts, deals, interactions, and signals to the kept record.

Instructions

Merge a duplicate organization into the one to keep, so two records of one company 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. The kept organization takes every contact, interaction, deal, signal, proof point, external reference and lookalike of the other, and the signals filed as evidence for the other; its empty fields are filled from it, and a value it holds is never overwritten. A signal both hold (the same source URL and type) is kept once, with the purposes of both. The merged-away record is archived, not deleted. find_or_create_organization already prevents new duplicates by domain and name, so use this for two that exist, such as two domains that turn out to be one company. Never rename a duplicate instead: its contacts 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_organizations"
  }
}

Input Schema

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

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare destructiveHint=true and idempotentHint=false; the description goes much further by enumerating exactly what transfers (contacts, interactions, deals, signals, proof points, external references, lookalikes, evidence signals), how field conflicts resolve (empty fields filled, held values never overwritten), how duplicate signals collapse, and that the source is archived rather than deleted.

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?

The confirmation warning is correctly front-loaded and each following sentence carries distinct content (transfer scope, conflict policy, archival semantics, when-to-use). It is dense but slightly overlong for a two-parameter tool, with some enumeration that could be compressed.

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 remaining risk surface for a destructive merge is fully covered: user confirmation, direction of the merge, conflict resolution, archival instead of deletion, and the non-duplicate-creating alternative. Nothing an agent needs to call this safely is missing.

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 coverage is 100% and both parameters already carry descriptions ('The organization to keep', 'The duplicate to merge into it and archive'), so the schema does the heavy lifting. The prose reinforces the kept-versus-merged-away distinction but adds no new format, constraint, or lookup guidance beyond it.

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 (merge a duplicate organization into the one to keep) and immediately defines the resulting state: two records become one. It also disambiguates the two identifier roles in prose, so an agent knows the direction of the operation without inferring it.

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 BEFORE CALLING THIS', with what to show them), names the condition that selects this tool (two records that already exist, e.g. two domains that turn out to be one company), and explicitly rules out the wrong alternative ('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.