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

Move, archive, trash or report spam

mailbox_move_messages

Move multiple messages to any folder or to archive, trash, junk, or back to INBOX by UID list or Gmail-style query; preview large query selections with a dry run first.

Instructions

Move many messages: to any folder, or archive / trash / junk (spam) / not_junk (back to INBOX). Select by uids or a Gmail-style query. Use dry_run first for big query selections. Trash can be undone by moving back.

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": {
      "to": "<to>"
    },
    "name": "mailbox_move_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesDestination folder path, or one of: archive, trash, junk, not_junk, inbox
maxNoSafety cap on how many messages a query may touch. The tool refuses when more match; raise it deliberately.
uidsNoExact message UIDs in `folder`. Give either uids or query.
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_readNoAlso mark moved messages read (true) or unread (false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations declare the mutation profile (readOnlyHint=false, destructiveHint=false), and the description adds real value on top: the reversibility guarantee "trash can be undone by moving back" and the safety practice of previewing large query batches. It does not say what the response looks like or what happens on partial failure, which keeps it off a 5.

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

Conciseness5/5

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

Three short sentences, front-loaded with the action and destination set, then selection mechanics, then the dry_run and reversibility caveats. Every sentence carries a distinct operational fact with no repetition of the schema.

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 bulk mutation tool with no output schema, the description covers destination semantics, selection input, preview safety, and undo behavior — enough to call it correctly. It omits any description of what is returned or how counts/errors surface, which would matter for a 5.

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

Parameters3/5

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

Schema coverage is 100%, so the schema already documents all seven parameters, including the max safety cap and query syntax examples. The description only restates the uids-or-query choice and the dry_run convention, adding little beyond what the structured fields carry — the 3 baseline applies.

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 ("Move many messages") plus the full destination vocabulary — folder, archive, trash, junk, not_junk — with parenthetical clarification that not_junk means "back to INBOX". This makes it unambiguous against the permanent-delete sibling without needing to name it.

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 an explicit sequencing rule ("Use dry_run first for big query selections") and states the two selection modes, uids or query. It stops short of naming mailbox_search_messages or mailbox_delete_messages as the alternative for the non-move cases, so the routing story is clear but not fully closed.

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