Skip to main content
Glama

Merge Clients

merge_clients

Merge a duplicate client into another. id = the duplicate to absorb (it is archived/soft-deleted); into = the surviving client_id to keep. Moves the duplicate's bookings, contacts, comments, todos and groupings onto the survivor. Use this to fix a booking created under a new/duplicate client instead of the existing one, or to clean up a pair from find_duplicates.

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": {
      "id": "<id>",
      "into": "<into>"
    },
    "name": "merge_clients"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe record's numeric id, from the matching list/get/search tool.
intoYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / id / description
      Added value: +"The record's numeric id, from the matching list/get/search tool."
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false, destructiveHint=false and idempotentHint=false, so the description's job is to explain the mutation's shape — which it does: the 'id' record is archived/soft-deleted and its bookings, contacts, comments, todos and groupings are moved onto the survivor. That reconciles with destructiveHint=false (soft-delete, not hard delete). It does not state irreversibility or which field values win on conflict, so it is not fully transparent.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four short sentences, front-loaded with the action and then the parameter roles, then the use cases. Every clause carries operative information; nothing is restated from the title or annotations.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter mutation with no output schema, the definition covers direction, side effects and triggering scenarios. The remaining gap is conflict resolution — what happens to differing field values between the two clients, and whether the merge can be undone — which matters for a record-consuming operation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 50% — 'id' is documented but 'into' is bare — and the description fully compensates by defining both roles ('id = the duplicate to absorb', 'into = the surviving client_id to keep'). This is exactly the semantic content the schema lacks and prevents an inverted, destructive mistake.

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 client into another') and immediately disambiguates direction, which is the one thing an agent could get wrong here. An agent can tell exactly which record is consumed and which survives without opening the schema.

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 two concrete when-to-use scenarios ('fix a booking created under a new/duplicate client' and 'clean up a pair from find_duplicates'), naming the sibling that produces the input pair. It stops short of any when-not-to-use guidance or prerequisite checks (e.g. confirming the survivor is correct before merging).

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