Skip to main content
Glama
mattias242

protonmail-mcp-server

by mattias242

Skapa svarsutkast

create_reply_draft

Creates a reply as a draft in Drafts instead of sending it, with correct recipients, threading headers, and optional original quote. Review and send it in Proton later.

Instructions

Skapa ett svar som utkast i Drafts i stället för att skicka det. Ingenting skickas.

Svaret byggs exakt som reply_to_email bygger det: samma mottagare (Reply-To, annars From; svara alla tar med To och Cc utom ditt eget konto), ett enda "Re: ", In-Reply-To och References så att det hamnar i rätt tråd, och originalet citerat under texten. Utkastet kan granskas och skickas i Proton, eller skickas härifrån med send_draft när det är godkänt.

Args: uid: UID för mejlet att svara på mailbox: Mappen som UID:t kom från (obligatorisk). UID:n gäller per mapp. body: Svarstexten i klartext reply_all: Svara alla — ta även med originalets To och Cc body_html: Valfri HTML-version av svarstexten cc: Ytterligare kopia-adress(er) bcc: Hemlig kopia-adress(er) (sparas i utkastet) quote_original: Citera originalet under svaret (standard: True)

Returns: {"uid", "mailbox": "Drafts", "message_id"} för utkastet.

Raises: ValueError: originalet finns inte, ogiltig adress, eller om Bridge vägrar spara utkastet.

Input Schema

NameRequiredDescriptionDefault
ccNo
bccNo
uidYes
bodyYes
mailboxYes
body_htmlNo
reply_allNo
quote_originalNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.4.0

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only cover the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false) and do not explain behavior. The description adds substantial context: nothing is sent, the draft lands in the Drafts mailbox, threading is achieved via In-Reply-To/References, recipients are derived from Reply-To/From, and ValueError is raised for missing originals or refused saves.

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?

Well front-loaded: the draft-vs-send distinction leads, followed by construction details, args, returns, and raises. The reply-construction paragraph is dense but every sentence adds real information about threading and quoting, so little is wasted despite the length.

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

Completeness5/5

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

No output schema exists, but the description documents the return shape ({uid, mailbox: Drafts, message_id}) and the error cases. Combined with complete parameter documentation, an agent has everything needed to call this correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% and there are 8 parameters, so the description must carry the full burden — which it does. It explains each parameter, including the non-obvious constraint that UID is per-mailbox and mailbox is mandatory, and that bcc is stored in the draft and quote_original defaults to True.

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?

States a specific verb+resource (create a reply draft) and immediately delimits it: it creates a draft rather than sending, and is built exactly like reply_to_email. An agent can distinguish it from create_draft, create_forward_draft, and reply_to_email 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 Guidelines5/5

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

Explicitly names the alternative paths: review and send in Proton, or send from here via send_draft once approved. The sibling reply_to_email is named as the behavioral template. When-to-use and the follow-up action are both stated rather than implied.

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