Skip to main content
Glama

get_playbook_cycle

Read-onlyIdempotent

Reads one running playbook cycle (run_id from list_playbook_cycles or instantiate_playbook) with project_id/project_name and ordered steps (plan_uuid, title, prompt, stage, due date, owner, use_cycle_source, step.schedule, builds_on, produced doc, and completion result). step.schedule.outcome: null (pending), waiting_content, waiting, overdue, invalidated, cancelled, skipped, claimed, dispatching, started, failed, or unknown. Edit steps via update_plan(plan_uuid) (turns do_on_date off on content/targeting/lead edits), complete/reopen via update_playbook_step_status, or rename cycle via update_playbook_cycle. 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>"
    },
    "name": "get_playbook_cycle"
  }
}

Input Schema

NameRequiredDescriptionDefault
run_idYesCycle id — the integer run_id from list_playbook_cycles / instantiate_playbook, not a UUID.
team_idYesTeam id to act in (from initialize instructions or get_current_user_info). Required on external MCP; optional in bound sessions.

Output Schema

NameRequiredDescriptionDefault
cycleNo
stepsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changed
    • 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"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "run_id"
      -]New value: +[
      +  "team_id",
      +  "run_id"
      +]
    • addedOutput schema / properties / cycle / properties / playbook_name / description
      Added value: +"Source playbook template name, or \"Deleted template\" when the template has been deleted."
    • addedOutput schema / properties / cycle / properties / project_id
      Added value: +{
      +  "description": "Project scoped to this cycle, or null.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / cycle / properties / project_name
      Added value: +{
      +  "description": "Name of that project when readable, or null.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / steps / items / properties / step / properties / do_on_date
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / steps / items / properties / step / properties / draft_lead_days
      Added value: +{
      +  "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).",
      +  "type": "integer"
      +}
    • removedOutput schema / properties / steps / items / properties / step / properties / reviewer
      Removed value: -{
      -  "description": "Who reviews this step before it goes out (free text), if set.",
      -  "type": [
      -    "string",
      -    "null"
      -  ]
      -}
    • addedOutput schema / properties / steps / items / properties / step / properties / schedule
      Added value: +{
      +  "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.",
      +  "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"
      +}
    • addedOutput schema / properties / steps / items / properties / step / properties / schedule_time_zone
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / steps / items / properties / use_cycle_source
      Added value: +{
      +  "description": "Present (true) when this content step's generation also sees a live snapshot of the cycle's team-visible steps (private steps are omitted with a footer count).",
      +  "type": "boolean"
      +}
  2. Changed3 schema fields changed
    • addedOutput schema / properties / steps / items / properties / step / properties / due_time
      Added value: +{
      +  "description": "HH:MM time of day the step is due, only when set.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / steps / items / properties / step / properties / goes_out_time
      Added value: +{
      +  "description": "HH:MM time of day the content goes out, only when set.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / steps / items / properties / step / properties / owner_name
      Added value: +{
      +  "description": "Typed owner name, only when set.",
      +  "type": "string"
      +}
  3. Changed1 schema field changed
    • changedInput schema / properties / run_id / description
      Previous value: -"Cycle id — the run_id from list_playbook_cycles / instantiate_playbook, or the trailing number of a cycle link_url."New value: +"Cycle id — the integer run_id from list_playbook_cycles / instantiate_playbook, not a UUID."
  4. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, so safety is covered; the description adds genuinely new behavioral context such as the full step.schedule.outcome state set (pending, waiting_content, overdue, failed, etc.) and the note that update_plan silently turns do_on_date off on content/targeting/lead edits. Remaining omission is minor given the output schema exists; the only noise is the ambiguous "`project_id`/`project_name`" phrasing, which reads like inputs but is not in the schema.

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?

Dense but front-loaded: the identity and access path come first, then the returned structure, then the sibling routing. A single long block with heavy backticks is efficient, though breaking the outcome enum and the mutation routing into separate sentences would read faster.

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

Completeness4/5

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

For a two-parameter read with a full output schema and complete annotations, this covers what an agent needs: what it returns, how to interpret step states, and where to go for mutations. The only real gap is the unexplained project_id/project_name reference, which could briefly confuse an agent about required inputs.

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

Parameters3/5

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

Schema description coverage is 100% and both params are documented there, so the schema carries the load. The description reinforces that run_id is an integer cycle id rather than a UUID, but adds little else and introduces project_id/project_name terms that do not correspond to any input parameter, mildly muddying rather than clarifying.

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?

States a specific verb+resource ("Reads one running playbook cycle") and immediately scopes it to a single cycle keyed by run_id, which cleanly separates it from list_playbook_cycles and get_playbook.

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

Usage Guidelines5/5

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

Explicitly names where run_id comes from (list_playbook_cycles or instantiate_playbook) and routes the three adjacent mutations to their own tools: edit steps via update_plan, complete/reopen via update_playbook_step_status, rename via update_playbook_cycle. An agent knows both when to call this and which sibling to use instead of overloading it.

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