MCP Tools
Plans & Playbooks

get_playbook

Fetch one content playbook by id, including its full ordered list of items.

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.
playbook_idintegerYes—Numeric id of the playbook to fetch — the `id` returned by list_playbooks, create_playbook or a previous get_playbook. It is a plain integer, not a UUID; a non-integer value is rejected. Only playbooks in that team are reachable, and an unknown id, another team's playbook, or a teammate's private playbook all come back as NotFound.
include_workflow_stepsbooleanNo—Set true to include kind "workflow" steps and their workflow config in items (default false filters them out and remaps builds_on).

Input Schema

{
  "type": "object",
  "required": [
    "team_id",
    "playbook_id"
  ],
  "properties": {
    "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."
    },
    "playbook_id": {
      "type": "integer",
      "description": "Numeric id of the playbook to fetch — the `id` returned by list_playbooks, create_playbook or a previous get_playbook. It is a plain integer, not a UUID; a non-integer value is rejected. Only playbooks in that team are reachable, and an unknown id, another team's playbook, or a teammate's private playbook all come back as NotFound."
    },
    "include_workflow_steps": {
      "type": "boolean",
      "description": "Set true to include kind \"workflow\" steps and their workflow config in items (default false filters them out and remaps builds_on)."
    }
  }
}

Output Schema

{
  "type": "object",
  "properties": {
    "id": {
      "type": "integer"
    },
    "name": {
      "type": "string"
    },
    "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

Fetch one content playbook by id, including its full ordered list of items.

Output: the playbook object — including anchor_date (persisted YYYY-MM-DD reference date, or null), anchor_label, default_project_id, new_project_each_use, project_name_pattern, variables, and link_url (opens the playbook in the Marcora web app) — with an ordered items array. Each item carries id, the plan fields it will stamp out (name, title, description, prompt, blueprint_id, category_id), a builds_on array (0-based positions of the earlier steps it builds on; empty when none), offset_days counted from the anchor date to compute each due date on instantiation, and step fields (kind of content / checklist / action, goes_out_offset_days, goes_out_time, due_time, optional, off_by_default, owner_user_id, owner_name, targeting_dimension_ids, readable context_collection_ids, use_cycle_source, draft_lead_days, document_update [{ mode: "update", target_content_id, review_mode: "approval" | "direct", instructions, target_title, target_link_url, target_can_open } when configured], action). (reviewer is deprecated and not returned by MCP.) Items of kind: "workflow" are omitted unless include_workflow_steps: true; when included, each carries workflow ({ workflow_id, inputs }).

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.