Skip to main content
Glama
mail-mcp

mail-mcp

by honest-magic

get_filter

Read-only

Retrieve a SIEVE filter script by name from a self-hosted mail account via ManageSieve to inspect its rules. Use account ID and script name; unavailable for Gmail or Outlook.

Instructions

Retrieve the content of a SIEVE filter script by name via ManageSieve. 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": "get_filter"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesThe name of the SIEVE script to retrieve
accountIdYesThe ID of the account to use

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 this a safe read (readOnlyHint=true, destructiveHint=false), so the description does not need to argue safety. It instead contributes non-obvious behavioral context — the ManageSieve protocol dependency and the provider-level availability restriction — which prevents wasted calls against hosted accounts. It stops short of describing behavior when the named script does not exist or how the script body is returned.

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 with no filler. The core purpose is front-loaded and the availability caveat follows it, so an agent gets the capability and the constraint in one pass.

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 two-parameter read-only tool with full schema coverage, no output schema, and clear annotations, the definition covers what the tool does and the major environmental restriction. The only meaningful omission is failure behavior for an unknown script name, which is a minor gap at this complexity level.

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% and both parameters (name, accountId) are documented inline, so the schema does the heavy lifting. The phrase "by name" merely echoes the name parameter's schema description and adds no format, casing, or resolution detail beyond it, which is the expected baseline of 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?

"Retrieve the content of a SIEVE filter script by name via ManageSieve" gives a specific verb (retrieve), a specific resource (SIEVE filter script content), and a specific selector (by name). This is readily distinguishable from the mutation siblings set_filter/delete_filter and the enumeration sibling 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?

The description supplies a hard precondition that governs when this tool can be used at all: it is only available on self-hosted mail servers, since Gmail and Outlook do not support ManageSieve. That is strong when-not guidance, but it does not route the agent to alternatives (e.g., list_filters to discover script names before retrieval).

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