Skip to main content
Glama

add_playbook_step

Adds one step (content, checklist, or action) to a RUNNING playbook cycle (run_id), leaving the template unchanged. Positions after after_plan_uuid or at end; builds_on accepts earlier step UUIDs. owner_name applies to content/checklist only (use exact spelling from list_playbook_owner_names); use_cycle_source and draft_lead_days (0–365; update_plan turns auto-gen off) apply to content only; content steps start with empty targeting_dimension_ids/context_collection_ids unless passed (no cycle inheritance). Refusals change nothing. Present link_url as returned.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "team_id": "<team_id>",
      "run_id": "<run_id>",
      "title": "<title>"
    },
    "name": "add_playbook_step"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNocontent (default), checklist or action. An action step needs action: { instruction } and an owner_user_id (the owner's in-app agent does it with their connected apps when they press Run in Marcora, not over MCP).
titleYesThe step's title.
actionNoRequired for kind "action": { instruction }.
promptNoContent steps: the generation prompt. {Variables} are filled from the running playbook's own values.
run_idYesThe running playbook to add the step to (run_id from list_playbook_cycles or instantiate_playbook).
team_idYesTeam id to act in (from initialize instructions or get_current_user_info). Required on external MCP; optional in bound sessions.
due_dateNoYYYY-MM-DD deadline the step is due.
due_timeNoOptional time of day it is due, "HH:MM" 24-hour, no time zone. Needs due_date.
reviewerNoDeprecated and ignored (not written or returned by MCP; existing values are kept).
builds_onNoplan_uuids of EARLIER steps of this running playbook whose finished content this step draws on. A later step is refused.
owner_nameNoA typed owner (an agent, or anyone who is not a team member) instead of owner_user_id. Not for an action step. See list_playbook_owner_names.
descriptionNoWhat the step is for.
goes_out_dateNoContent steps: YYYY-MM-DD the finished content goes out.
goes_out_timeNoContent steps: optional time of day it goes out, "HH:MM". Needs goes_out_date.
owner_user_idNoTeam member who owns the step. Defaults to you. Do not send together with owner_name.
blueprint_uuidNoContent steps: blueprint to write from (from list_blueprints).
after_plan_uuidNoPlace the step right after this step (plan_uuid from get_playbook_cycle). Omit to add it at the end.
draft_lead_daysNoContent 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_sourceNoContent steps only: true so this step's generation also sees a live snapshot of the cycle (topic/details, variables, anchor, and team-visible steps' title, owner, dates, status); private steps are omitted and the generated document footer states how many were left out, not other steps' text.
context_collection_idsNoContent steps only (ignored on checklist/action steps): context collection IDs (list_context_collections) to attach to this step. Omit, [], or null starts empty (nothing inherits from the cycle); unavailable/unreadable IDs are refused.
targeting_dimension_idsNoContent steps only (ignored on checklist/action steps): targeting dimension option IDs (list_targeting_dimensions) to attach to this step. Omit, [], or null starts empty (nothing inherits from the cycle); unavailable IDs are refused.

Output Schema

