Skip to main content
Glama

reply_to_email

Automatically generate and send email replies using Microsoft Graph API. Specify account ID, email ID, and response body to streamline communication directly through your Outlook inbox.

Instructions

Reply to an email (sender only)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
account_idYes
bodyYes
email_idYes

Implementation Reference

  • The `reply_to_email` tool handler function. It sends a reply to the specified email using Microsoft Graph API. The @mcp.tool decorator also registers it as an MCP tool.
    @mcp.tool def reply_to_email(account_id: str, email_id: str, body: str) -> dict[str, str]: """Reply to an email (sender only)""" endpoint = f"/me/messages/{email_id}/reply" payload = {"message": {"body": {"contentType": "Text", "content": body}}} graph.request("POST", endpoint, account_id, json=payload) return {"status": "sent"}
  • The @mcp.tool decorator registers the reply_to_email function as an MCP tool.
    @mcp.tool

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/elyxlz/microsoft-mcp'

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