Skip to main content
Glama

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
NameRequiredDescriptionDefault
email_idYesThe email ID to read

Implementation Reference

  • 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) }] };
      }
    );

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/blipemail/blip'

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