get_profile
Retrieve the authenticated user's Gmail profile to access account information, including email and personal details.
Instructions
Get the current user's Gmail profile
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:1303-1312 (registration)Registration of the 'get_profile' tool with its schema (no params) and handler that calls gmail.users.getProfile
server.tool("get_profile", "Get the current user's Gmail profile", {}, async () => { return handleTool(config, async (gmail: gmail_v1.Gmail) => { const { data } = await gmail.users.getProfile({ userId: 'me' }) return formatResponse(data) }) } )