delete_inbox
Soft-delete an inbox with a 7-day grace period before permanent removal. Manage email inboxes by initiating deletion while allowing recovery during the grace window.
Instructions
Soft-delete an inbox. It enters a 7-day grace period before permanent deletion.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inbox_id | Yes | Inbox ID to delete |
Implementation Reference
- src/index.ts:393-410 (handler)The delete_inbox tool registration and handler logic. It uses the LobsterMail client to perform the deletion.
server.registerTool('delete_inbox', { title: 'Delete Inbox', description: 'Soft-delete an inbox. It enters a 7-day grace period before permanent deletion.', inputSchema: { inbox_id: z.string().describe('Inbox ID to delete'), }, }, async ({ inbox_id }) => { const lm = await getClient(); await lm.deleteInbox(inbox_id); return { content: [ { type: 'text' as const, text: `Inbox ${inbox_id} has been soft-deleted. It will be permanently removed after 7 days.`, }, ], };