Skip to main content
Glama
yu2001-s
by yu2001-s

batch-delete-messages

Delete up to 100 email messages at once by moving them to Trash. Provides counts of successfully deleted and failed messages.

Instructions

Use when: deleting multiple messages in one call (1–100 ids; moves them to Trash). Returns: counts of how many were deleted and how many failed. Do not use when: deleting just one (use delete-message) or filing messages away (use batch-move-messages). Safety: destructive and applies to many messages at once — require explicit user confirmation, and search-messages/list-messages first to confirm every id is correct before deleting.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okNo
failedNo
mailboxNo
successNo
Behavior4/5

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

No annotations provided, so description carries full burden. It discloses destructive nature, moves to Trash, requires user confirmation, and suggests prior message verification. Returns counts of deleted and failed. Lacks mention of authorization requirements but overall thorough.

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?

Description is structured with clear sections (use, do not use, safety, returns). Front-loaded with purpose. Slightly verbose in safety section but overall well-organized and concise.

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?

Covers purpose, guidelines, safety, and return values. With output schema present, explanation of return values is adequate. Could mention partial failure handling or idempotency, but sufficient for a batch delete tool among many siblings.

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?

Only one parameter 'ids'. Schema already specifies array of strings with pattern and min/max. Description adds that it's multiple messages and they are moved to Trash, but doesn't elaborate on the nature of IDs (e.g., message IDs). With 0% schema description coverage, some extra context is provided, but not fully compensating.

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?

Clearly states it deletes multiple messages in one call, distinguishing from delete-message (single) and batch-move-messages (filing). The verb 'deleting' and resource 'multiple messages' are specific.

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

Usage Guidelines5/5

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

Explicitly says 'Use when: deleting multiple messages in one call' and 'Do not use when: deleting just one (use delete-message) or filing messages away (use batch-move-messages)'. Provides clear context and alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/yu2001-s/apple-mail'

If you have feedback or need assistance with the MCP directory API, please join our Discord server