MCP Tools
Plans & Playbooks

create_playbook

Create a reusable content playbook — an ordered template of content-plan items you can stamp out as a batch.

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.
namestringYes—The playbook's title, shown wherever someone browses or picks a playbook to run. Required and trimmed — a blank or whitespace-only value is rejected. It is also the base of the auto-generated cycle name every time the playbook is run ("<name> — Mon YYYY").
descriptionstringNo—Optional free-text note saying what this playbook is for and when to run it, for teammates browsing the playbook list. It is stored on the playbook only and is never fed into content generation; omit it and it is saved empty.
visibilitystringNo—Optional. Defaults to "team". "private" keeps the playbook creator-only.
anchor_datestring | nullNo—Optional YYYY-MM-DD anchor date this playbook is built around (e.g. a launch date). Each item's offset_days counts from it, and it becomes the default anchor when instantiating. Offer to set this when the user has a specific date in mind; omit or null for an evergreen/undated template.
itemsarray of objectNo—The ordered steps of the playbook — each entry becomes exactly one content plan when the playbook is run. Every entry needs a `name` (`title` is accepted as an alias) and may also carry description, prompt, blueprint_id, category_id, offset_days and sort_order; array order sets the sequence unless sort_order is given. Optional — omit it to save an empty shell you fill in later, but a playbook with no items cannot be run until you add some.
anchor_labelstring | nullNo—What anchor_date is called, e.g. "Launch day". Up to 60 characters; null clears it.
default_project_idstring (uuid) | nullNo—Project a run starts in by default. Setting a project clears new_project_each_use unless new_project_each_use: true is also passed; null clears.
new_project_each_usebooleanNo—true = automatically create a fresh project each time this playbook is run (clears default_project_id).
project_name_patternstring | nullNo—Optional name pattern for projects auto-created per cycle when new_project_each_use is true (max 500 chars; {Variable} tokens are filled at instantiate time). null or blank clears it.
variablesarray of objectNo—Placeholders like {Product} for names, prompts and action params, filled when run. Up to 30; a name is 1-40 letters, numbers, spaces, dashes or underscores. On update this REPLACES the whole list.
include_workflow_stepsbooleanNo—Set true to include kind "workflow" steps and their workflow config in the response (default false filters them and remaps builds_on; automatically enabled when sending kind: "workflow" items).

Input Schema

