get_send_as
Retrieve a specific send-as alias from your Gmail account. Requires the alias email address.
Instructions
Gets the specified send-as alias
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sendAsEmail": "<sendAsEmail>"
},
"name": "get_send_as"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sendAsEmail | Yes | The send-as alias to be retrieved |
Implementation Reference
- src/index.ts:1158-1169 (registration)Registration of the 'get_send_as' tool via server.tool(), including its schema (sendAsEmail parameter) and the handler that calls gmail.users.settings.sendAs.get()
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) }) } )