NameRequiredDescriptionDefault
stepNoThe step's kind, draft_lead_days (content steps: 0-365 whole calendar days), 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), owner_name, times of day and other step settings.
teamNoTeam this action applied to.
stageNo
titleNo
run_idNo
due_dateNo
link_urlNo
plan_uuidNoThe new step's id.
cycle_link_urlNoLink to the running playbook.
context_collectionsNoContext collection IDs attached to this step (content steps only).
generation_settingsNoGeneration source settings (e.g. { use_cycle_source: true }), or null. use_cycle_source: true gives generation a live snapshot of team-visible cycle steps only (private steps omitted with a footer count).
targeting_dimensionsNoTargeting dimension option IDs attached to this step (content steps only).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed15 schema fields changed
    • addedInput schema / properties / context_collection_ids
      Added value: +{
      +  "description": "Content steps only (ignored on checklist/action steps): context collection IDs (list_context_collections) to attach to this step. Omit, [], or null starts empty (nothing inherits from the cycle); unavailable/unreadable IDs are refused.",
      +  "items": {
      +    "type": "integer"
      +  },
      +  "type": [
      +    "array",
      +    "null"
      +  ]
      +}
    • addedInput schema / properties / draft_lead_days
      Added value: +{
      +  "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).",
      +  "maximum": 365,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • changedInput schema / properties / due_date / description
      Previous value: -"YYYY-MM-DD the step is due (a content step's draft date)."New value: +"YYYY-MM-DD deadline the step is due."
    • addedInput schema / properties / reviewer / deprecated
      Added value: +true
    • changedInput schema / properties / reviewer / description
      Previous value: -"Reviewer name shown on the step (free text, max 120 chars)."New value: +"Deprecated and ignored (not written or returned by MCP; existing values are kept)."
    • addedInput schema / properties / targeting_dimension_ids
      Added value: +{
      +  "description": "Content steps only (ignored on checklist/action steps): targeting dimension option IDs (list_targeting_dimensions) to attach to this step. Omit, [], or null starts empty (nothing inherits from the cycle); unavailable IDs are refused.",
      +  "items": {
      +    "type": "integer"
      +  },
      +  "type": [
      +    "array",
      +    "null"
      +  ]
      +}
    • addedInput schema / properties / team_id
      Added value: +{
      +  "description": "Team id to act in (from initialize instructions or get_current_user_info). Required on external MCP; optional in bound sessions.",
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / use_cycle_source
      Added value: +{
      +  "description": "Content steps only: true so this step's generation also sees a live snapshot of the cycle (topic/details, variables, anchor, and team-visible steps' title, owner, dates, status); private steps are omitted and the generated document footer states how many were left out, not other steps' text.",
      +  "type": "boolean"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "run_id",
      -  "title"
      -]New value: +[
      +  "team_id",
      +  "run_id",
      +  "title"
      +]
    • addedOutput schema / properties / context_collections
      Added value: +{
      +  "description": "Context collection IDs attached to this step (content steps only).",
      +  "items": {
      +    "type": "integer"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / generation_settings
      Added value: +{
      +  "description": "Generation source settings (e.g. { use_cycle_source: true }), or null. use_cycle_source: true gives generation a live snapshot of team-visible cycle steps only (private steps omitted with a footer count).",
      +  "type": [
      +    "object",
      +    "null"
      +  ]
      +}
    • changedOutput schema / properties / step / description
      Previous value: -"The step's kind, optional flag, owner_name, times of day and other step settings."New value: +"The step's kind, draft_lead_days (content steps: 0-365 whole calendar days), 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), owner_name, times of day and other step settings."
    • addedOutput schema / properties / step / properties
      Added value: +{
      +  "do_on_date": {
      +    "type": "boolean"
      +  },
      +  "draft_lead_days": {
      +    "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). Changing draft_lead_days (or schedule_time_zone, title, description, prompt, blueprint_id, project_id, reference_document_ids (even [])/builds_on_plan_ids, context_collection_ids, targeting_dimension_ids, generation_settings) via update_plan turns an enabled auto-generate schedule off, and MCP cannot turn auto-generate on (stored lead only; when the owner turns it back on in-app, an unset lead resets to 3 so they must pick the intended lead there).",
      +    "type": "integer"
      +  },
      +  "kind": {
      +    "type": "string"
      +  },
      +  "schedule": {
      +    "description": "Date-schedule state readback when scheduled. 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 step does not auto-generate and needs an explicit generate via produce_plan or generate_cycle_content.",
      +    "properties": {
      +      "attempted_at": {
      +        "type": [
      +          "integer",
      +          "null"
      +        ]
      +      },
      +      "due_at": {
      +        "type": [
      +          "integer",
      +          "null"
      +        ]
      +      },
      +      "enabled": {
      +        "type": "boolean"
      +      },
      +      "error": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "execution_uuid": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "generate_at": {
      +        "type": [
      +          "integer",
      +          "null"
      +        ]
      +      },
      +      "outcome": {
      +        "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).",
      +        "enum": [
      +          "claimed",
      +          "dispatching",
      +          "started",
      +          "failed",
      +          "unknown",
      +          "skipped",
      +          "cancelled",
      +          "overdue",
      +          "waiting",
      +          "waiting_content",
      +          "invalidated",
      +          null
      +        ],
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "time_zone": {
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "schedule_time_zone": {
      +    "type": "string"
      +  }
      +}
    • addedOutput schema / properties / targeting_dimensions
      Added value: +{
      +  "description": "Targeting dimension option IDs attached to this step (content steps only).",
      +  "items": {
      +    "type": "integer"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / team
      Added value: +{
      +  "description": "Team this action applied to.",
      +  "properties": {
      +    "id": {
      +      "type": "integer"
      +    },
      +    "name": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "id",
      +    "name"
      +  ],
      +  "type": "object"
      +}
  2. Changed4 schema fields changed
    • changedInput schema / properties / action / description
      Previous value: -"Required for kind \"action\": { toolkit, operation, params }."New value: +"Required for kind \"action\": { instruction }."
    • addedInput schema / properties / action / properties
      Added value: +{
      +  "instruction": {
      +    "description": "What to do, in plain language; {Variable} allowed.",
      +    "type": "string"
      +  }
      +}
    • addedInput schema / properties / action / required
      Added value: +[
      +  "instruction"
      +]
    • changedInput schema / properties / kind / description
      Previous value: -"content (default), checklist or action. An action step needs action: { toolkit, operation, params } and an owner_user_id (it runs in that person's connected app in Marcora, not over MCP)."New value: +"content (default), checklist or action. An action step needs action: { instruction } and an owner_user_id (the owner's in-app agent does it with their connected apps when they press Run in Marcora, not over MCP)."
  3. Added

TDQS

A4.2/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=false, destructiveHint=false, and idempotentHint=false, so the mutation profile is known. The description adds genuinely useful behavior: 'Refusals change nothing', no inheritance of cycle targeting/context collections, later-step builds_on refusals, and 'Present link_url as returned'. However it targets owner_name and draft_lead_days rules that largely mirror the schema text, so it does not go far beyond structured data.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and scope are front-loaded in the opening sentence, and nearly every clause carries a constraint. It is dense semicolon-chained prose that takes effort to parse, but there is little that could be cut without losing operative information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 21-parameter mutation tool, the description covers the critical gaps: which kind of step is being created, what parameters apply per kind, what happens on refusal, and how to handle the returned link. With an output schema present, return-value detail is not needed, and nothing essential to a correct call is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3. The description still adds cross-parameter semantics the schema does not state as a whole: which parameters are valid per step kind, the exact-spelling requirement for owner_name, and the explicit rule that content steps start empty rather than inheriting cycle values. That meaningfully reduces misuse risk on a 21-parameter tool.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first clause names a specific verb and resource, enumerates the three step kinds, and pins the scope to a RUNNING playbook cycle while explicitly stating the template is untouched. That scope clause alone distinguishes it from template-editing siblings such as update_playbook or create_playbook_from_plans.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives clear operating context — the cycle must be running, action steps need action + owner_user_id, owner_name must come from list_playbook_owner_names, and update_plan interacts with auto-generate — but it never states when to prefer a different tool for modifying an existing step (e.g. status or plan updates). Guidance is strong on preconditions, weaker on explicit alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources