Skip to main content
Glama

create-reply-all-draft

Destructive

Create a draft email reply to both the sender and all recipients of a Microsoft 365 message, supporting JSON or MIME formats for flexible message composition.

Instructions

Create a draft to reply to the sender and all recipients 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 the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties.

  • 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-all to a message in a single action.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyYes
messageIdYesPath parameter: messageId
includeHeadersNoInclude response headers (including ETag) in the response metadata
excludeResponseNoExclude the full response body and only return success or failure indication
Behavior4/5

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

Beyond the destructiveHint annotation indicating mutation, the description adds valuable behavioral context: it discloses HTTP 400 error conditions, RFC 2822 compliance requirements for replyTo handling, the ability to update the draft later, and that sending requires a subsequent operation. This helps the agent understand the draft lifecycle and constraint violations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The content is information-dense and necessary for the tool's complexity, but the structure suffers from informal dash-bullet formatting and a grammatically incomplete final sentence fragment ('Alternatively, reply-all to a message in a single action.'). The JSON vs MIME instructions could be more clearly delineated.

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 complex dual-format operation with nested object parameters, the description adequately covers input constraints and draft lifecycle. However, lacking an output schema, it should briefly mention what the tool returns (e.g., the created draft object) to be complete. It does not address the 'includeHeaders' or 'excludeResponse' parameters visible in the schema.

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 the schema has 75% coverage, the description adds critical semantic constraints not captured in the schema structure—specifically the mutual exclusivity rule between 'comment' and 'body' properties within the message parameter, and the base64 encoding requirement for MIME content. This prevents invalid invocations that the schema alone would allow.

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?

Clearly states the specific action (create draft), scope (reply-all to sender and recipients), and supported formats (JSON/MIME). The phrase 'reply to the sender and all recipients' effectively distinguishes this from the sibling 'create-reply-draft' tool which targets only the sender.

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?

Provides detailed format-specific constraints (e.g., mutual exclusivity of 'comment' vs 'body' properties causing HTTP 400 errors). Mentions 'Alternatively, reply-all to a message in a single action,' implicitly referencing the sibling 'reply-all-mail-message' tool as an alternative, though it could be more explicit about when to choose between creating a draft versus sending immediately.

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/alfredo-ia/ms-365-mcp-server'

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