MCP Tools
Plans & Playbooks

get_plan

Fetch a single plan by UUID with linked references, context collections, targeting dimensions, and metadata.

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.
plan_uuidstringYes—The UUID of the plan to fetch (use plan_uuid, not the integer id).

Input Schema

{
  "type": "object",
  "required": [
    "team_id",
    "plan_uuid"
  ],
  "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."
    },
    "plan_uuid": {
      "type": "string",
      "description": "The UUID of the plan to fetch (use plan_uuid, not the integer id)."
    }
  }
}

Output Schema

{
  "type": "object",
  "required": [
    "plan"
  ],
  "properties": {
    "plan": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "description": "Internal PK; do not use externally."
        },
        "step": {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string"
            },
            "optional": {
              "type": "boolean"
            },
            "schedule": {
              "type": "object",
              "properties": {
                "error": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "due_at": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "enabled": {
                  "type": "boolean"
                },
                "outcome": {
                  "enum": [
                    "claimed",
                    "dispatching",
                    "started",
                    "failed",
                    "unknown",
                    "skipped",
                    "cancelled",
                    "overdue",
                    "waiting",
                    "waiting_content",
                    "invalidated",
                    null
                  ],
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Schedule outcome: null (pending), waiting_content (a \"Do it on its date\" step is waiting because an earlier content step it builds on has no ready draft yet; retries on its own once that source is ready), waiting (waiting on an earlier checklist or action step; needs explicit produce_plan or generate_cycle_content), overdue (due date passed without running; needs explicit produce_plan or generate_cycle_content), invalidated (a teammate's edit or revoked consent switched automatic start off), cancelled (turned off or reassigned), skipped (step became ineligible for automatic start), claimed (picked up by a scheduler sweep), dispatching (starting execution), started (scheduled run started), failed (start failed with a client error), or unknown (ambiguous start error; check existing work before trying manually)."
                },
                "time_zone": {
                  "type": "string"
                },
                "generate_at": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "attempted_at": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "execution_uuid": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "description": "Auto-generation schedule state readback. outcome is null (pending), waiting_content (waiting on an earlier content step's draft; retries on its own once ready), waiting (waiting on an earlier checklist or action step), overdue (past due), invalidated (teammate edit or revoked consent switched automatic start off), cancelled (turned off or reassigned), skipped (ineligible), or claimed / dispatching / started / failed / unknown during or after a scheduled run. An overdue or waiting schedule does not auto-generate and needs an explicit generate via produce_plan or generate_cycle_content."
            },
            "workflow": {
              "type": [
                "object",
                "null"
              ],
              "description": "Present on kind \"workflow\" steps: { workflow_id, inputs, status, run_id, error, ran_at, ran_by }."
            },
            "do_on_date": {
              "type": "boolean"
            },
            "goes_out_date": {
              "type": [
                "string",
                "null"
              ]
            },
            "document_update": {
              "type": "object",
              "properties": {
                "mode": {
                  "enum": [
                    "update"
                  ],
                  "type": "string"
                },
                "stale": {
                  "type": "boolean"
                },
                "last_error": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "can_approve": {
                  "type": "boolean"
                },
                "review_mode": {
                  "enum": [
                    "approval",
                    "direct"
                  ],
                  "type": "string"
                },
                "instructions": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "last_outcome": {
                  "enum": [
                    "applied",
                    "rejected",
                    "conflict",
                    "superseded",
                    "failed",
                    "no_changes",
                    null
                  ],
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "latest_state": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "target_title": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "pending_state": {
                  "enum": [
                    "pending",
                    "applying",
                    null
                  ],
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "pending_summary": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "target_can_open": {
                  "type": "boolean"
                },
                "target_link_url": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "latest_update_id": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid"
                },
                "pending_update_id": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid"
                },
                "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 (defaults to 3 when newly enabled; 0 for existing schedules). Note: 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)."
            },
            "schedule_time_zone": {
              "type": "string"
            }
          },
          "description": "Playbook/schedule step settings including draft_lead_days (content steps: 0-365 whole calendar days) and schedule readback (see schedule.outcome: waiting_content retries on its own once the source draft is ready; overdue or waiting needs an explicit generate; invalidated means a teammate's edit or revoked consent turned automatic start off)."
        },
        "stage": {
          "enum": [
            "Suggested",
            "Accepted",
            "In_Process",
            "Complete",
            "Dismissed"
          ],
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "prompt": {
          "type": [
            "string",
            "null"
          ]
        },
        "source": {
          "enum": [
            "user_added",
            "cora_proactive",
            "cora_requested",
            "workflow",
            "playbook"
          ],
          "type": "string"
        },
        "team_id": {
          "type": "integer"
        },
        "due_date": {
          "type": [
            "string",
            "null"
          ]
        },
        "link_url": {
          "type": "string",
          "format": "uri",
          "description": "Shareable deep-link that opens the plans screen with this plan's detail overlay. Give this to the user."
        },
        "plan_uuid": {
          "type": "string"
        },
        "created_at": {
          "type": "integer"
        },
        "created_by": {
          "type": "integer"
        },
        "project_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "updated_at": {
          "type": "integer"
        },
        "visibility": {
          "enum": [
            "private",
            "team"
          ],
          "type": "string",
          "description": "private = creator-only; team = visible to all active teammates."
        },
        "assigned_to": {
          "type": "integer"
        },
        "category_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "blueprint_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "completed_at": {
          "type": [
            "integer",
            "null"
          ]
        },
        "dismissed_at": {
          "type": [
            "integer",
            "null"
          ]
        },
        "source_metadata": {
          "type": [
            "object",
            "null"
          ]
        },
        "_produced_content": {
          "type": [
            "object",
            "null"
          ],
          "description": "The linked content object or null. When non-null contains at minimum: content_id, name, stage, visibility."
        },
        "context_collections": {
          "type": "array"
        },
        "generation_settings": {
          "type": [
            "object",
            "null"
          ],
          "description": "Generation source settings ({ use_cycle_source?: boolean, calls_source?: object | null }), or null. When use_cycle_source is true on a cycle step, generation sees a live snapshot of team-visible steps only (private steps omitted with a footer count)."
        },
        "produced_content_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "reference_documents": {
          "type": "array",
          "description": "Content UUIDs accessible to the current user."
        },
        "targeting_dimensions": {
          "type": "array"
        },
        "_source_metadata_resolved": {
          "type": [
            "object",
            "null"
          ],
          "description": "Denormalized tooltip data (workflow_name resolved fresh; the cora_session_id / cora_message_snippet passthrough). Null if source=user_added."
        }
      }
    }
  }
}

