SendLayer MCP by usefulapi
Send emails, check delivery events and manage webhooks in SendLayer.
Sollte ich dies verwenden
Qualität und Sicherheit
Basierend auf einer automatisierten Analyse der Tool-Definitionen und der Einhaltung des Protokolls.
Kontextkosten
Dies ist die ungefähre Anzahl der Tokens, die jedes Mal verbraucht werden, wenn die Tools des Servers in den Kontext eines Modells geladen werden. Höhere Werte verringern die Aufmerksamkeit, die für andere Aufgaben verfügbar ist.
Installieren
Installation mit einem Klick
Fügen Sie dies Ihrer Datei `claude_desktop_config.json` hinzu:
{
"mcpServers": {
"sendlayer": {
"url": "https://sendlayer.usefulapi.io/mcp"
}
}
}Remote-Endpunkte
https://sendlayer.usefulapi.io/mcpstreamable-httpWas es kann
Tool-Inventar
Tools (5)
🟢sendlayer_get_events(start_date, end_date, event, message_id, start_from, ...)
Get the delivery events of your emails: accepted, rejected, failed, delivered, opened, clicked, unsubscribed, complained. Filter by time window, event type, or one email's MessageID. Pages with start_from and retrieve_count. Uses GET /events.
Eingabe-Schema
{
"type": "object",
"properties": {
"start_date": {
"description": "Start of the window, Unix timestamp in seconds.",
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"end_date": {
"description": "End of the window, Unix timestamp in seconds.",
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"event": {
"description": "Only this event type.",
"type": "string",
"enum": [
"accepted",
"rejected",
"failed",
"delivered",
"opened",
"clicked",
"unsubscribed",
"complained"
]
},
"message_id": {
"description": "Only events of this email (MessageID from sendlayer_send_email).",
"type": "string"
},
"start_from": {
"description": "Offset of the first record (default 0).",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"retrieve_count": {
"description": "How many records to return (API default if omitted).",
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢sendlayer_list_webhooks
List the webhooks of your sender domain: id, event type, target URL, status, and the last response code. Uses GET /webhooks.
Eingabe-Schema
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴sendlayer_send_email(from, to, cc, bcc, reply_to, ...)
Send a real email now: SendLayer accepts it at once and cannot recall it. The From address must use your verified sender domain. Give html_content, plain_content, or both (both is recommended). Limits: 10 To, 10 CC, 5 BCC recipients. This server accepts at most 4 MiB per request, base64 attachments included. Only send to people who consented to receive it. Uses POST /email and returns the MessageID; check delivery with sendlayer_get_events.
Eingabe-Schema
{
"type": "object",
"properties": {
"from": {
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"description": "Display name (required by the API)."
},
"email": {
"type": "string",
"minLength": 3,
"description": "Email address. The From address must use your verified sender domain."
}
},
"required": [
"name",
"email"
]
},
"to": {
"minItems": 1,
"maxItems": 10,
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"description": "Display name (required by the API)."
},
"email": {
"type": "string",
"minLength": 3,
"description": "Email address. The From address must use your verified sender domain."
}
},
"required": [
"name",
"email"
]
},
"description": "1 to 10 recipients."
},
"cc": {
"description": "Up to 10 CC recipients.",
"maxItems": 10,
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"description": "Display name (required by the API)."
},
"email": {
"type": "string",
"minLength": 3,
"description": "Email address. The From address must use your verified sender domain."
}
},
"required": [
"name",
"email"
]
}
},
"bcc": {
"description": "Up to 5 BCC recipients.",
"maxItems": 5,
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"description": "Display name (required by the API)."
},
"email": {
"type": "string",
"minLength": 3,
"description": "Email address. The From address must use your verified sender domain."
}
},
"required": [
"name",
"email"
]
}
},
"reply_to": {
"description": "Reply-To addresses.",
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"description": "Display name (required by the API)."
},
"email": {
"type": "string",
"minLength": 3,
"description": "Email address. The From address must use your verified sender domain."
}
},
"required": [
"name",
"email"
]
}
},
"subject": {
"type": "string",
"minLength": 1,
"description": "Subject line."
},
"html_content": {
"description": "HTML body. Give this, plain_content, or both.",
"type": "string"
},
"plain_content": {
"description": "Plain-text body. Give this, html_content, or both.",
"type": "string"
},
"tags": {
"description": "Tags sent with the email.",
"type": "array",
"items": {
"type": "string"
}
},
"headers": {
"description": "Extra message headers, for example X-Mailer.",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string"
}
},
"attachments": {
"description": "Attachments; the whole request must stay under 4 MiB (base64 adds about 33%).",
"type": "array",
"items": {
"type": "object",
"properties": {
"content": {
"type": "string",
"minLength": 1,
"description": "Base64-encoded file content."
},
"type": {
"type": "string",
"minLength": 1,
"description": "MIME type, for example application/pdf."
},
"filename": {
"type": "string",
"minLength": 1,
"description": "File name shown to the recipient."
},
"disposition": {
"description": "Default attachment.",
"type": "string",
"enum": [
"attachment",
"inline"
]
},
"content_id": {
"description": "Content-ID for inline images.",
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
},
"required": [
"content",
"type",
"filename"
]
}
}
},
"required": [
"from",
"to",
"subject"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴sendlayer_create_webhook(event, webhook_url)
Create a webhook that SendLayer calls for one event type: bounce, click, open, unsubscribe, complaint, or delivery. Each call adds a new webhook, so do not repeat it. Uses POST /webhooks and returns the new webhook id.
Eingabe-Schema
{
"type": "object",
"properties": {
"event": {
"type": "string",
"enum": [
"bounce",
"click",
"open",
"unsubscribe",
"complaint",
"delivery"
],
"description": "Event type that triggers the webhook."
},
"webhook_url": {
"type": "string",
"minLength": 1,
"description": "URL that receives the webhook calls (use https)."
}
},
"required": [
"event",
"webhook_url"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴sendlayer_delete_webhook(webhook_id)
Delete one webhook by its id (from sendlayer_list_webhooks). The webhook stops receiving events at once. Uses DELETE /webhooks/{id}.
Eingabe-Schema
{
"type": "object",
"properties": {
"webhook_id": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "The webhook id (WebhookID from sendlayer_list_webhooks)."
}
},
"required": [
"webhook_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}Community
Nachweis