MCP Tools
Content

publish_content

Check publish status, publish or refresh a document to a connected app destination (e.g. Google Docs), update all linked copies, or link an existing external copy.

Parameters

NameTypeRequiredDefaultDescription
team_idintegerYes—Team id to act in (from initialize instructions or get_current_user_info). Required on external MCP; optional in bound sessions.
content_idstring (uuid)Yes—UUID of the content document to check or publish. Get from list_content, get_content, get_project, or get_generation_status.
modestringYes—Operation to perform: "status" (list destinations, copies, and privacy state), "publish" (publish/update one destination by workflow_id), "update_everywhere" (update all linked copies), or "link" (link an existing external URL or copy ID).
workflow_idstring (uuid)No—Destination workflow UUID (from mode "status"). Required for mode "publish" and mode "link"; omit for "status" and "update_everywhere".
confirm_private_documentbooleanNo—Set true only after the document owner explicitly confirms publishing a private document to a team destination (after private_document_needs_confirmation or when status shows is_private and is_owner true). Never retry private_document_owner_required.
decisionstringNo—For mode "publish" after status "needs_decision" (outside_edit): "skip" leaves external edits untouched; "replace" overwrites them with the current Marcora document.
new_copybooleanNo—For mode "publish" after status "blocked" (already_sent or created_unlinked): set true only if the user explicitly wants to create a brand-new external copy while keeping the old link as history.
referencestringNo—For mode "link" only: the existing external copy's HTTPS URL or copy ID to link to this document (destination confirmer only).

Input Schema

{
  "type": "object",
  "required": [
    "team_id",
    "content_id",
    "mode"
  ],
  "properties": {
    "mode": {
      "enum": [
        "status",
        "publish",
        "update_everywhere",
        "link"
      ],
      "type": "string",
      "description": "Operation to perform: \"status\" (list destinations, copies, and privacy state), \"publish\" (publish/update one destination by workflow_id), \"update_everywhere\" (update all linked copies), or \"link\" (link an existing external URL or copy ID)."
    },
    "team_id": {
      "type": "integer",
      "minimum": 1,
      "description": "Team id to act in (from initialize instructions or get_current_user_info). Required on external MCP; optional in bound sessions."
    },
    "decision": {
      "enum": [
        "skip",
        "replace"
      ],
      "type": "string",
      "description": "For mode \"publish\" after status \"needs_decision\" (outside_edit): \"skip\" leaves external edits untouched; \"replace\" overwrites them with the current Marcora document."
    },
    "new_copy": {
      "type": "boolean",
      "description": "For mode \"publish\" after status \"blocked\" (already_sent or created_unlinked): set true only if the user explicitly wants to create a brand-new external copy while keeping the old link as history."
    },
    "reference": {
      "type": "string",
      "description": "For mode \"link\" only: the existing external copy's HTTPS URL or copy ID to link to this document (destination confirmer only)."
    },
    "content_id": {
      "type": "string",
      "format": "uuid",
      "description": "UUID of the content document to check or publish. Get from list_content, get_content, get_project, or get_generation_status."
    },
    "workflow_id": {
      "type": "string",
      "format": "uuid",
      "description": "Destination workflow UUID (from mode \"status\"). Required for mode \"publish\" and mode \"link\"; omit for \"status\" and \"update_everywhere\"."
    },
    "confirm_private_document": {
      "type": "boolean",
      "description": "Set true only after the document owner explicitly confirms publishing a private document to a team destination (after private_document_needs_confirmation or when status shows is_private and is_owner true). Never retry private_document_owner_required."
    }
  }
}

Output Schema

{
  "type": "object",
  "required": [
    "mode",
    "content_id"
  ],
  "properties": {
    "run": {
      "type": "object",
      "description": "Started workflow run summary when status is started."
    },
    "mode": {
      "enum": [
        "status",
        "publish",
        "update_everywhere",
        "link"
      ],
      "type": "string",
      "description": "Operation that ran."
    },
    "team": {
      "type": "object",
      "required": [
        "id",
        "name"
      ],
      "properties": {
        "id": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        }
      },
      "description": "Team this action applied to."
    },
    "offer": {
      "type": "string",
      "description": "Suggested follow-up when status is blocked (new_copy or link_existing)."
    },
    "failed": {
      "type": "array",
      "description": "Update-everywhere mode: destinations that refused or failed, with optional machine reason."
    },
    "reason": {
      "type": "string",
      "description": "Machine reason when status is needs_decision (outside_edit) or blocked (already_sent, created_unlinked, publish_unrecorded)."
    },
    "status": {
      "type": "string",
      "description": "Outcome status for publish/link modes (started, needs_decision, blocked, skipped, or linked)."
    },
    "choices": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Available choices when status is needs_decision."
    },
    "message": {
      "type": "string",
      "description": "Human-readable status or block explanation."
    },
    "results": {
      "type": "array",
      "description": "Update-everywhere mode: per-destination publish outcomes."
    },
    "is_owner": {
      "type": "boolean",
      "description": "Status mode: whether the caller owns the document and may confirm private publishing."
    },
    "link_url": {
      "type": "string",
      "description": "Direct URL to open the document in Marcora."
    },
    "next_step": {
      "type": "string",
      "description": "Actionable next step for the caller."
    },
    "setup_url": {
      "type": "string",
      "description": "Marcora URL to set up publish destinations (this document's Publish panel when known)."
    },
    "content_id": {
      "type": "string",
      "format": "uuid",
      "description": "Document UUID."
    },
    "is_private": {
      "type": "boolean",
      "description": "Status mode: whether the document is private."
    },
    "setup_note": {
      "type": "string",
      "description": "Reminder that publish destinations can only be set up from a document's Publish panel in the Marcora app."
    },
    "workflow_id": {
      "type": "string",
      "format": "uuid",
      "description": "Destination workflow UUID (publish and link modes)."
    },
    "destinations": {
      "type": "array",
      "description": "Status mode: destinations the caller can publish this document to."
    },
    "external_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "Link mode: linked external copy URL, or null when only an ID was linked."
    },
    "outside_edit": {
      "type": "object",
      "description": "Outside-edit state for the copy."
    },
    "published_to": {
      "type": "array",
      "description": "Status mode: currently linked external copies."
    },
    "publication_id": {
      "type": "string",
      "format": "uuid",
      "description": "Link mode: created publication row UUID."
    },
    "first_run_state": {
      "type": "string",
      "description": "Destination first-run approval state (pending or approved)."
    },
    "awaiting_approval": {
      "type": "boolean",
      "description": "True when the publish run is waiting for first-run human approval in Marcora."
    }
  }
}

