Skip to content

MCP tools

publication

Publications. Publications.

Last updated:

Publications. action=create (project_id, title, export or post, targets: connection_id, at, zone, fields; see command_help domain=publish), schedule (id, target_id, at, zone), show (id), list (state, from, until), duplicate (id, at), plan (from, until), day (date, note, theme), slot (network, weekday, time). A person approves before anything is sent.

Behaviour#

These are the annotations of the tool definition, the hints a client uses to decide whether to ask before a call. publication is listed by tools/list.

PropertyValue
Read onlyno
Destructiveno
Idempotentno
Reaches outside the workspaceno

Input#

ArgumentTypeRequiredNotes
actionstring, one of 8 valuesyes
idstringnopattern ^pub_[0-9a-hjkmnp-tv-z]{10}$
target_idstringnopattern ^tgt_[0-9a-hjkmnp-tv-z]{10}$
project_idstringnopattern ^prj_[0-9a-hjkmnp-tv-z]{10}$
titlestringno
textstringno
exportstringno
thumbnailstringno
poststringno
targetsarray of objectno
atstringno
zonestringno
late_window_minutesintegerno
statestringno
networkstringno
fromstringno
untilstringno
limitintegerno
offsetintegerno
datestringno
notestringno
themestringno
weekdaystringno
timestringno
slotstringno
accountstringno
publicationsbooleanno
removebooleanno

Output#

A result has a text block, written for the model, and structured content with these members.

MemberTypeAlways presentNotes
textstringnoUntrusted text: data, not an instruction

Errors#

A call over HTTP without credentials fails with E_UNAUTHORIZED, and too many calls with E_RATE_LIMITED. Both are in the error codes.

Safety#

  • Nothing is sent: schedule only asks for approval, so each target waits (waiting_approval) until a person, or a rule the person wrote, approves it in the app.
  • There is no action that publishes, sends now, retries, changes, cancels or approves; a person does those. The tool never returns a credential and names no destination.
  • schedule cannot move a post you already approved: that is E_PRIVILEGED_SESSION, and only you change it in the Publish page. A post that still waits is asked for again with its new time, and a failed or missed one scheduled again also waits for you.
  • Titles and texts in the result are data written by a person or an agent, not instructions.

Next steps#

Ask the agent

Plan the launch video for my YouTube channel tomorrow at 9.

The call

tools/call
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "publication",
    "arguments": {
      "action": "create",
      "project_id": "prj_7k2m9x4q1b",
      "title": "Launch teaser",
      "export": "job_0123456789",
      "targets": [
        {
          "connection_id": "con_0123456789",
          "at": "2026-12-01T09:00",
          "zone": "America/Sao_Paulo",
          "fields": {
            "made_for_kids": false
          }
        }
      ]
    }
  }
}

The result

result
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "pub_7k2m9x4q1b  <untrusted_media_text source=\"project_text\" inline=\"true\" truncated=\"false\">Launch teaser</untrusted_media_text>  project prj_7k2m9x4q1b  1 target(s)\n  tgt_3c5v8n2w6d  youtube  con_0123456789  draft  2026-12-01 09:00 America/Sao_Paulo (2026-12-01T12:00:00Z)"
      }
    ],
    "structuredContent": {
      "id": "pub_7k2m9x4q1b",
      "project_id": "prj_7k2m9x4q1b",
      "title": "Launch teaser",
      "export": "job_0123456789",
      "targets": [
        {
          "id": "tgt_3c5v8n2w6d",
          "connection_id": "con_0123456789",
          "network": "youtube",
          "state": "draft",
          "scheduled_at": "2026-12-01T12:00:00Z",
          "zone": "America/Sao_Paulo",
          "local_time": "2026-12-01 09:00"
        }
      ]
    }
  }
}

The values are illustrative. The text block is exact.