Skip to content

send_broadcast

Draft a marketing email, or send it with the owner’s yes.

Authentication required

Endpoint

endpoint
https://business.sessions.website/@<handle>/api/mcp

When to use it

  • To draft an email for the owner to review on the Broadcasts page (the default).

  • To send it to a segment, only after the owner saw the subject and body and said to.

Parameters

idstringoptional

A draft made earlier, to send. Pass "segment" too when the draft was saved without one.

namestringoptional

Internal name, e.g. "Spring launch".

subjectstringoptional

previewTextstringoptional

The inbox preview line.

bodystringoptional

The email body (Markdown).

segmentstringoptional

Segment id (create_segment). Needed to send; a draft can be saved without one.

sendbooleanoptional

Send now instead of saving a draft.

ownerConfirmedbooleanoptional

True only when the owner said, in this conversation, to do exactly this. Refused otherwise.

Returns

The draft or sent broadcast with its id and status.

Example

POST this to the endpoint above.

JSON-RPC
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "send_broadcast",
    "arguments": {
      "name": "Spring launch",
      "subject": "New classes this spring",
      "body": "Hot Flow is back on Tuesdays."
    }
  }
}
content
Saved draft "Spring launch" [<id>]. The owner can review it on the Broadcasts page.

What the agent is told

The description the model reads when deciding whether to call this. It is the only thing that decides whether the tool fires at the right moment, so it is worth knowing what it says.

send_broadcast
Write a marketing email to a segment. Without send it is saved as a draft the owner can review on the Broadcasts page. With send: true, or the id of a draft, it goes out now, which needs a segment (a create_segment with no conditions is every subscriber) and ownerConfirmed: the owner saw the subject and body and said to send it.

See also