Skip to main content
Glama
proton-mail-mcp

proton-mail-mcp

by sethbang

Mark all read

mark_all_read
Idempotent

Mark every unread message in a Proton Mail folder as read, optionally limited to mail older than a set date, and preview the affected count with a dry run before changing any flags.

Instructions

Mark all unread messages in a folder as read. Optionally limit to messages older than a given date. Pass dryRun: true to preview the affected count without flipping any flags.

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": "mark_all_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
dryRunNoPreview the count of unread messages that would be marked, without flipping any flags.
folderNoFolder to mark as read (default: INBOX)INBOX
olderThanNoOnly mark messages before this date as read (YYYY-MM-DD in UTC, exclusive)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.0.1
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedInput schema / properties / olderThan / description
      Previous value: -"Only mark messages before this date as read (YYYY-MM-DD, exclusive — messages strictly before this date)"New value: +"Only mark messages before this date as read (YYYY-MM-DD in UTC, exclusive)"
  2. First observedv1.0.1

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare this is a non-read-only, idempotent, non-destructive mutation. The description adds useful behavior beyond that: dryRun previews the affected count without flipping flags, and olderThan is exclusive. It does not discuss permissions or return behavior beyond the preview count.

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 main action and followed by the two optional modifiers. Every sentence contributes directly to correct invocation.

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 zero-required-parameter mutation tool with full schema coverage and informative annotations, the description covers scope, date limiting, and dry-run preview adequately. It lacks explicit return details for non-dry-run calls, but no output schema exists and annotations cover the safety profile.

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 in the schema. The description reinforces the purpose of dryRun and olderThan but adds no syntax or format details beyond what the schema provides.

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: marking all unread messages in a folder as read. The scope ('all unread messages in a folder') helps distinguish it from per-message flag tools, though it does not explicitly name or compare against siblings like bulk_update_flags.

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 description explains the optional date limit and dryRun preview, implying when the tool is useful. However, it gives no explicit guidance on when to choose this over sibling tools such as bulk_update_flags or update_message_flags.

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