Skip to main content
Glama
Thunderbird MCP by Commonpost

Thunderbird MCP by Commonpost

Update Filter

updateFilter
Destructive

Modify an existing Thunderbird filter's name, conditions, actions, or enabled state by account and filter index, with confirmation required for sending-rule changes.

Instructions

Change an existing filter's properties, conditions or actions. Adding forward or reply actions, or changing a list that holds a sending rule (enabling or editing it included), is refused by default ("Always block"); with "Ask me each time" the call returns {status: "pending_user_confirmation", confirmationId} (follow up with listFilters, confirmation: true). Sending rules on outgoing mail, archiving or periodic runs (type 64, 128, 256) are always refused.

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>",
      "filterIndex": "<filterIndex>"
    },
    "name": "updateFilter"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoNew filter name
typeNoNew filter type bitmask
actionsNoReplace all actions (same format as createFilter)
enabledNoEnable/disable
accountIdYesAccount ID
conditionsNoReplace all conditions (same format as createFilter)
filterNameNoIts name (listFilters): refused if it no longer matches
filterIndexYesFilter index (from listFilters)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.24.0
    • addedInput schema / properties / filterName
      Added value: +{
      +  "description": "Its name (listFilters): refused if it no longer matches",
      +  "type": "string"
      +}
  2. Changed5 schema fields changedv0.19.2
    • changedInput schema / properties / actions / description
      Previous value: -"Replace all actions (optional, same format as createFilter)"New value: +"Replace all actions (same format as createFilter)"
    • changedInput schema / properties / conditions / description
      Previous value: -"Replace all conditions (optional, same format as createFilter)"New value: +"Replace all conditions (same format as createFilter)"
    • changedInput schema / properties / enabled / description
      Previous value: -"Enable/disable (optional)"New value: +"Enable/disable"
    • changedInput schema / properties / name / description
      Previous value: -"New filter name (optional)"New value: +"New filter name"
    • changedInput schema / properties / type / description
      Previous value: -"New filter type bitmask (optional)"New value: +"New filter type bitmask"
  3. First observedv0.1.0

TDQS

A4.1/5.0
Behavior5/5

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

Annotations only say destructive/non-idempotent/open-world; the description adds the concrete refusal policy, the confirmation-mode branching, the exact pending result shape with confirmationId, the required follow-up (listFilters with confirmation: true), and the permanently blocked sending-rule types. This is precisely the extra context annotations cannot carry.

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?

Purpose is front-loaded in the first clause, then the refusal and confirmation rules follow in priority order. It is dense but every sentence carries information; the parenthetical nesting around "enabling or editing it included" is the only slightly awkward bit.

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 destructive 8-parameter mutation with no output schema, the description covers the risky paths (blocked actions, blocked types, pending confirmation) that an agent most needs. Remaining gaps, such as whether the response returns the updated filter, are minor but not fully addressed.

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%, so the schema already documents every field, including the "Replace all actions/conditions" semantics and the filterName staleness check. The description adds no per-parameter detail beyond what the schema provides, so baseline 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?

"Change an existing filter's properties, conditions or actions" gives a specific verb and resource, and "existing" implicitly separates it from createFilter/deleteFilter. It does not explicitly name a sibling or state a routing rule, so it falls 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 Guidelines4/5

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

The description goes well beyond context: it explains that adding forward/reply actions or touching a list holding a sending rule is refused by default, that "Ask me each time" yields a pending_user_confirmation result, and that types 64/128/256 are always refused. That is genuine when-it-works/when-it-fails guidance, though it never explicitly contrasts with createFilter or applyFilters.

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