Skip to main content
Glama
mail-mcp

mail-mcp

by honest-magic

batch_operations

Destructive

Perform bulk IMAP actions—move, delete, or label up to 100 emails at once across any provider, avoiding repetitive single-message changes.

Instructions

Perform bulk IMAP operations (move, delete, label) on up to 100 emails at once — works with any provider.

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": {
      "accountId": "<accountId>",
      "uids": "<uids>",
      "folder": "<folder>",
      "action": "<action>"
    },
    "name": "batch_operations"
  }
}

Input Schema

NameRequiredDescriptionDefault
uidsYesArray of email UIDs to operate on (max 100)
actionYesThe batch action to perform
folderYesThe folder containing the emails
accountIdYesThe ID of the account to use
addLabelsNoLabels to add (for label action)
removeLabelsNoLabels to remove (for label action)
targetFolderNoTarget folder (required for move action)
confirmationIdNoConfirmation token from a prior confirmation-required response. Required to execute write operations when server is in --confirm mode.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.4.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the risk profile is known. The description usefully adds the 100-item cap and provider-agnosticism, but says nothing about whether a delete is recoverable, what happens on partial failure mid-batch, or that a confirmation token may be required in --confirm mode — all material for a destructive batch tool.

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?

A single front-loaded sentence with the operation and its scope stated first and no filler. Every clause (bulk, the three actions, the cap, provider support) carries information.

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

Completeness3/5

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

With eight parameters, a destructive annotation and no output schema, the description leaves the agent uninformed about the result shape (per-UID success/failure?) and about the confirmation-required flow for writes. Adequate to select the tool, insufficient to predict its behavior on partial failures.

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 description coverage is 100%, so all eight parameters, including the conditional targetFolder, addLabels/removeLabels and the confirmationId flow, are already documented in the schema. The description only echoes the action list, adding no format or constraint detail beyond it, which is the expected baseline.

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?

States a specific verb (bulk operations) on a specific resource (emails) and enumerates the three supported actions plus the 100-item cap. An agent can distinguish it from single-item siblings like delete_email or move_email by the word 'bulk', though it never names them explicitly.

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 phrase 'on up to 100 emails at once' implies this is the multi-item path, but there is no explicit guidance on when to choose it over the single-email siblings (delete_email, move_email, modify_labels) or what to do for a single message. Usage is inferable rather than stated.

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