Skip to main content
Glama
Protonmail MCP Server

Protonmail MCP Server

by jagjourney

update_draft

Replace an existing draft email with updated recipients, subject, and body content; the old draft is deleted and a new draft is saved.

Instructions

Update an existing draft email by replacing it with new content. The old draft is deleted and a new one is saved.

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": {
      "uid": "<uid>",
      "to": "<to>",
      "subject": "<subject>"
    },
    "name": "update_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
ccNoCC recipients, comma-separated
toYesRecipient email address(es), comma-separated
bccNoBCC recipients, comma-separated
uidYesUID of the existing draft to update
htmlNoHTML body (optional, for rich formatting)
textNoPlain text body
subjectYesEmail subject line

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.3

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose one important trait: the old draft is deleted and a new one saved, meaning this is destructive-plus-create rather than a true update. It fails to explain the consequences — whether the UID or draft identity survives, whether attachments or unmentioned fields are lost, or whether recipient/subject changes require permissions.

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 the destructive behavior front-loaded in the first sentence and the mechanism in the second. No wasted wording.

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 seven-parameter mutation tool with no annotations and no output schema, the description covers the core semantics but omits permissions, what happens to the draft's UID and attachments, and what is returned. Adequate to call it, incomplete as a behavioral contract.

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 documents all seven parameters, and the baseline is 3. The phrase 'replacing it with new content' adds a little meaning — it implies all content fields are overwritten rather than merged — but nothing is said about individual fields such as uid or html/text precedence.

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 gives a specific verb and resource (update an existing draft email) and clarifies that it is a replacement operation, not an in-place patch. It does not differentiate itself from the sibling save_draft, which an agent would plausibly compare against.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

There is a weak implicit signal that use requires an existing draft, but no explicit when-to-use, when-not-to-use, or reference to save_draft or send_email as alternatives. The agent must infer the boundary from the verb alone.

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