Skip to main content
Glama
benpalmer1

Gorgias MCP Server

by benpalmer1

Merge Customers

gorgias_merge_customers
DestructiveIdempotent

Merge duplicate customer profiles by combining source data into a target and deleting the source. Consolidate customer information into a single record.

Instructions

PUT /api/customers/merge — Merge two customers. The source customer's data is merged into the target customer, then the source is deleted. Fails with 409 if both customers have data for the same integration.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
metaNoUser-defined JSON metadata to set on the target customer during merge.
nameNoFull name to set on the target customer during merge.
noteNoNote to set on the target customer during merge.
emailNoPrimary email address to set on the target customer during merge.
channelsNoContact channels to set on the target customer during merge.
languageNoPreferred language (ISO 639-1) to set on the target customer during merge.
timezoneNoTimezone (IANA name) to set on the target customer during merge.
source_idYesThe ID of the customer to merge (the source). This customer will be deleted after the merge.
target_idYesThe ID of the target customer (which will still exist after the merge).
external_idNoExternal ID to set on the target customer during merge.
Behavior5/5

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

The description adds critical behavior beyond annotations: the source customer is deleted after the merge, and the operation fails with 409 if both customers share data for the same integration. This complements the destructiveHint and readOnlyHint annotations without contradiction.

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?

The description is a concise two-sentence summary that front-loads the endpoint and core action, then adds a key failure condition. No wasted words or redundant restatements.

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?

Given the detailed schema and annotations, the description is sufficiently complete: it explains the purpose, the destructive side effect, and a significant error case. No output schema exists, so return value explanation is not required.

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%, so the schema already fully documents all parameters. The description adds context about merge behavior but does not elaborate on individual parameter formats or special values beyond what is in the schema. Baseline of 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 clearly states the specific verb 'merge' with the resource 'two customers' and explains the source-to-target data flow plus deletion of the source. This distinguishes it from sibling tools like delete_customer or update_customer.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The usage is implied by the operation itself (merge two customers), but there is no explicit guidance on when to use this vs alternatives such as combining delete+create or updating fields individually. No exclusions or alternative tools are mentioned.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/benpalmer1/Gorgias-MCP-Server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server