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
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | Yes | ||
| body | Yes | ||
| email_id | Yes |
Implementation Reference
- src/microsoft_mcp/tools.py:456-462 (handler)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"}
- src/microsoft_mcp/tools.py:456-456 (registration)The @mcp.tool decorator registers the reply_to_email function as an MCP tool.@mcp.tool