{
  "type": "object",
  "required": [
    "team_id",
    "name"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "The playbook's title, shown wherever someone browses or picks a playbook to run. Required and trimmed — a blank or whitespace-only value is rejected. It is also the base of the auto-generated cycle name every time the playbook is run (\"<name> — Mon YYYY\")."
    },
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "kind": {
            "enum": [
              "content",
              "action",
              "checklist",
              "workflow"
            ],
            "type": "string",
            "description": "content (default), checklist, action, or workflow; omit to keep the step's kind. Content writes a document, checklist is a to-do, action runs a connected-app action (`action`), and workflow runs a Marcora workflow (`workflow`)."
          },
          "name": {
            "type": "string",
            "description": "Item name (title of the plan this item becomes). Alias: `title`."
          },
          "title": {
            "type": "string",
            "description": "Alias for `name`."
          },
          "action": {
            "type": [
              "object",
              "null"
            ],
            "required": [
              "instruction"
            ],
            "properties": {
              "instruction": {
                "type": "string",
                "description": "What to do, in plain language; {Variable} allowed."
              }
            },
            "description": "Required for kind \"action\": { instruction }."
          },
          "prompt": {
            "type": "string",
            "description": "Generation prompt carried onto the plan created from this item."
          },
          "due_time": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional time of day due, \"HH:MM\", no time zone. Needs offset_days; null clears it."
          },
          "optional": {
            "type": "boolean",
            "description": "true = marked as optional, a step to ask about when the playbook is run. Any step can be left out by passing its id in instantiate_playbook skip_item_ids."
          },
          "reviewer": {
            "type": [
              "string",
              "null"
            ],
            "deprecated": true,
            "description": "Deprecated and ignored (not written or returned by MCP; existing values are kept)."
          },
          "workflow": {
            "type": [
              "object",
              "null"
            ],
            "required": [
              "workflow_id"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "Optional mappings keyed by declared workflow input name.",
                "additionalProperties": {
                  "type": "object",
                  "properties": {
                    "from": {
                      "enum": [
                        "step",
                        "field",
                        "text"
                      ],
                      "type": "string",
                      "description": "Source kind: step (earlier item doc), field (playbook variable), or text (literal)."
                    },
                    "name": {
                      "type": "string",
                      "description": "When from is \"field\": playbook variable name."
                    },
                    "rank": {
                      "type": "integer",
                      "description": "When from is \"step\": 0-based index of an earlier template item."
                    },
                    "value": {
                      "type": "string",
                      "description": "When from is \"text\": literal text value."
                    }
                  }
                }
              },
              "workflow_id": {
                "type": "string",
                "format": "uuid",
                "description": "Workflow UUID from list_playbook_workflow_options."
              }
            },
            "description": "Required for kind \"workflow\": { workflow_id, inputs? }. Pick workflows with list_playbook_workflow_options. Custom workflows accept step/field/text inputs; team setups accept step inputs only."
          },
          "builds_on": {
            "type": "array",
            "items": {
              "type": "integer"
            },
            "description": "Step links: 0-based positions, in THIS request's items array, of EARLIER items this step builds on (e.g. [0] = builds on the first item). A link to itself or a later item is rejected. When the playbook is run, each step's generation draws on the steps it builds on. On update_playbook, omit on an id-matched item to keep its existing links remapped to the kept items' new positions (links to removed steps are dropped; moving a step ahead of one it builds on is rejected unless builds_on is also sent), or pass [] / null to clear."
          },
          "owner_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Typed owner (an agent, or a non-member; max 60 chars) for content and checklist steps, never action or workflow steps. Spelling matches the team's existing one (list_playbook_owner_names). owner_user_id or null clears it."
          },
          "sort_order": {
            "type": "integer",
            "description": "Explicit order; defaults to array position."
          },
          "category_id": {
            "type": "integer",
            "description": "Content category for the plan (optional)."
          },
          "description": {
            "type": "string"
          },
          "offset_days": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Days relative to anchor_date at instantiation; sets the plan due_date. Negative = before the anchor. null or omitted on create = no due date (\"No date\"). On update_playbook, omit on an id-matched item to keep its offset_days, or pass null to clear it."
          },
          "blueprint_id": {
            "type": "integer",
            "description": "Blueprint to attach to the plan (optional)."
          },
          "goes_out_time": {
            "type": [
              "string",
              "null"
            ],
            "description": "Content steps: optional time it goes out, \"HH:MM\". Needs goes_out_offset_days; null clears it."
          },
          "owner_user_id": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Team member the step is assigned to when run. Must be an active member; null clears it, and the step then goes to whoever runs the playbook. On workflow steps running a custom workflow, owner stays pinned to creator; team-setup workflows allow teammates who can run them."
          },
          "off_by_default": {
            "type": "boolean",
            "description": "true = starts unticked when the playbook template is used; left out unless included (instantiate_playbook include_item_ids). Implies optional."
          },
          "document_update": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "mode": {
                "enum": [
                  "create",
                  "update"
                ],
                "type": "string"
              },
              "review_mode": {
                "enum": [
                  "approval",
                  "direct"
                ],
                "type": "string"
              },
              "instructions": {
                "type": [
                  "string",
                  "null"
                ],
                "maxLength": 25000
              },
              "target_content_id": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid"
              },
              "target_document_id": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "Input alias for target_content_id."
              }
            },
            "description": "Content steps only: `{ mode: \"update\", target_content_id?: string | null, review_mode?: \"approval\" | \"direct\", instructions? }` to update an existing document when instantiated (pass target_content_id: null to pick per run via step_overrides)."
          },
          "draft_lead_days": {
            "type": "integer",
            "maximum": 365,
            "minimum": 0,
            "description": "Content steps only: whole calendar days (0-365) before due_date when scheduled auto-generate starts (rejects non-integers and null; defaults to 3 when do_on_date is newly enabled, 0 on existing schedules). 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": "Content steps only: true sees a live snapshot of the cycle (topic/details, variables, anchor, and team-visible steps' title, owner, dates and status); private steps are omitted and the generated document footer states how many were left out, not other steps' text."
          },
          "goes_out_offset_days": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Content steps: days after anchor_date it goes out. This is a second date besides offset_days (the due date): whole days from -3650 to 3650, and null clears it."
          },
          "context_collection_ids": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "integer"
            },
            "description": "Content steps only: default context collection IDs. Uses list_context_collections; checklist, action, and workflow steps refuse non-empty values (accept [] or null), and unavailable or unreadable context collections are refused."
          },
          "targeting_dimension_ids": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "integer"
            },
            "description": "Content steps only: default targeting option IDs. Uses list_targeting_dimensions; checklist, action, and workflow steps refuse non-empty values (accept [] or null), and unavailable IDs are refused."
          }
        }
      },
      "description": "The ordered steps of the playbook — each entry becomes exactly one content plan when the playbook is run. Every entry needs a `name` (`title` is accepted as an alias) and may also carry description, prompt, blueprint_id, category_id, offset_days and sort_order; array order sets the sequence unless sort_order is given. Optional — omit it to save an empty shell you fill in later, but a playbook with no items cannot be run until you add some."
    },
    "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."
    },
    "variables": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "required": {
            "type": "boolean"
          }
        }
      },
      "description": "Placeholders like {Product} for names, prompts and action params, filled when run. Up to 30; a name is 1-40 letters, numbers, spaces, dashes or underscores. On update this REPLACES the whole list."
    },
    "visibility": {
      "enum": [
        "private",
        "team"
      ],
      "type": "string",
      "description": "Optional. Defaults to \"team\". \"private\" keeps the playbook creator-only."
    },
    "anchor_date": {
      "type": [
        "string",
        "null"
      ],
      "description": "Optional YYYY-MM-DD anchor date this playbook is built around (e.g. a launch date). Each item's offset_days counts from it, and it becomes the default anchor when instantiating. Offer to set this when the user has a specific date in mind; omit or null for an evergreen/undated template."
    },
    "description": {
      "type": "string",
      "description": "Optional free-text note saying what this playbook is for and when to run it, for teammates browsing the playbook list. It is stored on the playbook only and is never fed into content generation; omit it and it is saved empty."
    },
    "anchor_label": {
      "type": [
        "string",
        "null"
      ],
      "description": "What anchor_date is called, e.g. \"Launch day\". Up to 60 characters; null clears it."
    },
    "default_project_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid",
      "description": "Project a run starts in by default. Setting a project clears new_project_each_use unless new_project_each_use: true is also passed; null clears."
    },
    "new_project_each_use": {
      "type": "boolean",
      "description": "true = automatically create a fresh project each time this playbook is run (clears default_project_id)."
    },
    "project_name_pattern": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 500,
      "description": "Optional name pattern for projects auto-created per cycle when new_project_each_use is true (max 500 chars; {Variable} tokens are filled at instantiate time). null or blank clears it."
    },
    "include_workflow_steps": {
      "type": "boolean",
      "description": "Set true to include kind \"workflow\" steps and their workflow config in the response (default false filters them and remaps builds_on; automatically enabled when sending kind: \"workflow\" items)."
    }
  }
}

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"
          },
          "document_update": {
            "type": "object",
            "properties": {
              "mode": {
                "enum": [
                  "update"
                ],
                "type": "string"
              },
              "review_mode": {
                "enum": [
                  "approval",
                  "direct"
                ],
                "type": "string"
              },
              "instructions": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "target_title": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "target_can_open": {
                "type": "boolean"
              },
              "target_link_url": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "target_content_id": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid"
              }
            },
            "description": "Present on content steps configured to update an existing document."
          },
          "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 reusable content playbook — an ordered template of content-plan items ("save a repeatable content sequence"). Provide a name and, optionally, the ordered items; each item becomes one content plan when the playbook is instantiated. To build a playbook from plans you already ran, use create_playbook_from_plans instead.

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.