Instructions

Fetch a single plan by UUID with full details including linked references, context collections, targeting dimensions, and produced content.

Output:

Field Type Description
plan.plan_uuid string (uuid) Plan UUID
plan.id integer Integer record ID (use plan_uuid for API calls)
plan.title string Plan title
plan.description string Free-text description
plan.stage string Current stage
plan.source string How the plan was created (immutable)
plan.prompt string Content prompt pre-set for this plan
plan.blueprint_id integer | null Internal blueprint ID, or null
plan.project_id string Project UUID, or null
plan.category_id integer Content category ID, or null
plan.due_date string Due date, or null
plan.draft_lead_days integer | null Whole calendar days before due_date (0–365), or null
plan.generation_settings object | null { use_cycle_source?, calls_source? }, or null
plan.assigned_to integer Assignee user ID
plan.created_by integer Creator user ID
plan.team_id integer Team ID
plan.produced_content_id string UUID of produced content, or null
plan.reference_documents array Content items attached as reference material
plan.context_collections array Context collections pre-attached to the plan
plan.targeting_dimensions array Targeting dimension options pre-attached
plan.step object | null For playbook cycle steps or update-mode plans: kind, optional, do_on_date, draft_lead_days, due_time, goes_out_date, goes_out_time, owner_name, schedule_time_zone, document_update (`{ mode: "update", target_content_id, target_title, target_link_url, target_can_open, review_mode: "approval"
plan._produced_content object/null Linked content summary {content_id, name, stage, visibility}, or null. Call get_content with content_id for the full item
plan._source_metadata_resolved object/null Resolved source metadata, or null

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.