Skip to main content
Glama
codefuturist

Email MCP Server

by codefuturist

Bulk action

bulk_action
Destructive

Perform batch operations on up to 100 emails by UID: mark read/unread, flag/unflag, move, or delete, returning success and failure counts.

Instructions

Batch operation on multiple emails by UID list. Supports mark_read, mark_unread, flag, unflag, move, and delete. Max 100 IDs per call. Returns success/failure counts.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idsYesArray of email UIDs (max 100). Get UIDs from list_emails or search_emails.
actionYesBulk action to perform
accountYesAccount name from list_accounts
mailboxNoSource mailbox containing the emailsINBOX
destinationNoDestination mailbox — required when action is 'move'

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.6.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observedv0.2.3

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and destructiveHint=true, so the safety profile is covered. The description adds real value on top: it names delete as one of the destructive actions, discloses the 100-ID batching limit, and states that success/failure counts are returned, which hints at partial-failure behavior. It stops short of saying whether failures are atomic/rolled back or what auth is required.

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 core purpose, then supported actions, then limits and return shape. No redundant or filler language.

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 5-param mutation tool with no output schema, the description covers actions, batching limits, and return summary, while annotations carry the destructive profile and the schema carries parameter detail. Minor gap: no statement about partial-failure/atomicity semantics or the destination requirement for 'move' (left to the schema).

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% and the schema already documents every parameter, including the move-requires-destination rule and the UID array bounds. The description restates the action list and the 100 max without adding syntax or format meaning, so the baseline 3 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 (batch operation) and resource (multiple emails by UID list) and enumerates exactly which actions are supported. The 'bulk'/'multiple emails' framing cleanly separates it from the single-item siblings move_email, delete_email, and mark_email without needing to name them.

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?

Batching semantics imply the use case (act on many UIDs in one call rather than looping single-item tools), and the max-100 cap signals a practical boundary. However, it never states when to prefer this over repeated single-email calls, nor any exclusions or prerequisites, so guidance remains implicit.

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