get_imap
Retrieve Gmail IMAP settings to configure email clients. Access IMAP server details for email synchronization.
Instructions
Gets IMAP 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_imap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:842-851 (handler)The 'get_imap' tool registration and handler. It's a tool that gets IMAP settings by calling gmail.users.settings.getImap(). No parameters are required. The handler wraps the call in handleTool() with formatResponse().
server.tool("get_imap", "Gets IMAP settings", {}, async () => { return handleTool(config, async (gmail: gmail_v1.Gmail) => { const { data } = await gmail.users.settings.getImap({ userId: 'me' }) return formatResponse(data) }) } ) - src/index.ts:842-843 (registration)Registration of the 'get_imap' tool via server.tool() with name 'get_imap' and description 'Gets IMAP settings'. No schema parameters defined (empty object {}).
server.tool("get_imap", "Gets IMAP settings",