Skip to main content
Glama
mail-mcp

mail-mcp

by spencer-fs

reply_email

Destructive

Send a threaded email reply to explicit recipients, with subject validation that prevents replying to the wrong message.

Instructions

Reply to a message, keeping it in the same conversation thread. Recipients are always given explicitly: pass the reply or reply-all set that read_message suggested. This really sends mail.

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": {
      "folder": "<folder>",
      "uidvalidity": "<uidvalidity>",
      "uid": "<uid>",
      "expected_subject": "<expected_subject>",
      "to": "<to>",
      "body": "<body>"
    },
    "name": "reply_email"
  }
}

Input Schema

NameRequiredDescriptionDefault
ccNoCc recipients. For reply-all use suggested_recipients.reply_all.cc from read_message.
toYesWho the reply goes to. For a reply use suggested_recipients.reply.to from read_message; for reply-all use suggested_recipients.reply_all.to.
bccNoAddresses, each "a@b.c" or "Name <a@b.c>".
uidYesuid of the message being answered.
bodyYesPlain-text reply. The quoted original is added underneath.
folderYesFolder of the message being answered.
attachmentsNoAbsolute paths of files to attach. Only files inside the configured attachment folders are accepted.
uidvalidityYesuidvalidity of that folder from search_messages.
quote_originalNoInclude the original message as quoted text.
expected_subjectYesThe subject of the message being answered or forwarded, as read_message showed it. The server checks it and refuses if it does not match, so the wrong message is never used.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, openWorldHint=true, readOnlyHint=false, and the description reinforces this with 'This really sends mail' while adding non-annotation context: the reply is threaded into the existing conversation and recipients are never inferred by the server. It does not cover failure modes beyond the subject check already documented in the schema.

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?

Three short sentences, front-loaded with purpose then workflow then safety warning. The warning sentence partially duplicates the destructiveHint annotation, which is the only slightly redundant element.

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 10-parameter, no-output-schema mutation tool with full annotation coverage, the description supplies the essential call workflow (read_message first, pass suggested recipients) and the side-effect warning. Return behavior and thread-identity failure handling are not described, but the annotations and schema absorb most of that burden.

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 every parameter including to/cc/bcc, quote_original, and expected_subject is already documented in the schema. The description only reiterates the recipient-sourcing rule, adding no syntax, format, or constraint detail beyond what structured fields provide; baseline 3 applies.

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 and resource ('Reply to a message') plus the defining behavior ('keeping it in the same conversation thread'), which separates it from send_email and forward_email. It stops short of naming those siblings explicitly, so differentiation is inferred rather than stated.

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?

Gives clear operative guidance: recipients must be supplied from read_message's suggested reply/reply-all set, implying read_message is the prerequisite step. It does not say when to prefer this over forward_email or send_email, and no explicit exclusion is offered.

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