Skip to main content
Glama
imap-mail-mcp

imap-mail-mcp

by EastMG

send_message

Sends real emails through configured accounts after showing the account, recipients, subject, and body for explicit user approval; every send is logged.

Instructions

SEND a real email. IRREVERSIBLE. Show the user account/recipients/subject/body first, get explicit approval, then call with confirmed=true. Every send is logged to sends.log.

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": {
      "to": "<to>",
      "confirmed": "<confirmed>"
    },
    "name": "send_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
ccNoPlain email addresses.
toYesPlain email addresses.
bccNoPlain email addresses.
htmlNoOptional HTML body
textNoPlain-text body
accountNoWhich mailbox sends it
subjectNoSubject
confirmedYestrue only after explicit user approval
inReplyToNoMessage-ID being replied to
referencesNoReferences header

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden and does well on the big risks: it declares IRREVERSIBLE in caps, mandates human approval before the call, and discloses that every send is written to sends.log. It stops short of delivery semantics (bounce/partial failure behavior, what the caller gets back), so the behavior picture is strong but not complete.

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?

Four short sentences, front-loaded with the imperative SEND and the IRREVERSIBLE warning, then the approval procedure, then the audit trail. No filler and the highest-risk information comes first.

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 irreversible mutation with no annotations and no output schema, the definition covers the safety-critical essentials: irreversibility, approval gate, the confirmed flag, and logging. It omits what happens on partial delivery or address rejection and gives no hint about account selection, though the schema documents those fields.

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 all ten parameters already carry descriptions, including confirmed="true only after explicit user approval." The description's mention of confirmed=true mostly restates the schema; it adds workflow context but no new syntax or format meaning. Baseline 3 applies when the schema does the heavy lifting.

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 and resource ("SEND a real email") plus a scope qualifier ("real" vs. a draft), which immediately separates it from sibling read/search tools that never write mail.

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 an explicit pre-call workflow: show the user account/recipients/subject/body, obtain explicit approval, then call with confirmed=true. It does not name any alternative tool (e.g., a save-draft path) or say when NOT to send, but the gating condition is unambiguous.

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