get_send_as
Retrieve a configured send-as email alias from your Gmail account to verify settings or use for sending messages.
Instructions
Gets the specified send-as alias
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sendAsEmail | Yes | The send-as alias to be retrieved |
Implementation Reference
- src/index.ts:1158-1169 (registration)Registers the 'get_send_as' MCP tool. Includes the input schema (sendAsEmail parameter), and the handler function which uses the shared handleTool helper to authenticate and call the Gmail API gmail.users.settings.sendAs.get to retrieve the specified send-as alias.server.tool("get_send_as", "Gets the specified send-as alias", { sendAsEmail: z.string().describe("The send-as alias to be retrieved") }, async (params) => { return handleTool(config, async (gmail: gmail_v1.Gmail) => { const { data } = await gmail.users.settings.sendAs.get({ userId: 'me', sendAsEmail: params.sendAsEmail }) return formatResponse(data) }) } )