set_default_smime_info
Configure default S/MIME encryption settings for a specific sender identity to automatically secure outgoing emails with digital signatures and encryption.
Instructions
Sets the default S/MIME config for the specified send-as alias
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sendAsEmail | Yes | The email address that appears in the 'From:' header | |
| id | Yes | The immutable ID for the S/MIME config |
Implementation Reference
- src/index.ts:1262-1267 (handler)The handler function that executes the set_default_smime_info tool logic by calling the Gmail API's setDefault method on smimeInfo via the shared handleTool wrapper.async (params) => { return handleTool(config, async (gmail: gmail_v1.Gmail) => { const { data } = await gmail.users.settings.sendAs.smimeInfo.setDefault({ userId: 'me', sendAsEmail: params.sendAsEmail, id: params.id }) return formatResponse(data) }) }
- src/index.ts:1258-1261 (schema)Zod input schema for the tool defining parameters sendAsEmail (string) and id (string).{ sendAsEmail: z.string().describe("The email address that appears in the 'From:' header"), id: z.string().describe("The immutable ID for the S/MIME config") },
- src/index.ts:1256-1268 (registration)Registration of the set_default_smime_info tool using server.tool, including description, input schema, and handler function.server.tool("set_default_smime_info", "Sets the default S/MIME config for the specified send-as alias", { sendAsEmail: z.string().describe("The email address that appears in the 'From:' header"), id: z.string().describe("The immutable ID for the S/MIME config") }, async (params) => { return handleTool(config, async (gmail: gmail_v1.Gmail) => { const { data } = await gmail.users.settings.sendAs.smimeInfo.setDefault({ userId: 'me', sendAsEmail: params.sendAsEmail, id: params.id }) return formatResponse(data) }) } )