Skip to main content
Glama

move_emails

DestructiveIdempotent

Mails in einen anderen Ordner legen. Required: email_ids (aus list_emails), to_folder. Optional: email_account_id, from_folder (sonst der gespeicherte). Bei Gmail heisst das: Ziel-Label dran, Quell-Label weg — uebrige Labels bleiben. Bei Outlook vergibt der Server dabei eine NEUE Kennung; sie wird nachgezogen, eine zwischenzeitlich gemerkte id von aussen ist danach ungueltig. Mails, die vor dem 01.09.2026 geholt wurden, werden ueber ihre Message-ID gesucht; was der Server nicht findet, kommt als skipped zurueck statt still zu verschwinden.

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_ids": "<email_ids>",
      "to_folder": "<to_folder>"
    },
    "name": "move_emails"
  }
}

Input Schema

NameRequiredDescriptionDefault
email_idsYesListe von E-Mail-IDs
to_folderYesZielordner (Gmail: Ziel-Label)
from_folderNoQuellordner; ohne Angabe der gespeicherte Ordner der Mail
email_account_idNoPostfach-ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / email_account_id / description
      Added value: +"Postfach-ID"
    • addedInput schema / properties / email_ids / description
      Added value: +"Liste von E-Mail-IDs"
    • addedInput schema / properties / from_folder / description
      Added value: +"Quellordner; ohne Angabe der gespeicherte Ordner der Mail"
    • addedInput schema / properties / to_folder / description
      Added value: +"Zielordner (Gmail: Ziel-Label)"
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Goes well beyond the annotations: it explains that Gmail implements the move as add-target-label/remove-source-label while keeping other labels, that Outlook issues a NEW identifier which invalidates any externally cached id, and that unfindable messages come back as 'skipped' rather than vanishing. This is exactly the kind of context annotations cannot carry, though it does not spell out permission requirements or batching limits.

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-loads the action, then lists required and optional parameters, then provider-specific caveats. Dense but every clause carries information; the abrupt German/English mixing and the long final sentence slightly hurt readability.

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 four-parameter mutation tool with no output schema, it covers the important ground: input provenance, provider divergence, ID invalidation after the move, and the 'skipped' return signal. Missing only permission/auth expectations and any confirmation about whether partial batches can succeed.

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 would be 3, but the description still adds value: it flags which parameters are required vs optional, clarifies that from_folder falls back to the stored folder, and re-states the Gmail label meaning of to_folder. It adds provenance for email_ids (list_emails) that the schema alone does not convey.

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 concrete verb and resource ('Mails in einen anderen Ordner legen') and immediately constrains scope with required and optional parameters. An agent can tell this is a move operation on messages, distinct from the mark/trash/assign siblings.

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

Usage Guidelines3/5

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

The description names the prerequisite source of IDs ('email_ids (aus list_emails)') and explains the from_folder default, which implies a workflow. However it never states when to prefer this over alternatives such as trash_emails or mark_emails, nor any exclusion conditions.

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.