Skip to main content
Glama
Protonmail MCP Server

Protonmail MCP Server

by jagjourney

run_rules

Execute all enabled auto-categorization rules against recent emails in a folder, scanning a set number of messages to sort incoming mail automatically.

Instructions

Execute all enabled auto-categorization rules against recent emails in a folder

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "run_rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax emails to scan
folderNoFolder to scanINBOX

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.3

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It does disclose that all enabled rules run and that scope is recent emails in one folder, but it never says what the rules do to the emails (move, label, flag), whether the effect is reversible, or whether the operation is safe to repeat.

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?

A single front-loaded sentence with no filler or redundancy. It is efficient, though it leaves little room for the behavioral context this unannotated mutation tool needs.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter, zero-required tool with full schema coverage and no output schema, the basics are covered. What is missing is the outcome of a run: which emails get modified, how they change, and whether any summary or count is returned.

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 both parameters are already documented, making 3 the baseline. The description adds only mild meaning, hinting that the limit bounds a recency-based scan of the chosen folder rather than an arbitrary subset.

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?

States a specific verb (execute) and resource (auto-categorization rules) with a clear scope (enabled rules, recent emails, one folder). That wording naturally separates it from list_rules/create_rule/delete_rule siblings, though it does not name any of them explicitly.

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?

Usage is only implied: an agent can infer this is the tool that applies existing rules rather than managing them. There is no explicit when-to-use, no prerequisite (e.g., rules must exist), and no statement of when not to use it versus a manual move or bulk_action.

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