Skip to main content
Glama

Delete Inbox Rule

delete_mail_rule
Destructive

Deletes an inbox mail rule by its ID, helping remove unwanted automatic sorting or forwarding. Get the rule ID from list_mail_rules first.

Instructions

Delete an inbox rule. Get its ID from list_mail_rules.

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": {
      "rule_id": "<rule_id>"
    },
    "name": "delete_mail_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
mailboxNoEmail address of another mailbox to act on (delegated or shared), e.g. 'someone@example.com'. Omit for your own mailbox; required when this server signs in as an application. Only addresses this server is configured to allow will be accepted.
rule_idYesThe rule's ID from list_mail_rules

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.6.1

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the agent knows this mutates and destroys state. The description adds only the ID-provenance detail; it does not say whether deletion is permanent, whether the rule can be recreated identically, or how delegated mailbox access affects permissions.

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?

Two short sentences, front-loaded with the action and followed by the one prerequisite an agent needs. No filler or redundant restatement of the title.

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 simple two-parameter destructive delete with full schema coverage and destructive/read-only annotations, the definition covers what is needed to invoke it correctly. Only minor gaps remain around irreversibility and delegated-mailbox auth, which the schema and annotations largely imply.

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 coverage is 100%, and both parameters are documented in the schema, including the delegated/shared mailbox semantics and the allowlist constraint. The description's mention of rule_id merely repeats the schema text, adding no new meaning, so the baseline 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 an inbox rule') and points at list_mail_rules as the source of the required identifier, which effectively separates it from the create/list siblings. It stops just short of an explicit contrast statement, but the operation is unambiguous.

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 second sentence implies the workflow prerequisite: an ID must be obtained via list_mail_rules before calling. There is no guidance on when not to use it, whether confirmation is expected before a destructive delete, or how it relates to create_mail_rule for cleanup scenarios.

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

Deploy Server

Other Tools