Skip to main content
Glama
Timbre

Timbre

move_mail

Destructive

Move messages to archive, trash, inbox, junk, or named mailboxes; preview destinations first, run batch plans, and undo any change with the returned token.

Instructions

Move messages to archive, trash, inbox, junk or a named mailbox; or, with plan, several groups to several places at once; preview: true shows what would go where first. Never deletes permanently; returns an undo_token. For an account without an archive mailbox, Mail is asked to make one; if it will not, the result says how. Gmail: Mail can only move messages to the trash or junk by script (and out of them, to All Mail); other Gmail moves are refused with what to do instead.

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": "move_mail"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoDestination: archive, trash, inbox or junk (each message's own account), or a mailbox name or path from list_mailboxes.
idsNoMessage ids (1-200).
planNoInstead of ids and to: several moves at once, each its ids and destination (up to 500 messages in all); one undo takes them all back.
accountNoAccount of the destination mailbox, when its name exists in several accounts.
previewNotrue: say what would go where, and move nothing.

Output Schema

NameRequiredDescriptionDefault
doneYes
noteNo
failedNo
plannedNoWith preview: what would go where.
undo_tokenNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changedv0.7.2
    • addedInput schema / $defs
      Added value: +{
      +  "MoveStep": {
      +    "properties": {
      +      "account": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "ids": {
      +        "items": {
      +          "format": "int64",
      +          "type": "integer"
      +        },
      +        "type": "array"
      +      },
      +      "to": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "ids",
      +      "to"
      +    ],
      +    "type": "object"
      +  }
      +}
    • addedInput schema / properties / ids / default
      Added value: +[]
    • addedInput schema / properties / plan
      Added value: +{
      +  "description": "Instead of ids and to: several moves at once, each its ids and destination (up to 500 messages in\nall); one undo takes them all back.",
      +  "items": {
      +    "$ref": "#/$defs/MoveStep"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / preview
      Added value: +{
      +  "description": "true: say what would go where, and move nothing.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / to / default
      Added value: +""
    • removedInput schema / required
      Removed value: -[
      -  "ids",
      -  "to"
      -]
    • changedOutput schema / $defs / Failure / properties / message_id / description
      Previous value: -"The message's Message-ID header (undo_move failures)."New value: +"The message's Message-ID header (undo failures)."
    • addedOutput schema / $defs / PlannedMove
      Added value: +{
      +  "properties": {
      +    "examples": {
      +      "description": "A few of their subjects.",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "messages": {
      +      "format": "uint",
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "to": {
      +      "description": "Where they would go, as Mail shows it.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "to",
      +    "messages",
      +    "examples"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / planned
      Added value: +{
      +  "description": "With preview: what would go where.",
      +  "items": {
      +    "$ref": "#/$defs/PlannedMove"
      +  },
      +  "type": "array"
      +}
  2. First observedv0.6.5

TDQS

A4.1/5.0
Behavior5/5

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

Substantially exceeds the annotations: it discloses that moves are never permanent and return an `undo_token`, that a missing archive mailbox triggers auto-creation with a fallback message, and that Gmail imposes platform-specific refusals with remediation. This is exactly the operational context the destructiveHint=true / idempotentHint=false flags cannot convey.

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?

The action and destinations are front-loaded, and each later clause (plan, preview, undo, archive creation, Gmail limits) carries distinct information. The dense semicolon-chained sentences and the parenthetical "(and out of them, to All Mail)" make it slower to parse than a bulleted structure would be.

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

Completeness5/5

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

With an output schema present, the description need not explain return shapes, yet it still flags the key return signal (`undo_token`) and the refusals/fallbacks an agent must handle. Combined with the Gmail and archive-mailbox edge cases, an agent has everything needed to call this correctly.

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 `to`, `ids`, `plan`, `account` and `preview` are already documented in the schema with matching wording; the description largely restates that. Useful but non-schema detail (the 1-200 id cap, the 500-message plan cap, the shared undo scope) is left in the schema rather than added or reinforced in prose, so baseline 3 applies.

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

Purpose4/5

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

Opens with a concrete verb and resource ("Move messages") and enumerates every valid destination class (archive, trash, inbox, junk, named mailbox), then extends the scope to batched plans and dry-run previews. An agent can tell this is a relocation tool rather than a flagging or deletion tool, though no sibling (e.g. mark_mail, delete_mailbox) is named to sharpen the boundary.

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 clear conditional guidance: use `plan` for several groups at once, `preview: true` to simulate, and states that Gmail script-driven moves are limited to trash/junk (and back out to All Mail) with refusals explaining the alternative. It lacks an explicit "use X tool instead" pointer to siblings, so it stops just short of the top band.

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