Skip to main content
Glama

create-reply-draft

create-reply-draft
Destructive

Draft a reply to an email by specifying a comment or full message body, supporting JSON or MIME formats.

Instructions

Create a draft to reply to the sender of a message in either JSON or MIME format. When using JSON format:

  • Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.

  • If replyTo is specified in the original message, per Internet Message Format (RFC 2822), you should send the reply to the recipients in replyTo, and not the recipients in from.

  • You can update the draft later to add reply content to the body or change other message properties. When using MIME format:

  • Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.

  • Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply to a message in a single operation.

šŸ’” TIP: For HTML replies pass Message.body.contentType: 'html' with Message.body.content as HTML. Note: supplying Message.body replaces the whole draft body, so the original quoted history is not included. Specifying both 'comment' and Message.body returns 400. Signatures are added by the Outlook client only, not via Graph.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyYes
confirmNoFor destructive operations when the confirm gate is enabled (MS365_MCP_REQUIRE_CONFIRM=true; off by default). Set to true only after the user has explicitly approved this action. When the gate is on, calls without confirm: true return { error: "confirmation_required" } without touching user data.
messageIdYesValue for the 'messageId' path segment. Pass it under the name 'messageId', not as 'id'. Use the 'id' field of the message object as returned by Microsoft Graph.
includeHeadersNoInclude response headers (including ETag) in the response metadata
excludeResponseNoExclude the full response body and only return success or failure indication
Behavior5/5

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

The description goes well beyond the annotations (readOnlyHint: false, destructiveHint: true) by detailing key behaviors: the 400 error when both comment and body are supplied, the note that supplying body replaces the entire draft body so quoted history is lost, the MIME base64 requirement, and that signatures are only added by the Outlook client, not via Graph. These are valuable, non-obvious details that help an agent predict behavior accurately.

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?

The description is relatively long but well-structured with bullet points and clear formatting. It leads with the primary purpose, then details each format, and provides a tip and note. Despite its length, every sentence conveys necessary information; it is appropriately detailed for a complex tool with two distinct input formats.

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?

For a tool with two complex input formats, nested schemas, and error-prone conditions, the description is extremely complete. It covers format selection, header requirements, attachments, error cases, update workflow, and the alternative single-operation reply. No output schema is needed, and the description leaves no obvious gaps for an agent to call this tool correctly.

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

Parameters4/5

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

While schema coverage is high (80%), the description adds meaningful semantics for the body parameter (explaining the Comment vs Message distinction and the error condition) and for messageId (instructing to pass it as 'messageId' not 'id'). It also clarifies that attachments and S/MIME properties go into the MIME content. This adds value beyond the schema's basic property descriptions.

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?

The description clearly states the tool's purpose: 'Create a draft to reply to the sender of a message in either JSON or MIME format.' It specifies the verb, resource, and formats, and distinguishes itself from siblings like create-forward-draft and create-reply-all-draft by its focus on replying to the sender only. The mention of 'Alternatively, reply to a message in a single operation' further clarifies its scope.

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

Usage Guidelines3/5

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

The description implies when to use this tool: when you want to create a draft rather than send immediately ('Send the draft message in a subsequent operation'), and it mentions the alternative of replying in a single operation. However, it does not explicitly name any sibling tools (e.g., create-reply-all-draft, reply-mail-message) or provide clear exclusions, so the guidance is implied but not explicit.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/A-Impact-Pavel/ms365-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server