get_pop
Retrieve your Gmail POP settings to allow email forwarding to other clients. Get current POP configuration for your Gmail account.
Instructions
Gets POP settings
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": "get_pop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:864-873 (registration)Tool 'get_pop' is registered via server.tool() with name 'get_pop', description 'Gets POP settings', no input params, and a handler that calls gmail.users.settings.getPop.
server.tool("get_pop", "Gets POP settings", {}, async () => { return handleTool(config, async (gmail: gmail_v1.Gmail) => { const { data } = await gmail.users.settings.getPop({ userId: 'me' }) return formatResponse(data) }) } ) - src/index.ts:867-872 (handler)The handler function for 'get_pop' calls handleTool with config and an async callback that invokes gmail.users.settings.getPop({ userId: 'me' }) and returns the formatted response.
async () => { return handleTool(config, async (gmail: gmail_v1.Gmail) => { const { data } = await gmail.users.settings.getPop({ userId: 'me' }) return formatResponse(data) }) }