unmerge_identities
Reverse a previous merge of identity or people entities by providing IDs to separate them. Supports up to 50 people or identity IDs per request.
Instructions
Unmerge previously merged identity/people entities. Provide peopleIds, identityIds, or both to unmerge (up to 50 items each).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| peopleIds | No | List of people IDs to unmerge (1-50 items). | |
| identityIds | No | List of identity IDs to unmerge (1-50 items). |
Implementation Reference
- src/tools/unmergeIdentities.ts:16-24 (handler)The handler function that executes the unmerge identities tool logic. It takes peopleIds or identityIds, builds a request body, and calls POST /identity/unmerge API.
export async function unmergeIdentities(params: UnmergeIdentitiesParams) { const client = getClient(); const body: Record<string, unknown> = {}; if (params.peopleIds !== undefined) body.peopleIds = params.peopleIds; if (params.identityIds !== undefined) body.identityIds = params.identityIds; return client.makePostApiCall("/identity/unmerge", new URLSearchParams(), body); } - src/tools/unmergeIdentities.ts:4-12 (schema)Zod schema for validating input: peopleIds (array of positive ints, 1-50) and identityIds (array of strings, 1-50), both optional.
export const UnmergeIdentitiesSchema = z.object({ peopleIds: z .array(z.number().int().positive()) .min(1) .max(50) .optional() .describe("List of people IDs to unmerge (1-50 items)."), identityIds: z.array(z.string()).min(1).max(50).optional().describe("List of identity IDs to unmerge (1-50 items)."), }); - src/index.ts:242-247 (registration)Tool registration in the tools list with name 'unmerge_identities', description, and inputSchema.
{ name: "unmerge_identities", description: "Unmerge previously merged identity/people entities. Provide peopleIds, identityIds, or both to unmerge (up to 50 items each).", inputSchema: zodToJsonSchema(UnmergeIdentitiesSchema), }, - src/index.ts:323-323 (registration)Handler registration mapping the 'unmerge_identities' tool name to the unmergeIdentities function with schema parsing.
unmerge_identities: async (input) => unmergeIdentities(UnmergeIdentitiesSchema.parse(input)), - src/tools/index.ts:27-27 (helper)Re-export of the unmergeIdentities module from the tools barrel index.
export * from "./unmergeIdentities.js";