Skip to main content
Glama
mailbox-org-mcp
by getrdone

Mark, star, color or label messages

mailbox_update_messages
Idempotent

Bulk-change message state—mark read/unread, star, set OX colors, or add/remove labels by UIDs or Gmail-style query without moving or deleting messages.

Instructions

Change state on many messages at once: read/unread, star, OX color (red, orange, yellow, light green, green, light blue, blue, purple, pink, gray), and labels (IMAP keywords such as $purchases, $social or your own words; shown as categories/labels). Select by uids or by a Gmail-style query. Nothing is moved or deleted.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "mailbox_update_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
maxNoSafety cap on how many messages a query may touch. The tool refuses when more match; raise it deliberately.
starNotrue = star (flag), false = unstar
uidsNoExact message UIDs in `folder`. Give either uids or query.
colorNoSet an OX color label; 'none' clears it
queryNoSelect by query instead of UIDs (searches `folder` unless the query has in:...). Gmail-style query. Examples: from:amazon is:unread | subject:"invoice" newer_than:30d | has:attachment larger:5M | label:$purchases | color:red | is:starred -from:me | has:unsubscribe older_than:6m | (from:a OR from:b) | in:Archive. Bare words search headers and body. Empty = all messages.
folderNoFolder path, e.g. "INBOX", "Archive", "INBOX/newsletters". Names like archive, trash, junk, sent, drafts also work.INBOX
dry_runNotrue = only report what would change
mark_readNotrue = read, false = unread
add_labelsNoLabels to add, e.g. ["receipts"] or ["$purchases"]. Spaces are not allowed in IMAP keywords; they become "-".
remove_labelsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.3/5.0
Behavior4/5

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

With destructiveHint=false already declared, the description reinforces it ('Nothing is moved or deleted') and frames the tool as a bulk state mutator, which is useful confirmation beyond the annotations. It omits the safety-cap behavior (max) documented only in the schema and says nothing about failure modes or result reporting, so it stops short of rich disclosure.

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?

Front-loaded with the core action, then selection mechanism, then a scope disclaimer — good ordering with no filler sentences. The inline enumeration of all ten OX color names duplicates the schema enum and is the one wasteful element.

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 10-parameter mutation tool with no output schema, the description covers the mutating dimensions, the selection mechanism, and the non-destructive scope. It is nearly complete, but leaves dry_run, the max safety cap, and the folder default undocumented in prose, relying on schema descriptions for those.

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 90%, so the baseline is 3; the description earns a bump by explaining that labels are IMAP keywords shown as categories/labels (e.g. $purchases, $social), which adds meaning beyond the schema's add_labels text. It also clarifies the uids-vs-query dual selection mode, though max, dry_run and folder are left entirely to the schema.

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?

States a specific verb and resource ('Change state on many messages at once') and enumerates the exact state dimensions: read/unread, star, OX color, labels. The closing 'Nothing is moved or deleted' cleanly separates it from the mailbox_move_messages and mailbox_delete_messages siblings.

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?

Makes the selection model explicit ('Select by uids or by a Gmail-style query'), which tells the agent how to target messages. The 'nothing is moved or deleted' clause implicitly routes move/delete work elsewhere, but no sibling is named as an explicit alternative and there is no stated when-not condition.

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