Skip to main content
Glama

Move an email to a folder

move_email
Idempotent

Moves one inbox email to an existing folder of the same mailbox (see list_folders), on the mail server too. No folder is created. Undone by restore_to_inbox.

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": {
      "email_id": "<email_id>",
      "folder": "<folder>"
    },
    "name": "move_email"
  }
}

Input Schema

NameRequiredDescriptionDefault
folderYes
email_idYesEmail id, as returned by search_emails or list_to_answer.

Output Schema

NameRequiredDescriptionDefault
movedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedOutput schema / additionalProperties
      Previous value: -trueNew value: +{}
    • addedOutput schema / properties / moved / propertyNames
      Added value: +{
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds real context beyond that: the move propagates to the mail server, the folder is not auto-created, and the change is reversible via restore_to_inbox. It does not state failure modes (missing folder, unknown email_id) or permission requirements.

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 compact sentences with no filler. The core action leads, followed by the constraint (no folder creation) and the escape hatch (restore_to_inbox), so the most decision-relevant facts come first.

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?

An output schema exists, so return values need no explanation, and annotations cover safety semantics. The description covers the mutation's blast radius and reversibility, leaving only error behavior and cross-mailbox restrictions unstated for a 2-parameter mutation.

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 only 50% – email_id is documented but folder is bare. The description compensates by constraining folder to an existing folder of the same mailbox and pointing to list_folders as the way to obtain valid values, which is meaningfully more than the schema's maxLength/minLength constraints.

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 ('Moves one inbox email to an existing folder of the same mailbox') with tight scope qualifiers: single email, inbox only, existing folder, same mailbox. It also names two sibling tools (list_folders, restore_to_inbox) so an agent can distinguish this from folder discovery and undo operations.

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 routing context: use list_folders to find the target folder, and know that no folder is created (so the folder must pre-exist). It also points to restore_to_inbox as the reverse action. It stops short of contrasting with other filing options like archive_email or trash_email, so the agent must infer when moving beats archiving.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.