Skip to main content
Glama

createInbox

Generate secure, isolated inboxes for AI agents to send, receive, and manage messages efficiently within the AgentMail system. Customize with display name, domain, and username.

Instructions

Create a new inbox

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
display_nameNo
domainNo
usernameNo

Implementation Reference

  • Node.js handler function for the createInbox tool. It creates a new inbox by calling the AgentMailClient's inboxes.create method with the provided arguments.
    export async function createInbox(client: AgentMailClient, args: Args) { return client.inboxes.create(args) }
  • Python handler function for the create_inbox tool. It creates a new inbox by calling the AgentMail client's inboxes.create method with unpacked keyword arguments.
    def create_inbox(client: AgentMail, kwargs: Kwargs): return client.inboxes.create(**kwargs)
  • Zod schema defining input parameters for createInbox tool: optional username, domain, and display_name.
    export const CreateInboxParams = z.object({ username: z.string().optional().describe('Username'), domain: z.string().optional().describe('Domain'), display_name: z.string().optional().describe('Display name'), })
  • Pydantic schema defining input parameters for create_inbox tool: optional username, domain, and display_name.
    class CreateInboxParams(BaseModel): username: Optional[str] = Field(description="Username") domain: Optional[str] = Field(description="Domain") display_name: Optional[str] = Field(description="Display name")
  • Registration of the create_inbox tool in the Node.js tools array, linking schema and handler function.
    { name: 'create_inbox', description: 'Create inbox', params_schema: CreateInboxParams, func: createInbox, },

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