Skip to main content
Glama
pjosols
by pjosols

mail_delete_email

Delete emails from Fastmail accounts by moving them to Trash or permanently destroying them using JMAP email IDs.

Instructions

Delete one or more emails by moving to Trash, or permanently destroy them.

Args: email_ids: List of JMAP email IDs to delete. permanent: If True, permanently destroy emails. Default moves to Trash.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
email_idsYes
permanentNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations provided, the description carries the full burden. It discloses the destructive nature (moving to Trash or permanent destruction) and the default behavior (moves to Trash if permanent is false). However, it lacks details on permissions needed, rate limits, or what happens if email_ids are invalid, leaving behavioral gaps.

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?

The description is front-loaded with the core purpose in the first sentence, followed by a concise Args section. Every sentence adds value without redundancy, making it efficient and well-structured for quick understanding.

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?

Given the tool's complexity (destructive operation with 2 parameters), no annotations, and an output schema (which handles return values), the description is mostly complete. It covers the purpose, parameters, and behavior but could improve by addressing error cases or permissions, though the output schema mitigates some gaps.

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 description coverage is 0%, so the description must compensate. It explains email_ids as 'List of JMAP email IDs to delete' and permanent as controlling destruction vs. Trash, adding meaning beyond the schema's basic types. However, it does not detail the format of JMAP IDs or the implications of permanent deletion, leaving some semantics unclear.

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?

The description clearly states the action ('Delete one or more emails') and specifies the mechanism ('by moving to Trash, or permanently destroy them'). It distinguishes from sibling tools like mail_archive_email or mail_move_email by focusing on deletion rather than archiving or relocating.

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?

The description provides clear context for when to use this tool (to delete emails) and implies when not to use it (e.g., for archiving or moving emails, as indicated by sibling tools). However, it does not explicitly name alternatives or specify prerequisites, such as requiring email IDs from prior operations.

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/pjosols/pyfastmail-mcp'

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