list_send_as
Retrieve all send-as aliases configured for your Gmail account to view alternative email addresses you can send from.
Instructions
Lists the send-as aliases for the specified 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_send_as"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:1171-1180 (registration)Tool registration via server.tool() - registers 'list_send_as' with no parameters, lists send-as aliases for the account
server.tool("list_send_as", "Lists the send-as aliases for the specified account", {}, async () => { return handleTool(config, async (gmail: gmail_v1.Gmail) => { const { data } = await gmail.users.settings.sendAs.list({ userId: 'me' }) return formatResponse(data) }) } ) - src/index.ts:1174-1179 (handler)Handler function - calls gmail.users.settings.sendAs.list({ userId: 'me' }) and returns formatted response
async () => { return handleTool(config, async (gmail: gmail_v1.Gmail) => { const { data } = await gmail.users.settings.sendAs.list({ userId: 'me' }) return formatResponse(data) }) } - src/index.ts:1173-1173 (schema)Empty schema object - no input parameters required for this tool
{},