Skip to main content
Glama

getInbox

Retrieve a specific inbox by ID using AgentMail’s API, enabling AI agents to access, manage, and interact with isolated email environments efficiently.

Instructions

Get inbox by ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inbox_idYes

Implementation Reference

  • Node.js handler function that implements the getInbox tool by calling client.inboxes.get with the inbox_id and any additional options.
    export async function getInbox(client: AgentMailClient, args: Args) { const { inbox_id, ...options } = args return client.inboxes.get(inbox_id, options) }
  • Python handler function that implements the get_inbox tool by calling client.inboxes.get with unpacked kwargs.
    def get_inbox(client: AgentMail, kwargs: Kwargs): return client.inboxes.get(**kwargs)
  • Node.js registration of the get_inbox tool in the tools array, linking schema and handler function.
    { name: 'get_inbox', description: 'Get inbox', params_schema: GetInboxParams, func: getInbox, },
  • Python registration of the get_inbox tool in the tools list, linking schema and handler function.
    Tool( name="get_inbox", description="Get inbox", params_schema=GetInboxParams, func=get_inbox, ),
  • Node.js Zod schema defining the input parameters for the get_inbox tool, requiring an inbox_id.
    export const GetInboxParams = z.object({ inbox_id: InboxIdSchema, })

Other Tools

Related Tools

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/agentmail-to/agentmail-toolkit'

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