Skip to main content
Glama
mail-mcp

mail-mcp

by honest-magic

delete_filter

Destructive

Removes a named SIEVE filter script via ManageSieve on self-hosted mail servers; use it to delete unused filters, but not the currently active script.

Instructions

Delete a SIEVE filter script by name via ManageSieve. Cannot delete the currently active script. Only available on self-hosted mail servers — Gmail and Outlook do not support ManageSieve.

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": {
      "accountId": "<accountId>",
      "name": "<name>"
    },
    "name": "delete_filter"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesThe name of the SIEVE script to delete
accountIdYesThe ID of the account to use
confirmationIdNoConfirmation token from a prior confirmation-required response. Required to execute write operations when server is in --confirm mode.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.4.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the description's job is to add context, which it does: it discloses the active-script precondition and the provider-level availability limit. It does not explain whether deletion is reversible or how the --confirm mode interacts with the call, though the schema covers confirmationId.

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 action, followed by the two constraints that actually gate invocation. No filler or restatement of the tool name.

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 three-parameter destructive tool with full schema coverage and no output schema, the description covers the important preconditions (active script, server support). Only the confirmation-mode workflow and post-deletion state are left implicit, which is a minor gap given 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%, so all three parameters are already documented, including the confirmationId token semantics. The description only reinforces that the script is identified by name; it adds no format, case-sensitivity, or naming-convention detail beyond the schema.

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 (Delete), a specific resource (SIEVE filter script), the lookup key (by name) and the protocol (ManageSieve). This is clearly distinguishable from get_filter, set_filter, and list_filters without opening any schema.

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?

Gives two concrete exclusions: it cannot remove the currently active script, and it is unavailable on Gmail/Outlook because they do not support ManageSieve. It stops short of naming the workaround (e.g. switch the active script via set_filter first), so the agent must infer the path forward.

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