list_email_addresses
Get a list of every email address provisioned on your account.
Instructions
List all email addresses currently provisioned on this account.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_email_addresses"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- agentline_mcp/server.py:281-288 (handler)The `list_email_addresses` function is the MCP tool handler. It is decorated with @mcp.tool(), calls the Agentline SDK client's `list_email_addresses()` method, and returns a dict with the list of addresses as dataclass-asdict results, wrapped in an 'addresses' key. Errors are caught and returned as dicts with 'error' and 'status_code'.
@mcp.tool() def list_email_addresses() -> dict: """List all email addresses currently provisioned on this account.""" try: addrs = _client_or_init().list_email_addresses() return {"addresses": [asdict(a) for a in addrs]} except AgentlineError as e: return {"error": str(e), "status_code": e.status_code} - agentline_mcp/server.py:281-282 (registration)The tool is registered with MCP via the @mcp.tool() decorator on line 281, where `mcp` is a FastMCP instance created on line 47 of the same file.
@mcp.tool() def list_email_addresses() -> dict: