unmerge_identities
Undo merges of people or identity entities by specifying their IDs. Provide up to 50 peopleIds or identityIds to separate combined records.
Instructions
Unmerge previously merged identity/people entities. Provide peopleIds, identityIds, or both to unmerge (up to 50 items each).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "unmerge_identities"
}
}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 core handler function that executes the unmerge_identities tool logic. It sends a POST request to /identity/unmerge with peopleIds and/or identityIds.
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 defining the 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/tools/unmergeIdentities.ts:2-2 (helper)Imports getClient from admina-api.js which provides the HTTP client used to make the API call.
import { getClient } from "../admina-api.js";