Skip to main content
Glama

extract_codes

Extract OTP codes and verification links from the most recent email in a disposable inbox to complete signup and verification processes.

Instructions

Extract OTP codes and verification links from the most recent email in an inbox. Use this after creating an inbox and receiving a verification/signup email.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inbox_idYesThe inbox ID to extract codes from (uses most recent email)

Implementation Reference

  • Handler implementation for extract_codes tool that calls the blipFetch API.
    async ({ inbox_id }) => {
      const result = await blipFetch(`/v1/inboxes/${inbox_id}/extract`);
      return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
    }
  • Tool registration for extract_codes.
    server.tool(
      "extract_codes",
      "Extract OTP codes and verification links from the most recent email in an inbox. Use this after creating an inbox and receiving a verification/signup email.",
      {
        inbox_id: z
          .string()
          .describe("The inbox ID to extract codes from (uses most recent email)"),
      },
      async ({ inbox_id }) => {
        const result = await blipFetch(`/v1/inboxes/${inbox_id}/extract`);
        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