MCP 服务器
send_review_requests
向用户指定的客户发送评价请求邮件,可立即发送或定时发送。仅在用户明确要求并确认收件人后使用。
9 分钟阅读更新于
功能说明
向用户指定的客户发送评价请求邮件,可立即发送或定时发送。仅在用户明确要求并确认收件人后使用。
- 每次调用 1–10 位收件人。
- Repliq 与应用内一样应用退订、30 天内不重复发送和套餐每月额度;被跳过的客户会在结果中说明。
scheduled_for必须在当前时间起 10 分钟到 14 天之间。locale为es(默认)、en或zh。- 占用每小时发送预算。
权限与限制
| 属性 | 值 |
|---|---|
| 权限 | repliq:requests |
| 类型 | 公开影响 |
| 每小时预算 | 每个连接每小时 10 次请求发送 |
| 套餐配额 | 无 |
| 行为提示 | 写入数据 · 非幂等 · 会触及 Repliq 之外(Google 或邮件) |
参数
location_id必填 · string (uuid)- A location id from list_locations.
recipients必填 · array of object 1–10- Each item:
email(string (email, 0–254 chars), required);name(string (0–80 chars)). locale可选 · "es" | "en" | "zh"- Language of the email (default es).
scheduled_for可选 · string (date-time)- Send later: an ISO 8601 date-time between 10 minutes and 14 days from now.
示例
一次完整调用,分别给出原始 JSON-RPC 请求和官方 MCP SDK 的写法。把 REPLIQ_TOKEN 换成访问令牌或个人令牌(参见认证),并把 id 换成你自己通过 list_locations 得到的值。
curl -sS https://repliqds.com/api/mcp \
-H "Authorization: Bearer $REPLIQ_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"send_review_requests","arguments":{"location_id":"3f1c2a9e-5b7d-4c1e-9a3b-2d6f8e0a1b4c","recipients":[{"email":"customer@example.com","name":"Maria"}],"locale":"en","scheduled_for":"2026-12-01T10:00:00Z"}}}'import { Client } from "@modelcontextprotocol/sdk/client/index.js";
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js";
const client = new Client({ name: "my-script", version: "1.0.0" });
await client.connect(new StreamableHTTPClientTransport(new URL("https://repliqds.com/api/mcp"), {
requestInit: { headers: { Authorization: `Bearer ${process.env.REPLIQ_TOKEN}` } },
}));
const result = await client.callTool({
name: "send_review_requests",
arguments: {
"location_id": "3f1c2a9e-5b7d-4c1e-9a3b-2d6f8e0a1b4c",
"recipients": [
{
"email": "customer@example.com",
"name": "Maria"
}
],
"locale": "en",
"scheduled_for": "2026-12-01T10:00:00Z"
},
});
console.log(result.structuredContent);本示例的参数已在 Repliq 自己的测试中按该工具的输入模式校验通过。
响应
调用成功时会返回两份相同的 JSON:一份在 structuredContent 中,另一份序列化在文本块中。其顶层字段为:
locationsentfailedskippedlimitremainingreminderScheduledscheduled
错误
调用失败时返回 isError: true,文本为 JSON:{ "error": 错误码, "message": … }。除了不符合输入模式的参数(会在工具运行前被拒绝)外,该工具可能返回:
| 错误码 | 含义 | 处理方法 |
|---|---|---|
INSUFFICIENT_SCOPE | 该连接没有被授予此工具所需的权限。 | 重新连接 Repliq 并勾选该权限,或创建包含该权限的个人令牌。 |
LOCATION_NOT_FOUND | 该连接看不到具有此 id 的地点。 | 调用 list_locations,使用其返回的 id。 |
LOCATION_WITHOUT_WORKSPACE | 该地点尚未加入任何工作区。 | 在 Repliq 应用中打开一次该地点后重试。 |
INVALID_ARGUMENTS | 参数组合无效(例如同时传入 topic 和 review_id,或收件人过多)。 | 按工具的参数表传参。 |
RATE_LIMITED | 该连接已用完某项每小时预算(发布、AI 使用、资料修改、发送或查询)。 | 稍后重试。本次未执行任何操作。 |
REVIEW_REQUEST_QUOTA_EXCEEDED | 套餐每月的评价请求额度已用完。 | 等待下个月,或升级到额度更高的套餐。 |
TEMPORARILY_UNAVAILABLE | Repliq 暂时无法完成请求,或无法检查每小时预算(此时会安全失败,不执行任何操作)。 | 稍后重试。 |
服务器发布的描述
Emails a review request to customers the user names (1–10 per call), now or scheduled. Opt-outs, recent duplicates and the plan's monthly allowance are applied by Repliq. Only when the user explicitly asks, after confirming the recipients. Needs the requests permission.
相关工具
相关文档
这个页面对你有帮助吗?
没有找到需要的内容?
查看常见问题,或给我们写信,我们会帮助你。
常见问题