get_auto_forwarding
Retrieve your Gmail auto-forwarding configuration to see the forwarding address and its status.
Instructions
Gets auto-forwarding settings
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:831-840 (registration)Registration of the 'get_auto_forwarding' tool on the MCP server using server.tool() with name 'get_auto_forwarding' and description 'Gets auto-forwarding settings'. No input parameters required (empty schema).
server.tool("get_auto_forwarding", "Gets auto-forwarding settings", {}, async () => { return handleTool(config, async (gmail: gmail_v1.Gmail) => { const { data } = await gmail.users.settings.getAutoForwarding({ userId: 'me' }) return formatResponse(data) }) } ) - src/index.ts:834-840 (handler)Handler function that executes the tool logic. Calls gmail.users.settings.getAutoForwarding({ userId: 'me' }) via the Gmail API to retrieve auto-forwarding settings, and returns the formatted response.
async () => { return handleTool(config, async (gmail: gmail_v1.Gmail) => { const { data } = await gmail.users.settings.getAutoForwarding({ userId: 'me' }) return formatResponse(data) }) } ) - src/index.ts:833-833 (schema)Input schema for get_auto_forwarding - empty object ({}) since the tool takes no parameters.
{},