get_delegate
Retrieve details of a Gmail delegate by providing their email address.
Instructions
Gets the specified delegate
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"delegateEmail": "<delegateEmail>"
},
"name": "get_delegate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| delegateEmail | Yes | The email address of the delegate to retrieve |
Implementation Reference
- src/index.ts:988-999 (registration)Registration of the 'get_delegate' tool using server.tool().
server.tool("get_delegate", "Gets the specified delegate", { delegateEmail: z.string().describe("The email address of the delegate to retrieve") }, async (params) => { return handleTool(config, async (gmail: gmail_v1.Gmail) => { const { data } = await gmail.users.settings.delegates.get({ userId: 'me', delegateEmail: params.delegateEmail }) return formatResponse(data) }) } ) - src/index.ts:993-998 (handler)Handler function for the 'get_delegate' tool. Calls Gmail API's delegates.get with the provided delegateEmail and wraps the response using formatResponse.
async (params) => { return handleTool(config, async (gmail: gmail_v1.Gmail) => { const { data } = await gmail.users.settings.delegates.get({ userId: 'me', delegateEmail: params.delegateEmail }) return formatResponse(data) }) } - src/index.ts:990-992 (schema)Input schema definition for the 'get_delegate' tool. Expects a single 'delegateEmail' string parameter.
{ delegateEmail: z.string().describe("The email address of the delegate to retrieve") },