Skip to main content
Glama

list_identities

Retrieve available email addresses configured for sending messages from your Fastmail account.

Instructions

List sending identities (email addresses that can be used for sending)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • MCP tool handler for 'list_identities' that calls JmapClient.getIdentities() and returns JSON stringified result
    case 'list_identities': { const client = initializeClient(); const identities = await client.getIdentities(); return { content: [ { type: 'text', text: JSON.stringify(identities, null, 2), }, ], }; }
  • Tool schema registration in listTools response, with name, description, and empty input schema (no parameters required)
    { name: 'list_identities', description: 'List sending identities (email addresses that can be used for sending)', inputSchema: { type: 'object', properties: {}, }, },
  • JmapClient helper method implementing the core logic: sends JMAP Identity/get request to retrieve list of sending identities
    async getIdentities(): Promise<any[]> { const session = await this.getSession(); const request: JmapRequest = { using: ['urn:ietf:params:jmap:core', 'urn:ietf:params:jmap:submission'], methodCalls: [ ['Identity/get', { accountId: session.accountId }, 'identities'] ] }; const response = await this.makeRequest(request); return response.methodResponses[0][1].list; }

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/MadLlama25/fastmail-mcp'

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