Skip to main content
Glama
icloud-mcp

icloud-mcp

by adamzaidi

bulk_delete_by_sender

Deletes all emails from a specified sender in a chosen mailbox, with an optional dry-run mode to preview changes before deleting.

Instructions

Delete all emails from a specific sender

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": {
      "sender": "<sender>"
    },
    "name": "bulk_delete_by_sender"
  }
}

Input Schema

NameRequiredDescriptionDefault
dryRunNoIf true, report exactly what would change and do not modify anything
senderYesSender email address
mailboxNoMailbox (default INBOX)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.8.0
    • addedInput schema / properties / dryRun
      Added value: +{
      +  "description": "If true, report exactly what would change and do not modify anything",
      +  "type": "boolean"
      +}
  2. First observedv2.5.1

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description must carry the full behavioral burden. 'Delete' implies a destructive, likely irreversible mutation, but the description does not disclose whether the deletion is permanent, whether it spans all mailboxes or only the default INBOX, permissions required, or the existence of a dry-run option. This is a significant gap for a destructive bulk operation.

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?

The description is a single, front-loaded sentence with no filler. While extremely terse, it is not wasted or redundant; it simply lacks the additional context that the other dimensions penalize. Structurally it is clean and efficient.

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?

For a destructive bulk-delete tool with no annotations and no output schema, the description is substantially incomplete. It omits critical behavioral context such as permanence, scope (e.g., mailbox vs. all mailboxes), and confirmation requirements. Schema coverage handles parameters, but the description fails to complete the behavioral picture.

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 three parameters (sender, mailbox, dryRun) are already documented in the schema. The description adds nothing beyond what the schema provides—'specific sender' merely restates the sender parameter—so the baseline score of 3 applies.

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?

The description states a specific verb and resource: 'Delete all emails from a specific sender.' This clearly identifies both the action (bulk delete) and the filter (sender), distinguishing it from broad deletion tools like delete_email or bulk_delete. However, it does not differentiate from close siblings such as bulk_delete_by_subject or delete_older_than, so it stops short of a 5.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives such as bulk_delete, bulk_delete_by_subject, delete_email, or delete_older_than. There are no stated prerequisites, exclusions, or context cues to help an agent choose this over other deletion tools.

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