Instructions

Check publish status, publish a content document to a connected app destination, update all linked copies, or link an existing external copy (mode: status, publish, update_everywhere, or link). Publish destinations can only be set up from a document's Publish panel in the Marcora app (see setup_url in status), not over MCP; Collaborators are refused.

Modes:

  • status: returns the document's published copies (published_to), available destinations (workflow_id, app, account, first_run state, last_run), is_private, is_owner, and setup_url. Call this first to find workflow_id.
  • publish (workflow_id required): publishes or updates this document on one destination. Outcomes come back as data: started (poll publish_content with mode status), needs_decision (outside_edit — ask the user to skip or replace), blocked (already_sent or created_unlinked — offer new_copy: true or link), or skipped.
  • update_everywhere: updates every current published copy linked to this document (results[] + failed[]).
  • link (workflow_id + reference required; destination confirmer only): links an existing external URL or copy ID.

Rules:

  • First-run approval: when a publish returns awaiting_approval, it waits for a person to approve in Marcora (link_url). Do NOT retry or publish again.
  • Sent but not recorded (publish_unrecorded): do NOT publish again — link the existing copy (mode: "link" or in Marcora).
  • Private documents: refused (private_document_needs_confirmation / private_document_owner_required) unless confirm_private_document: true is sent by the document owner after explicit confirmation.
    Present link_url as returned.

Polling: after status: "started", poll publish_content with mode: "status" and read each destination's last_run (status, error_reason, error_summary, can_cancel) and link.

Output:

Field Type Description
mode string Operation that ran
content_id string (uuid) Document UUID
link_url string Direct URL to open the document in Marcora
team object { id, name } of the team the call ran in
workflow_id string (uuid) publish and link modes: the destination
status string publish mode: started, needs_decision, blocked, or skipped. link mode: linked
awaiting_approval boolean started: true when the run is waiting for first-run approval in Marcora
first_run_state string started: the destination's first-run approval state, when known
run object started: run summary (id, workflow_template_id, status, trigger_type, error_reason, error_summary, result_summary, link_url)
reason string needs_decision (outside_edit) or blocked (already_sent, created_unlinked, publish_unrecorded)
choices array needs_decision: the available choices (skip, replace)
outside_edit object needs_decision: state, changed_at, changed_by, checked_at
offer string blocked: suggested follow-up (new_copy or link_existing)
message string blocked: plain-language explanation
is_private, is_owner boolean status mode: privacy and ownership of the document
published_to array status mode: the document's current published copies. Each has workflow_id, name, app, account (name, is_you), can_publish, is_confirmer, first_run, last_run, can_detect_outside_edits, can_detect_sent and a link (publication_id, state, external_url, label, last_published_at, edited_since_published, outside_edit)
destinations array status mode: available destinations. Each has workflow_id, name, app, account (name, is_you), can_publish, is_confirmer, first_run, last_run, can_detect_outside_edits, can_detect_sent and has_link
last_run object | null Inside published_to and destinations entries: the latest run for that destination (id, status, error_reason, error_summary, requested_by (name), requested_at, can_cancel, link_url), or null
setup_url, setup_note string status mode: where destinations are set up (Marcora app only)
results array update_everywhere mode: one outcome per destination (same shape as publish outcomes)
failed array update_everywhere mode: per-destination failures (workflow_id, error, optional reason)
publication_id string (uuid) link mode: the created publication
external_url string | null link mode: the linked external URL, or null when only an ID was linked
next_step string Actionable guidance for the caller

All timestamps in the output are ISO 8601 strings.

Errors. In status, publish and link modes, a refusal comes back as an isError result; the machine code is structuredContent.reason (not an HTTP status):

  • private_document_needs_confirmation: the document is private. Ask its owner to confirm, then repeat with confirm_private_document: true.
  • private_document_owner_required: only the document owner can confirm publishing a private document. Do not retry.
  • access_denied: Collaborators and callers without access are refused.
  • Invalid or missing parameters for the chosen mode come back as a plain isError message.

In update_everywhere mode, the same private-document refusals are not top-level errors: they are reported per destination in failed[] (workflow_id, error, and reason set to private_document_needs_confirmation or private_document_owner_required), and the call itself succeeds, so check failed[]. Parameter errors and access_denied still return an isError result.

When to use

Use when publishing or refreshing a Marcora document in a connected app such as Google Docs, updating every published copy (update_everywhere), or linking an existing external copy (link). Destinations can only be set up in the Marcora app (https://app.marcora.ai/workflows).