Gmail MCP Server for Cloudflare Workers
60 tools available in the Gmail MCP server. Each tool can be called by AI assistants to perform specific actions.
gmail_trash_messageMove a message to the trash.
Args:
Returns: The trashed message.
{
"type": "object",
"required": [
"messageId"
],
"properties": {
"messageId": {
"type": "string",
"description": "Message ID"
}
}
}gmail_untrash_messageRestore a message from the trash.
Args:
Returns: The restored message.
{
"type": "object",
"required": [
"messageId"
],
"properties": {
"messageId": {
"type": "string",
"description": "Message ID"
}
}
}gmail_delete_messagePermanently delete a message. This action cannot be undone.
Args:
Returns: Confirmation of deletion.
{
"type": "object",
"required": [
"messageId"
],
"properties": {
"messageId": {
"type": "string",
"description": "Message ID"
}
}
}gmail_batch_delete_messagesPermanently delete multiple messages at once. This action cannot be undone.
Args:
Returns: Confirmation of batch deletion.
{
"type": "object",
"required": [
"ids"
],
"properties": {
"ids": {
"type": "array",
"items": {
"type": "string"
},
"description": "Message IDs to delete"
}
}
}gmail_create_forwarding_addressAdd a new forwarding address. Requires verification.
Args:
Returns: The created forwarding address (pending verification).
{
"type": "object",
"required": [
"email"
],
"properties": {
"email": {
"type": "string",
"description": "Email to add"
}
}
}gmail_delete_forwarding_addressDelete a forwarding address.
Args:
Returns: Confirmation of deletion.
{
"type": "object",
"required": [
"email"
],
"properties": {
"email": {
"type": "string",
"description": "Forwarding email"
}
}
}gmail_get_profileGet the current user's Gmail profile.
Returns: Profile information including email address, total messages, total threads, and the current history ID (useful for tracking changes).
{
"type": "object",
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
}
}
}gmail_get_auto_forwardingGet auto-forwarding settings.
Returns: Current auto-forwarding settings.
{
"type": "object",
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
}
}
}gmail_update_language_settingsUpdate Gmail display language.
Args:
Returns: Updated language settings.
{
"type": "object",
"required": [
"displayLanguage"
],
"properties": {
"displayLanguage": {
"type": "string",
"description": "Language code (BCP 47)"
}
}
}gmail_list_send_asList all send-as aliases.
Returns: List of send-as aliases with their settings.
{
"type": "object",
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
}
}
}gmail_get_attachmentGet an attachment from a message.
The attachment data is returned as base64url encoded. You can find the attachmentId in the message payload when getting a message with format 'full'.
Args:
Returns: The attachment data (base64url encoded) and size.
{
"type": "object",
"required": [
"messageId",
"attachmentId"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
},
"messageId": {
"type": "string",
"description": "Message ID"
},
"attachmentId": {
"type": "string",
"description": "Attachment ID"
}
}
}gmail_list_draftsList drafts in the user's mailbox.
Args:
Returns: Paginated list of drafts with IDs and associated message info.
{
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "Gmail search query"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
},
"pageToken": {
"type": "string",
"description": "Pagination token"
},
"maxResults": {
"type": "integer",
"default": 20,
"maximum": 500,
"minimum": 1,
"description": "Maximum drafts to return"
},
"includeSpamTrash": {
"type": "boolean",
"default": false,
"description": "Include SPAM and TRASH"
}
}
}gmail_get_draftGet a specific draft by ID.
Args:
Returns: The draft with its message content.
{
"type": "object",
"required": [
"draftId"
],
"properties": {
"format": {
"enum": [
"minimal",
"full",
"raw",
"metadata"
],
"type": "string",
"default": "full",
"description": "Message format"
},
"draftId": {
"type": "string",
"description": "Draft ID"
},
"responseFormat": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
}
}
}gmail_create_draftCreate a new draft email.
Args:
Returns: The created draft.
{
"type": "object",
"required": [
"to",
"subject",
"body"
],
"properties": {
"cc": {
"type": "string",
"description": "CC recipients"
},
"to": {
"type": "string",
"description": "Recipient email address(es)"
},
"bcc": {
"type": "string",
"description": "BCC recipients"
},
"body": {
"type": "string",
"description": "Email body (HTML supported)"
},
"subject": {
"type": "string",
"description": "Email subject"
},
"threadId": {
"type": "string",
"description": "Thread ID for reply drafts"
}
}
}gmail_update_draftUpdate an existing draft (replaces the content).
Args:
Returns: The updated draft.
{
"type": "object",
"required": [
"draftId"
],
"properties": {
"cc": {
"type": "string",
"description": "CC recipients"
},
"to": {
"type": "string",
"description": "Recipient email address(es)"
},
"bcc": {
"type": "string",
"description": "BCC recipients"
},
"body": {
"type": "string",
"description": "Email body"
},
"draftId": {
"type": "string",
"description": "Draft ID"
},
"subject": {
"type": "string",
"description": "Email subject"
}
}
}gmail_send_draftSend an existing draft.
Args:
Returns: The sent message.
{
"type": "object",
"required": [
"draftId"
],
"properties": {
"draftId": {
"type": "string",
"description": "Draft ID"
}
}
}gmail_delete_draftDelete a draft. This action cannot be undone.
Args:
Returns: Confirmation of deletion.
{
"type": "object",
"required": [
"draftId"
],
"properties": {
"draftId": {
"type": "string",
"description": "Draft ID"
}
}
}gmail_list_historyList the history of changes to the mailbox.
Use this to track changes since a known point in time. Get the startHistoryId from a previous message, thread, or profile response.
Args:
Returns: List of history records showing changes since the start history ID.
{
"type": "object",
"required": [
"startHistoryId"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
},
"labelId": {
"type": "string",
"description": "Filter by label ID"
},
"pageToken": {
"type": "string",
"description": "Pagination token"
},
"maxResults": {
"type": "integer",
"maximum": 500,
"minimum": 1,
"description": "Maximum records to return"
},
"historyTypes": {
"type": "array",
"items": {
"type": "string"
},
"description": "History types to return"
},
"startHistoryId": {
"type": "string",
"description": "Start history ID (required)"
}
}
}gmail_list_labelsList all labels in the user's mailbox.
Args:
Returns: List of all labels with their IDs, names, types, and message counts.
{
"type": "object",
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
}
}
}gmail_get_labelGet a specific label by ID.
Args:
Returns: The label with all details including message and thread counts.
{
"type": "object",
"required": [
"labelId"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
},
"labelId": {
"type": "string",
"description": "Label ID"
}
}
}gmail_create_labelCreate a new label.
Args:
Returns: The created label.
{
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "Label name"
},
"textColor": {
"type": "string",
"description": "Text color in hex"
},
"backgroundColor": {
"type": "string",
"description": "Background color in hex"
},
"labelListVisibility": {
"enum": [
"labelShow",
"labelShowIfUnread",
"labelHide"
],
"type": "string",
"description": "Visibility in label list"
},
"messageListVisibility": {
"enum": [
"show",
"hide"
],
"type": "string",
"description": "Visibility in message list"
}
}
}gmail_update_labelUpdate a label (full replacement).
Args:
Returns: The updated label.
{
"type": "object",
"required": [
"labelId"
],
"properties": {
"name": {
"type": "string",
"description": "New label name"
},
"labelId": {
"type": "string",
"description": "Label ID"
},
"textColor": {
"type": "string",
"description": "Text color in hex"
},
"backgroundColor": {
"type": "string",
"description": "Background color in hex"
},
"labelListVisibility": {
"enum": [
"labelShow",
"labelShowIfUnread",
"labelHide"
],
"type": "string",
"description": "Visibility in label list"
},
"messageListVisibility": {
"enum": [
"show",
"hide"
],
"type": "string",
"description": "Visibility in message list"
}
}
}gmail_patch_labelPartially update a label (only specified fields).
Args:
Returns: The patched label.
{
"type": "object",
"required": [
"labelId"
],
"properties": {
"name": {
"type": "string",
"description": "New label name"
},
"labelId": {
"type": "string",
"description": "Label ID"
},
"textColor": {
"type": "string"
},
"backgroundColor": {
"type": "string"
},
"labelListVisibility": {
"enum": [
"labelShow",
"labelShowIfUnread",
"labelHide"
],
"type": "string"
},
"messageListVisibility": {
"enum": [
"show",
"hide"
],
"type": "string"
}
}
}gmail_delete_labelDelete a label. System labels cannot be deleted.
Args:
Returns: Confirmation of deletion.
{
"type": "object",
"required": [
"labelId"
],
"properties": {
"labelId": {
"type": "string",
"description": "Label ID"
}
}
}gmail_list_messagesList messages in the user's mailbox with optional filtering.
Args:
Returns: Paginated list of messages with IDs and thread IDs.
{
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "Gmail search query (e.g., \"is:unread\", \"from:user@example.com"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
},
"labelIds": {
"type": "array",
"items": {
"type": "string"
},
"description": "Filter by label IDs"
},
"pageToken": {
"type": "string",
"description": "Pagination token from previous response"
},
"maxResults": {
"type": "integer",
"default": 20,
"maximum": 500,
"minimum": 1,
"description": "Maximum messages to return"
},
"includeSpamTrash": {
"type": "boolean",
"default": false,
"description": "Include SPAM and TRASH messages"
}
}
}gmail_get_messageGet a specific message by ID.
Args:
Returns: The message with requested format and details.
{
"type": "object",
"required": [
"messageId"
],
"properties": {
"format": {
"enum": [
"minimal",
"full",
"raw",
"metadata"
],
"type": "string",
"default": "full",
"description": "Message format"
},
"messageId": {
"type": "string",
"description": "Message ID"
},
"responseFormat": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
}
}
}gmail_send_messageSend an email message.
Args:
Returns: The sent message with ID and thread ID.
{
"type": "object",
"required": [
"to",
"subject",
"body"
],
"properties": {
"cc": {
"type": "string",
"description": "CC recipients"
},
"to": {
"type": "string",
"description": "Recipient email address(es)"
},
"bcc": {
"type": "string",
"description": "BCC recipients"
},
"body": {
"type": "string",
"description": "Email body (HTML supported)"
},
"subject": {
"type": "string",
"description": "Email subject"
},
"threadId": {
"type": "string",
"description": "Thread ID for replies"
},
"inReplyTo": {
"type": "string",
"description": "Message-ID of message being replied to"
},
"references": {
"type": "string",
"description": "References header for threading"
}
}
}gmail_modify_messageModify the labels on a message.
Args:
Returns: The modified message.
{
"type": "object",
"required": [
"messageId"
],
"properties": {
"messageId": {
"type": "string",
"description": "Message ID"
},
"addLabelIds": {
"type": "array",
"items": {
"type": "string"
},
"description": "Label IDs to add"
},
"removeLabelIds": {
"type": "array",
"items": {
"type": "string"
},
"description": "Label IDs to remove"
}
}
}gmail_batch_modify_messagesModify labels on multiple messages at once.
Args:
Returns: Confirmation of batch modification.
{
"type": "object",
"required": [
"ids"
],
"properties": {
"ids": {
"type": "array",
"items": {
"type": "string"
},
"description": "Message IDs to modify"
},
"addLabelIds": {
"type": "array",
"items": {
"type": "string"
},
"description": "Label IDs to add"
},
"removeLabelIds": {
"type": "array",
"items": {
"type": "string"
},
"description": "Label IDs to remove"
}
}
}gmail_watchSet up push notifications for mailbox changes.
This sets up a watch on the user's mailbox. When changes occur, notifications are sent to the specified Cloud Pub/Sub topic.
Args:
Returns: Watch response with historyId and expiration time.
{
"type": "object",
"required": [
"topicName"
],
"properties": {
"labelIds": {
"type": "array",
"items": {
"type": "string"
},
"description": "Label IDs to filter notifications"
},
"topicName": {
"type": "string",
"description": "Cloud Pub/Sub topic name"
},
"labelFilterAction": {
"enum": [
"include",
"exclude"
],
"type": "string",
"default": "include",
"description": "How to filter by labels"
}
}
}gmail_stopStop receiving push notifications for mailbox changes.
This stops any existing watch on the user's mailbox.
Returns: Confirmation that notifications have been stopped.
{
"type": "object",
"properties": {}
}gmail_get_vacation_settingsGet vacation auto-reply settings.
Returns: Current vacation settings including enabled status, response text, and date range.
{
"type": "object",
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
}
}
}gmail_update_vacation_settingsUpdate vacation auto-reply settings.
Args:
Returns: Updated vacation settings.
{
"type": "object",
"required": [
"enableAutoReply"
],
"properties": {
"endTime": {
"type": "string",
"description": "End time (epoch ms)"
},
"startTime": {
"type": "string",
"description": "Start time (epoch ms)"
},
"enableAutoReply": {
"type": "boolean",
"description": "Enable auto-reply"
},
"responseSubject": {
"type": "string",
"description": "Auto-reply subject"
},
"responseBodyHtml": {
"type": "string",
"description": "HTML response"
},
"restrictToDomain": {
"type": "boolean",
"description": "Only reply to same domain"
},
"restrictToContacts": {
"type": "boolean",
"description": "Only reply to contacts"
},
"responseBodyPlainText": {
"type": "string",
"description": "Plain text response"
}
}
}gmail_list_filtersList all message filters.
Returns: List of all filters with their criteria and actions.
{
"type": "object",
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
}
}
}gmail_get_filterGet a specific filter by ID.
Args:
Returns: The filter with criteria and action details.
{
"type": "object",
"required": [
"filterId"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
},
"filterId": {
"type": "string",
"description": "Filter ID"
}
}
}gmail_create_filterCreate a new message filter.
Args: Criteria (at least one required):
Actions (at least one required):
Returns: The created filter.
{
"type": "object",
"properties": {
"to": {
"type": "string",
"description": "Match recipient"
},
"from": {
"type": "string",
"description": "Match sender"
},
"size": {
"type": "number",
"description": "Size in bytes"
},
"query": {
"type": "string",
"description": "General query"
},
"forward": {
"type": "string",
"description": "Forward to email"
},
"subject": {
"type": "string",
"description": "Match subject"
},
"addLabelIds": {
"type": "array",
"items": {
"type": "string"
},
"description": "Labels to add"
},
"excludeChats": {
"type": "boolean",
"description": "Exclude chats"
},
"negatedQuery": {
"type": "string",
"description": "Negated query"
},
"hasAttachment": {
"type": "boolean",
"description": "Has attachments"
},
"removeLabelIds": {
"type": "array",
"items": {
"type": "string"
},
"description": "Labels to remove"
},
"sizeComparison": {
"enum": [
"larger",
"smaller"
],
"type": "string",
"description": "Size comparison"
}
}
}gmail_delete_filterDelete a message filter.
Args:
Returns: Confirmation of deletion.
{
"type": "object",
"required": [
"filterId"
],
"properties": {
"filterId": {
"type": "string",
"description": "Filter ID"
}
}
}gmail_list_forwarding_addressesList all forwarding addresses.
Returns: List of forwarding addresses with verification status.
{
"type": "object",
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
}
}
}gmail_get_forwarding_addressGet a specific forwarding address.
Args:
Returns: The forwarding address with verification status.
{
"type": "object",
"required": [
"email"
],
"properties": {
"email": {
"type": "string",
"description": "Forwarding email"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
}
}
}gmail_update_auto_forwardingUpdate auto-forwarding settings.
Args:
Returns: Updated auto-forwarding settings.
{
"type": "object",
"required": [
"enabled"
],
"properties": {
"enabled": {
"type": "boolean",
"description": "Enable auto-forwarding"
},
"disposition": {
"enum": [
"leaveInInbox",
"archive",
"trash",
"markRead"
],
"type": "string",
"description": "Message disposition"
},
"emailAddress": {
"type": "string",
"description": "Forward to address"
}
}
}gmail_get_send_asGet a specific send-as alias.
Args:
Returns: The send-as alias settings.
{
"type": "object",
"required": [
"email"
],
"properties": {
"email": {
"type": "string",
"description": "Send-as email"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
}
}
}gmail_create_send_asCreate a new send-as alias. Requires verification.
Args:
Returns: The created send-as alias (may require verification).
{
"type": "object",
"required": [
"sendAsEmail"
],
"properties": {
"signature": {
"type": "string",
"description": "Email signature (HTML)"
},
"displayName": {
"type": "string",
"description": "Display name"
},
"sendAsEmail": {
"type": "string",
"description": "Send-as email"
},
"treatAsAlias": {
"type": "boolean",
"description": "Treat as alias"
},
"replyToAddress": {
"type": "string",
"description": "Reply-to address"
}
}
}gmail_update_send_asUpdate a send-as alias.
Args:
Returns: The updated send-as alias.
{
"type": "object",
"required": [
"email"
],
"properties": {
"email": {
"type": "string",
"description": "Send-as email to update"
},
"isDefault": {
"type": "boolean",
"description": "Make default"
},
"signature": {
"type": "string",
"description": "Email signature (HTML)"
},
"displayName": {
"type": "string",
"description": "Display name"
},
"treatAsAlias": {
"type": "boolean",
"description": "Treat as alias"
},
"replyToAddress": {
"type": "string",
"description": "Reply-to address"
}
}
}gmail_delete_send_asDelete a send-as alias.
Args:
Returns: Confirmation of deletion.
{
"type": "object",
"required": [
"email"
],
"properties": {
"email": {
"type": "string",
"description": "Send-as email"
}
}
}gmail_verify_send_asSend a verification email for a send-as alias.
Args:
Returns: Confirmation that verification email was sent.
{
"type": "object",
"required": [
"email"
],
"properties": {
"email": {
"type": "string",
"description": "Send-as email"
}
}
}gmail_list_delegatesList all delegates who have access to this account.
Returns: List of delegates with their email and verification status.
{
"type": "object",
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
}
}
}gmail_get_delegateGet a specific delegate.
Args:
Returns: The delegate with verification status.
{
"type": "object",
"required": [
"email"
],
"properties": {
"email": {
"type": "string",
"description": "Delegate email"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
}
}
}gmail_create_delegateAdd a delegate to this account. Requires verification.
Args:
Returns: The created delegate (pending verification).
{
"type": "object",
"required": [
"email"
],
"properties": {
"email": {
"type": "string",
"description": "Delegate email"
}
}
}gmail_delete_delegateRemove a delegate from this account.
Args:
Returns: Confirmation of removal.
{
"type": "object",
"required": [
"email"
],
"properties": {
"email": {
"type": "string",
"description": "Delegate email"
}
}
}gmail_get_imap_settingsGet IMAP access settings.
Returns: Current IMAP settings.
{
"type": "object",
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
}
}
}gmail_update_imap_settingsUpdate IMAP access settings.
Args:
Returns: Updated IMAP settings.
{
"type": "object",
"required": [
"enabled"
],
"properties": {
"enabled": {
"type": "boolean",
"description": "Enable IMAP"
},
"autoExpunge": {
"type": "boolean",
"description": "Auto-expunge"
},
"maxFolderSize": {
"type": "number",
"description": "Max folder size"
},
"expungeBehavior": {
"enum": [
"archive",
"trash",
"deleteForever"
],
"type": "string",
"description": "Expunge behavior"
}
}
}gmail_get_pop_settingsGet POP access settings.
Returns: Current POP settings.
{
"type": "object",
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
}
}
}gmail_update_pop_settingsUpdate POP access settings.
Args:
Returns: Updated POP settings.
{
"type": "object",
"properties": {
"disposition": {
"enum": [
"leaveInInbox",
"archive",
"trash",
"markRead"
],
"type": "string",
"description": "Disposition"
},
"accessWindow": {
"enum": [
"disabled",
"fromNowOn",
"allMail"
],
"type": "string",
"description": "Access window"
}
}
}gmail_get_language_settingsGet Gmail display language settings.
Returns: Current language settings.
{
"type": "object",
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
}
}
}gmail_list_threadsList email threads in the user's mailbox with optional filtering.
Args:
Returns: Paginated list of threads with IDs and snippets.
{
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "Gmail search query"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
},
"labelIds": {
"type": "array",
"items": {
"type": "string"
},
"description": "Filter by label IDs"
},
"pageToken": {
"type": "string",
"description": "Pagination token"
},
"maxResults": {
"type": "integer",
"default": 20,
"maximum": 500,
"minimum": 1,
"description": "Maximum threads to return"
},
"includeSpamTrash": {
"type": "boolean",
"default": false,
"description": "Include SPAM and TRASH"
}
}
}gmail_get_threadGet a specific thread with all its messages.
Args:
Returns: The thread with all messages.
{
"type": "object",
"required": [
"threadId"
],
"properties": {
"format": {
"enum": [
"minimal",
"full",
"raw",
"metadata"
],
"type": "string",
"default": "full",
"description": "Message format"
},
"threadId": {
"type": "string",
"description": "Thread ID"
},
"responseFormat": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
}
}
}gmail_modify_threadModify the labels on all messages in a thread.
Args:
Returns: The modified thread.
{
"type": "object",
"required": [
"threadId"
],
"properties": {
"threadId": {
"type": "string",
"description": "Thread ID"
},
"addLabelIds": {
"type": "array",
"items": {
"type": "string"
},
"description": "Label IDs to add"
},
"removeLabelIds": {
"type": "array",
"items": {
"type": "string"
},
"description": "Label IDs to remove"
}
}
}gmail_trash_threadMove a thread and all its messages to the trash.
Args:
Returns: The trashed thread.
{
"type": "object",
"required": [
"threadId"
],
"properties": {
"threadId": {
"type": "string",
"description": "Thread ID"
}
}
}gmail_untrash_threadRestore a thread and all its messages from the trash.
Args:
Returns: The restored thread.
{
"type": "object",
"required": [
"threadId"
],
"properties": {
"threadId": {
"type": "string",
"description": "Thread ID"
}
}
}gmail_delete_threadPermanently delete a thread and all its messages. This action cannot be undone.
Args:
Returns: Confirmation of deletion.
{
"type": "object",
"required": [
"threadId"
],
"properties": {
"threadId": {
"type": "string",
"description": "Thread ID"
}
}
}