read_email
Retrieve complete email content including body, headers, and attachments by specifying an email ID. This tool enables AI agents to access and process email data for verification and information extraction tasks.
Instructions
Read the full content of a specific email including body, headers, and attachments.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| email_id | Yes | The email ID to read |
Implementation Reference
- mcp-server/src/index.ts:110-120 (handler)The 'read_email' tool is registered and implemented directly in mcp-server/src/index.ts. It takes an email_id as input and fetches email data via a blipFetch request.
server.tool( "read_email", "Read the full content of a specific email including body, headers, and attachments.", { email_id: z.string().describe("The email ID to read"), }, async ({ email_id }) => { const result = await blipFetch(`/v1/emails/${email_id}`); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; } );