SendLayer MCP by usefulapi

Send emails, check delivery events and manage webhooks in SendLayer.

我該用這個嗎

品質與安全性

A
說明品質
100%
結構描述完整度
84%
命名品質
100%
汙染風險
100%
權限相符程度
100%
協定合規性
100%

根據工具定義與協定合規性的自動化分析。

上下文成本

~1,559Token(工具定義)
~2.8 KB典型回應大小
中等的注意力影響(128k 上下文的 1.22%)

這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。

安裝

一鍵安裝

將以下內容加入你的 `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"
}

社群

為此伺服器評分

證據

近期觀測

已驗證未記錄版本5 個工具