Skip to main content
Glama

send-mail

Destructive

Send emails through Microsoft 365 with attachments using JSON or MIME format. Save messages to Sent Items or create drafts for later delivery.

Instructions

Send the message specified in the request body using either JSON or MIME format. When using JSON format, you can include a file attachment in the same sendMail action call. When using MIME format: This method saves the message in the Sent Items folder. Alternatively, create a draft message to send later. To learn more about the steps involved in the backend before a mail is delivered to recipients, see here.

šŸ’” TIP: CRITICAL: Do not try to guess the email address of the recipients. Use the list-users tool to find the email address of the recipients.

Input Schema

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

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

Annotations already indicate destructive/write behavior (destructiveHint:true). Description adds that MIME format saves to Sent Items folder and mentions backend delivery process (though with broken 'see here' reference). Does not disclose failure modes, rate limits, or size constraints for attachments.

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?

Length is appropriate for the tool's complexity. The CRITICAL TIP is usefully highlighted with emoji. However, contains dangling reference ('see here') and slightly repetitive structure ('When using JSON... When using MIME...'). Could be more tightly structured.

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?

Covers primary workflows (immediate send vs draft, format options, attachments) and prerequisites (email lookup). Lacks coverage of return values (no output schema exists), error conditions, success indicators, or message size limits expected for an email sending operation.

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 67%, providing decent baseline documentation. Description adds context about JSON vs MIME format options for the body parameter and attachment handling behavior. However, completely ignores includeHeaders and excludeResponse parameters, offering no guidance on when to use these boolean flags.

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?

Clear verb ('Send') and resource ('message') with specific format options (JSON/MIME). Partially distinguishes from sibling create-draft-email by mentioning draft creation as an alternative workflow, though fails to differentiate from send-draft-message which sends existing drafts versus this tool which sends new messages.

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?

Strong explicit guidance with the CRITICAL tip mandating use of list-users tool to find recipient addresses rather than guessing. Mentions draft creation as alternative for later sending, implying when NOT to use this tool. Could clarify distinction from send-draft-message for drafts already created.

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