list_smime_info
Retrieve S/MIME encryption configurations for a specific Gmail sender alias to verify secure email settings.
Instructions
Lists S/MIME configs 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 |
Implementation Reference
- src/index.ts:1262-1273 (registration)Registration of the list_smime_info tool in the MCP server, including description, input schema (sendAsEmail), and handler function that uses the Gmail API to list S/MIME configurations for the specified send-as email.server.tool("list_smime_info", "Lists S/MIME configs for the specified send-as alias", { sendAsEmail: z.string().describe("The email address that appears in the 'From:' header") }, async (params) => { return handleTool(config, async (gmail: gmail_v1.Gmail) => { const { data } = await gmail.users.settings.sendAs.smimeInfo.list({ userId: 'me', sendAsEmail: params.sendAsEmail }) return formatResponse(data) }) } )
- src/index.ts:1267-1272 (handler)The inline handler function executing the core logic: authenticates via handleTool, calls Gmail API gmail.users.settings.sendAs.smimeInfo.list, and formats the response.async (params) => { return handleTool(config, async (gmail: gmail_v1.Gmail) => { const { data } = await gmail.users.settings.sendAs.smimeInfo.list({ userId: 'me', sendAsEmail: params.sendAsEmail }) return formatResponse(data) }) }
- src/index.ts:1264-1266 (schema)Zod schema defining the input parameter sendAsEmail for the list_smime_info tool.{ sendAsEmail: z.string().describe("The email address that appears in the 'From:' header") },