Skip to main content
Glama

Omnisend MCP Server

index.ts2.19 kB
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; export const registerEventsResource = (server: McpServer) => { server.resource( 'Event schema', 'event://schema', { type: 'Event schema', description: 'Represents a customer event in Omnisend.', fields: { eventID: { type: 'string', description: 'Unique identifier of the event' }, eventName: { type: 'string', description: 'Name of the event (e.g., "placed order", "viewed product")' }, email: { type: 'string', description: 'Email address of the contact who triggered the event' }, phone: { type: 'string', description: 'Phone number of the contact who triggered the event' }, contactID: { type: 'string', description: 'ID of the contact who triggered the event' }, contact: { type: 'object', description: 'Contact information' }, properties: { type: 'object', description: 'Additional event properties' }, createdAt: { type: 'string', description: 'Date when the event occurred' } } }, async (uri) => { const schema = { type: 'Event schema', description: 'Represents a customer event in Omnisend.', fields: { eventID: { type: 'string', description: 'Unique identifier of the event' }, eventName: { type: 'string', description: 'Name of the event (e.g., "placed order", "viewed product")' }, email: { type: 'string', description: 'Email address of the contact who triggered the event' }, phone: { type: 'string', description: 'Phone number of the contact who triggered the event' }, contactID: { type: 'string', description: 'ID of the contact who triggered the event' }, contact: { type: 'object', description: 'Contact information' }, properties: { type: 'object', description: 'Additional event properties' }, createdAt: { type: 'string', description: 'Date when the event occurred' } } }; return { contents: [{ uri: uri.href, mimeType: 'application/json', text: JSON.stringify(schema, null, 2) }] }; } ); };

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/plutzilla/omnisend-mcp'

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