Skip to main content
Glama

set_default_smime_info

Set the default S/MIME configuration for a specified email alias in Gmail to enhance secure email communication and ensure consistent encryption settings.

Instructions

Sets the default S/MIME config for the specified send-as alias

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe immutable ID for the S/MIME config
sendAsEmailYesThe email address that appears in the 'From:' header

Implementation Reference

  • src/index.ts:1289-1301 (registration)
    Registration of the 'set_default_smime_info' tool using McpServer.tool(), including inline schema and handler.
    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) }) } )
  • Zod input schema for the tool 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") },
  • Handler function that uses the shared handleTool wrapper to authenticate and call the Gmail API method users.settings.sendAs.smimeInfo.setDefault to set the default S/MIME configuration for the specified send-as alias.
    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) }) }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/shinzo-labs/gmail-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server