SendLayer MCP by usefulapi
Send emails, check delivery events and manage webhooks in SendLayer.
사용해야 할까요
품질 및 안전성
도구 정의와 프로토콜 준수에 대한 자동 분석을 기반으로 합니다.
컨텍스트 비용
이는 서버의 도구가 모델의 컨텍스트에 로드될 때마다 소비되는 대략적인 토큰 수입니다. 수치가 높을수록 다른 작업에 사용할 수 있는 주의가 줄어듭니다.
설치
원클릭 설치
`claude_desktop_config.json` 파일에 다음을 추가하세요:
{
"mcpServers": {
"sendlayer": {
"url": "https://sendlayer.usefulapi.io/mcp"
}
}
}원격 엔드포인트
https://sendlayer.usefulapi.io/mcpstreamable-http할 수 있는 일
도구 목록
도구 (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.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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}.
입력 스키마
{
"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"
}커뮤니티
증거