list_delegates
List delegates assigned to a Gmail account to view and manage email access permissions.
Instructions
Lists the delegates for the specified account
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": "list_delegates"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:1001-1010 (registration)Registration of the list_delegates tool using server.tool() with name 'list_delegates'
server.tool("list_delegates", "Lists the delegates for the specified account", {}, async () => { return handleTool(config, async (gmail: gmail_v1.Gmail) => { const { data } = await gmail.users.settings.delegates.list({ userId: 'me' }) return formatResponse(data) }) } ) - src/index.ts:1004-1010 (handler)Handler function for list_delegates - calls gmail.users.settings.delegates.list API
async () => { return handleTool(config, async (gmail: gmail_v1.Gmail) => { const { data } = await gmail.users.settings.delegates.list({ userId: 'me' }) return formatResponse(data) }) } ) - src/index.ts:1003-1003 (schema)Schema definition for list_delegates - no input parameters required (empty object)
{},