Skip to main content
Glama

replyMessage

Send a threaded email reply with automatic To/Cc handling, subject prefixing, quoting, and optional attachments; enable reply-all to include original recipients.

Instructions

Reply to a message. Automatically handles To/Cc recipients, subject prefix, threading headers, and quoted content. Use replyAll to include all original recipients.

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": {
      "messageId": "<messageId>",
      "body": "<body>"
    },
    "name": "replyMessage"
  }
}

Input Schema

NameRequiredDescriptionDefault
ccNoOverride CC list (if omitted and replyAll, uses original To + Cc minus yourself)
toNoOverride recipient list (if omitted, replies to sender or Reply-To). Each entry must be either 'addr@example.com' or 'Display Name <addr@example.com>'; non-ASCII display names are RFC 2047 encoded automatically. Other RFC 5322 forms (groups, comments, a quoted display name containing a '<') are sent through unencoded.
bccNoOptional BCC recipients
bodyYesThe reply body text. Supports plain text or HTML (auto-detected). Use HTML tags like <p>, <br>, <b> for formatted replies.
replyAllNoIf true, reply to all original recipients (To + Cc minus yourself). Default: false
messageIdYesThe ID of the message to reply to
attachmentsNoOptional attachments to include in the reply
includeBodyHtmlNoWhether to include the parsed HTML in the return

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0-rc.1

TDQS

A4.1/5.0
Behavior4/5

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

With zero annotations, the description carries the whole behavioral burden and does real work here: it discloses that recipients are computed automatically, a subject prefix is added, threading headers are set, and the original message is quoted. The significant omission is send semantics — nothing states whether the reply is transmitted immediately or only drafted, which matters for an outbound, hard-to-reverse communication.

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 sentences, front-loaded with the action and the automatic behaviors, then the branching rule. Nothing is repeated from the schema and no sentence is filler.

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?

Eight parameters are all schema-documented and the automatic threading behavior is explained, but there is no output schema and the description never says what the call returns — the includeBodyHtml parameter implies a reply object with parsed HTML, a hint the description never confirms. Combined with the unstated send-vs-draft behavior, an agent is left guessing on a mutation-style tool.

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 already explains itself, including the to/cc override behavior and HTML detection for body. The description's only parameter remark ("Use replyAll to include all original recipients") duplicates what the replyAll schema entry already says, adding no new semantics.

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?

Names a specific verb and resource ("Reply to a message") and immediately scopes the behavior: auto-handled To/Cc, subject prefix, threading headers, quoted content. That detail distinguishes it from forwardMessage and sendMessage without needing their schemas, and the replyAll parameter is called out as the variant switch.

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 a clear selection rule for the main branch point: "Use replyAll to include all original recipients." It stops short of naming the alternative tools for adjacent intents (forwarding an existing message, sending a brand-new one, saving a draft), so the agent must infer that routing.

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

Deploy Server

Other Tools