MCP Tools
Plans & Playbooks

create_playbook_from_plans

Create a playbook by capturing existing content plans as reusable template items ("save what worked as a template").

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.
namestringNo—Title for the new playbook being saved from these plans — usually the campaign or sequence they came from. Treat it as required: if it is omitted or blank the call fails with "Missing param: name". It also becomes the base of the auto-generated cycle name each time the playbook is later run.
descriptionstringNo—Optional free-text note on what this captured sequence is for and when to reuse it, shown to teammates browsing playbooks. It describes the playbook only — the captured steps keep the titles, descriptions and prompts copied from the source plans. Omitted means it is saved empty.
visibilitystringNo—Optional. Defaults to "team". "private" keeps the playbook creator-only.
plan_idsarray of stringYes—UUIDs of existing content plans to capture as template items.
include_workflow_stepsbooleanNo—Set true to include kind "workflow" items in the response (default false filters them out and remaps builds_on).

Input Schema

{
  "type": "object",
  "required": [
    "team_id",
    "plan_ids"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "Title for the new playbook being saved from these plans — usually the campaign or sequence they came from. Treat it as required: if it is omitted or blank the call fails with \"Missing param: name\". It also becomes the base of the auto-generated cycle name each time the playbook is later run."
    },
    "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."
    },
    "plan_ids": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid"
      },
      "description": "UUIDs of existing content plans to capture as template items."
    },
    "visibility": {
      "enum": [
        "private",
        "team"
      ],
      "type": "string",
      "description": "Optional. Defaults to \"team\". \"private\" keeps the playbook creator-only."
    },
    "description": {
      "type": "string",
      "description": "Optional free-text note on what this captured sequence is for and when to reuse it, shown to teammates browsing playbooks. It describes the playbook only — the captured steps keep the titles, descriptions and prompts copied from the source plans. Omitted means it is saved empty."
    },
    "include_workflow_steps": {
      "type": "boolean",
      "description": "Set true to include kind \"workflow\" items in the response (default false filters them out and remaps builds_on)."
    }
  }
}

Output Schema

{
  "type": "object",
  "properties": {
    "id": {
      "type": "integer"
    },
    "name": {
      "type": "string"
    },
    "team": {
      "type": "object",
      "required": [
        "id",
        "name"
      ],
      "properties": {
        "id": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        }
      },
      "description": "Team this action applied to."
    },
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "kind": {
            "enum": [
              "content",
              "action",
              "checklist",
              "workflow"
            ],
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "title": {
            "type": "string",
            "description": "Mirror of name."
          },
          "action": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "instruction": {
                "type": "string",
                "description": "What to do, in plain language; {Variable} allowed."
              }
            },
            "description": "{ instruction } for an action step, else null."
          },
          "prompt": {
            "type": [
              "string",
              "null"
            ]
          },
          "team_id": {
            "type": "integer"
          },
          "due_time": {
            "type": [
              "string",
              "null"
            ]
          },
          "optional": {
            "type": "boolean"
          },
          "workflow": {
            "type": [
              "object",
              "null"
            ],
            "description": "{ workflow_id, inputs } for a workflow step when include_workflow_steps is enabled, else null."
          },
          "builds_on": {
            "type": "array",
            "items": {
              "type": "integer"
            },
            "description": "0-based positions of earlier items this step builds on."
          },
          "created_at": {
            "type": "integer",
            "description": "Unix ms timestamp."
          },
          "owner_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "sort_order": {
            "type": "integer"
          },
          "updated_at": {
            "type": "integer",
            "description": "Unix ms timestamp."
          },
          "category_id": {
            "type": [
              "integer",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "offset_days": {
            "type": [
              "integer",
              "null"
            ]
          },
          "playbook_id": {
            "type": "integer"
          },
          "blueprint_id": {
            "type": [
              "integer",
              "null"
            ]
          },
          "goes_out_time": {
            "type": [
              "string",
              "null"
            ]
          },
          "owner_user_id": {
            "type": [
              "integer",
              "null"
            ]
          },
          "off_by_default": {
            "type": "boolean"
          },
          "draft_lead_days": {
            "type": "integer",
            "description": "Content steps: whole calendar days (0-365) before due_date when auto-generate starts (0 when disabled or not yet customized). Note: later sending draft_lead_days (or schedule_time_zone, title, description, prompt, blueprint_id, project_id, reference_document_ids (even []), builds_on_plan_ids when any link/doc remains, context_collection_ids, targeting_dimension_ids, or generation_settings) via update_plan turns an enabled auto-generate schedule off; MCP cannot turn auto-generate on (stored lead only; when the owner turns it back on in the app, an unset lead resets to 3, so pick the intended lead there)."
          },
          "use_cycle_source": {
            "type": "boolean",
            "description": "Present (true) on content steps whose generation also sees a live snapshot of the cycle's team-visible steps (private steps are omitted with a footer count)."
          },
          "goes_out_offset_days": {
            "type": [
              "integer",
              "null"
            ]
          },
          "context_collection_ids": {
            "type": "array",
            "items": {
              "type": "integer"
            },
            "description": "Default context collection IDs readable by the caller for this content step ([] for non-content steps, when none are set, or when hidden from the caller)."
          },
          "targeting_dimension_ids": {
            "type": "array",
            "items": {
              "type": "integer"
            },
            "description": "Default targeting dimension option IDs for this content step ([] for non-content steps or when none are set)."
          }
        }
      }
    },
    "team_id": {
      "type": "integer"
    },
    "link_url": {
      "type": "string",
      "description": "URL to open this playbook in the Marcora web app — share it so the user can view what you created."
    },
    "variables": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "required": {
            "type": "boolean"
          }
        }
      },
      "description": "Placeholders to fill when the playbook is run."
    },
    "created_at": {
      "type": "integer",
      "description": "Unix ms timestamp."
    },
    "created_by": {
      "type": "integer"
    },
    "updated_at": {
      "type": "integer",
      "description": "Unix ms timestamp."
    },
    "visibility": {
      "enum": [
        "private",
        "team"
      ],
      "type": "string",
      "description": "private = creator-only; team = visible to all active teammates."
    },
    "anchor_date": {
      "type": [
        "string",
        "null"
      ],
      "description": "Persisted YYYY-MM-DD anchor date, or null. Each item's offset_days counts from it; it's the default when instantiating."
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "anchor_label": {
      "type": [
        "string",
        "null"
      ],
      "description": "What anchor_date is called, or null."
    },
    "default_project_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "Default project id for runs, or null."
    },
    "new_project_each_use": {
      "type": "boolean",
      "description": "Whether each run creates a new project automatically."
    },
    "project_name_pattern": {
      "type": [
        "string",
        "null"
      ],
      "description": "Name pattern with {Variable} tokens for per-cycle projects, or null."
    }
  }
}

Instructions

Create a playbook by capturing existing content plans as reusable template items ("save what worked as a template"). Pass the plan UUIDs; their title, description, prompt, blueprint, category, and content-step targeting/context defaults are copied into ordered playbook items.

Output: the created playbook object (same shape as get_playbook, including anchor_date, anchor_label, default_project_id, new_project_each_use, project_name_pattern, variables, ordered items with step fields, and a link_url that opens the new playbook in the Marcora web app — share it with the user).

Links: present link_url to the user exactly as returned — copy it character for character. Never retype, shorten, or rebuild a link or the IDs inside it.