delete_user_invite
Remove a pending user invitation and revoke its invite link without affecting existing users.
Instructions
Delete a pending invite and revoke its invite link. This does not affect existing users; use delete_user for full user removal.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invite_id | Yes | The invite ID to delete |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Whether the tool call succeeded and returned structured data | |
| data | No | Structured success payload when ok is true | |
| error | No | Structured error payload when ok is false |
Implementation Reference
- src/services/users.service.ts:179-184 (handler)The actual handler function that performs the delete operation. It sends a DELETE request to '/admin/users/invites/{inviteId}', awaiting the response, and returns { success: true }.
async deleteUserInvite(inviteId: string): Promise<{ success: boolean }> { await this.delete( `/admin/users/invites/${this.encodePathSegment(inviteId)}`, ); return { success: true }; } - src/tools/users.tools.ts:124-126 (schema)Zod input schema for delete_user_invite. Defines a single required parameter: invite_id (string) describing the invite ID to delete.
deleteUserInvite: { invite_id: z.string().describe("The invite ID to delete"), }, - src/tools/users.tools.ts:376-399 (registration)Registers the 'delete_user_invite' tool on the MCP server with a description, schema, and handler that delegates to service.users.deleteUserInvite().
// Phase 1: Delete user invite tool server.tool( "delete_user_invite", "Delete a pending invite and revoke its invite link. This does not affect existing users; use delete_user for full user removal.", USERS_TOOL_SCHEMAS.deleteUserInvite, async (params) => { await service.users.deleteUserInvite(params.invite_id); return { content: [ { type: "text", text: JSON.stringify( { message: `Successfully deleted invite ${params.invite_id}`, success: true, }, null, 2, ), }, ], }; }, );