Skip to main content
Glama
Garoth

SendGrid MCP Server

by Garoth

list_suppression_groups

Retrieve all unsubscribe groups to manage email recipients who opt out of specific email categories in SendGrid.

Instructions

List all unsubscribe groups in your SendGrid account

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Tool handler for 'list_suppression_groups' that calls the service to fetch groups and returns them as JSON text.
    case 'list_suppression_groups': const groups = await service.getSuppressionGroups(); return { content: [{ type: 'text', text: JSON.stringify(groups, null, 2) }] };
  • Registration of the 'list_suppression_groups' tool in getToolDefinitions, including name, description, and empty input schema.
    { name: 'list_suppression_groups', description: 'List all unsubscribe groups in your SendGrid account', inputSchema: { type: 'object', properties: {}, required: [] } },
  • Service helper method getSuppressionGroups() that performs the API call to SendGrid's /v3/asm/groups endpoint to retrieve suppression groups.
    const [response] = await this.client.request({ method: 'GET', url: '/v3/asm/groups' }); return response.body; }
  • Input schema for the tool: empty object with no required properties.
    inputSchema: { type: 'object', properties: {}, required: [] }

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/Garoth/sendgrid-mcp'

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