Preview a segment definition
segments_previewReturns subscriber counts for an unsaved segment definition. Include current_segment_id when previewing edits to an existing segment so circular segment references are rejected before saving. Permission: segments:read. API reference: https://mailrith.com/developers/api-reference.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"body": "<body>"
},
"name": "segments_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | The exact JSON request body defined by the Mailrith public API contract. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| response | No | ||
| request_id | Yes | The stable correlation ID for this MCP tool invocation. | |
| operation_id | Yes | The stable Mailrith public API operation ID. |