Get Account Info
get_accountRetrieve LobsterMail account details such as tier level, usage limits, and statistics for managing email operations.
Instructions
Get account information including tier, limits, and usage stats.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:415-444 (handler)The `get_account` tool is registered and implemented in src/index.ts. It calls the `getAccount()` method on the LobsterMail client retrieved via `getClient()`.
server.registerTool('get_account', { title: 'Get Account Info', description: 'Get account information including tier, limits, and usage stats.', inputSchema: {}, }, async () => { const lm = await getClient(); const acct = await lm.getAccount(); return { content: [ { type: 'text' as const, text: [ `Account: ${acct.id}`, `Tier: ${acct.tier} (${acct.tierName})`, `Can send: ${acct.limits.canSend}`, `Max inboxes: ${acct.limits.maxInboxes ?? 'unlimited'}`, `Daily email limit: ${acct.limits.dailyEmailLimit}`, `Inboxes used: ${acct.usage.inboxCount}`, `Total emails received: ${acct.usage.totalEmailsReceived}`, `Created: ${acct.createdAt}`, ].join('\n'), }, ], }; }); // ── Start server ────────────────────────────────────────────────────────────── async function main() {