Skip to main content
Glama
Thunderbird MCP by Commonpost

Thunderbird MCP by Commonpost

Update Message

updateMessage
Destructive

Set read/unread status, flag state, and tags on one or more Thunderbird messages, optionally moving them to a folder or Trash.

Instructions

Set read, flagged and tags on one message (messageId) or several (messageIds), and optionally move them (moveTo) or to Trash (trash); deleting for good is deleteMessages. Tags: label or key; others are added or skipped, with a warning. On IMAP, tags set in the same call as a move may not reach the moved copy: use two calls.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "folderPath": "<folderPath>"
    },
    "name": "updateMessage"
  }
}

Input Schema

NameRequiredDescriptionDefault
readNoSet to true/false to mark read/unread
trashNoSet to true to move message to Trash. Cannot be used with moveTo.
moveToNoDestination folder URI. Cannot be used with trash.
addTagsNoTags to add, by label or key (e.g. 'Important' or '$label1')
flaggedNoSet to true/false to flag/unflag
messageIdNoA single message ID (from searchMessages). Required unless messageIds is provided.
folderPathYesThe folder URI containing the message(s) (from searchMessages)
messageIdsNoArray of message IDs for bulk operations. Required unless messageId is provided.
removeTagsNoTags to remove, by label or key

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.24.0
    • changedInput schema / properties / addTags / description
      Previous value: -"Tag keywords to add (e.g. ['$label1', 'project-x']); built-in: $label1 Important, $label2 Work, $label3 Personal, $label4 To Do, $label5 Later"New value: +"Tags to add, by label or key (e.g. 'Important' or '$label1')"
    • changedInput schema / properties / removeTags / description
      Previous value: -"Tag keywords to remove from the message(s)"New value: +"Tags to remove, by label or key"
  2. Changed7 schema fields changedv0.19.2
    • changedInput schema / properties / addTags / description
      Previous value: -"Tag keywords to add (e.g. ['$label1', 'project-x']). Thunderbird built-in tags: $label1 (Important), $label2 (Work), $label3 (Personal), $label4 (To Do), $label5 (Later)"New value: +"Tag keywords to add (e.g. ['$label1', 'project-x']); built-in: $label1 Important, $label2 Work, $label3 Personal, $label4 To Do, $label5 Later"
    • changedInput schema / properties / flagged / description
      Previous value: -"Set to true/false to flag/unflag (optional)"New value: +"Set to true/false to flag/unflag"
    • changedInput schema / properties / folderPath / description
      Previous value: -"The folder URI containing the message(s) (from searchMessages results)"New value: +"The folder URI containing the message(s) (from searchMessages)"
    • changedInput schema / properties / messageId / description
      Previous value: -"A single message ID (from searchMessages results). Required unless messageIds is provided."New value: +"A single message ID (from searchMessages). Required unless messageIds is provided."
    • changedInput schema / properties / moveTo / description
      Previous value: -"Destination folder URI (optional). Cannot be used with trash."New value: +"Destination folder URI. Cannot be used with trash."
    • changedInput schema / properties / read / description
      Previous value: -"Set to true/false to mark read/unread (optional)"New value: +"Set to true/false to mark read/unread"
    • changedInput schema / properties / trash / description
      Previous value: -"Set to true to move message to Trash (optional). Cannot be used with moveTo."New value: +"Set to true to move message to Trash. Cannot be used with moveTo."
  3. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare the write/destructive profile, but the description adds non-obvious behavior: tag resolution by label or key, unknown tags being skipped with a warning rather than failing, and the IMAP caveat that tags applied in the same call as a move may not reach the moved copy. That IMAP warning is exactly the kind of operational detail an agent cannot infer from annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tightly packed sentences that front-load the core action before the caveats, with zero filler. The semicolon-heavy packing is dense but each clause carries distinct information, so nothing is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a nine-parameter mutation tool with no output schema, the definition covers the essential behaviors — bulk vs single target, mutual exclusions, tag resolution, and the IMAP sequencing trap. It leaves minor gaps such as what happens when no field-changing parameter is supplied and whether folder write permissions are required.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning: the messageId vs messageIds choice is framed as one-or-several, trash and moveTo are declared mutually exclusive, and tag values are explained as label or key with add/skip semantics for unrecognized ones.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource: setting read, flagged, and tags on one message (messageId) or several (messageIds), with optional moveTo or trash. It explicitly distinguishes itself from deleteMessages for permanent deletion, so an agent can separate the two without opening schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete routing guidance: permanent deletion belongs to deleteMessages, trash and moveTo are mutually exclusive, and on IMAP tags plus a move should be split into two calls. It stops short of a full when-to-use narrative (e.g. preferring updateMessage over applyFilters), but the key exclusions and workaround are stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.