unregister_identity
Toggle the unregistered management type for an identity. Returns the updated identity.
Instructions
Toggle the unregistered management type for an identity. Returns the updated identity with the new management type.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| identityId | Yes | The ID of the identity to toggle the unregistered management type for |
Implementation Reference
- src/tools/unregisterIdentity.ts:10-13 (handler)The handler function that executes the unregister_identity tool logic. It takes an identityId parameter and makes a PUT API call to /identity/{identityId}/unregister.
export async function unregisterIdentity(params: UnregisterIdentityParams) { const client = getClient(); return client.makePutApiCall(`/identity/${params.identityId}/unregister`, {}); } - src/tools/unregisterIdentity.ts:4-6 (schema)Zod schema for the unregister_identity tool input. Validates the identityId string parameter.
export const UnregisterIdentitySchema = z.object({ identityId: z.string().describe("The ID of the identity to toggle the unregistered management type for"), }); - src/index.ts:267-271 (registration)Registration of the unregister_identity tool in the MCP server, defining its name, description, and input schema.
name: "unregister_identity", description: "Toggle the unregistered management type for an identity. Returns the updated identity with the new management type.", inputSchema: zodToJsonSchema(UnregisterIdentitySchema), }, - src/index.ts:327-327 (registration)Tool handler registration mapping the 'unregister_identity' tool name to its implementation function with schema-based input parsing.
unregister_identity: async (input) => unregisterIdentity(UnregisterIdentitySchema.parse(input)), - src/index.ts:35-35 (helper)Import of the UnregisterIdentitySchema from the tools module.
UnregisterIdentitySchema,