list_available_accounts
Retrieve all configured email accounts with masked credentials to manage email services and automate workflows.
Instructions
List all configured email accounts with masked credentials.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- mcp_email_server/app.py:29-33 (handler)The handler function for the 'list_available_accounts' tool. It is decorated with @mcp.tool, which also serves as the registration. It retrieves the settings and returns a list of masked AccountAttributes for all configured email accounts.@mcp.tool(description="List all configured email accounts with masked credentials.") async def list_available_accounts() -> list[AccountAttributes]: settings = get_settings() return [account.masked() for account in settings.get_accounts()]