Skip to main content
Glama
nikolausm

IMAP MCP Server

by nikolausm

imap_delete_by_domain

Delete all emails from a specific domain to clean up unwanted newsletters or spam. Supports dry run to preview deletions.

Instructions

Delete all emails from a specific domain. Useful for cleaning up unwanted newsletters or spam.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
domainYesDomain to delete emails from (e.g., "spammer.com")
dryRunNoIf true, only report what would be deleted
folderNoFolder nameINBOX
accountIdYesAccount ID
Behavior2/5

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

No annotations exist, so description carries full burden. It states deletion but does not disclose whether deletions are permanent, move to trash, require special permissions, or have limits. The dryRun parameter is not mentioned in description.

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?

Single sentence, no wasted words, directly states purpose. Highly efficient and front-loaded with key action and reason.

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

Completeness2/5

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

With 4 parameters, no output schema, and no annotations, the description is insufficient. It omits return value behavior, safety (dryRun exists but not described), and error conditions. For a destructive tool, more context is needed.

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 baseline is 3. The description adds no additional parameter meaning beyond what the schema provides, so score stays at 3.

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 it deletes all emails from a specific domain, using specific verb and resource. It distinguishes from siblings like imap_bulk_delete and imap_delete_email by focusing on domain-based deletion.

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 provides usage context (cleaning newsletters/spam) but does not specify when to avoid it or mention alternative tools like imap_bulk_delete_by_search for non-domain deletions. No explicit when-not or 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/nikolausm/imap-mcp-server'

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