Skip to main content
Glama

generate_cycle_content

Starts async "Generate all" on a playbook cycle (run_id), generating documents for open content steps assigned to or created by the caller (including steps created by you that are assigned to a teammate) in order (skips checklist, action, dismissed, already-generated, and teammates' private/unowned steps; honors use_cycle_source with private-step footer counts). Uses 1 generation of Studio Credits per step — confirm first. One batch per cycle at a time (started: false if running). Poll get_cycle_generation. 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": "generate_cycle_content"
  }
}

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
teamNoTeam this action applied to.
batchNo
piecesNoPresent only when nothing_to_generate: why each step was skipped.
startedNofalse when a batch is already running or there is nothing to generate.
cycle_link_urlNo
nothing_to_generateNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 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 / team
      Added value: +{
      +  "description": "Team this action applied to.",
      +  "properties": {
      +    "id": {
      +      "type": "integer"
      +    },
      +    "name": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "id",
      +    "name"
      +  ],
      +  "type": "object"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / run_id / description
      Previous value: -"Cycle id — the run_id from list_playbook_cycles / instantiate_playbook."New value: +"Cycle id — the integer run_id from list_playbook_cycles / instantiate_playbook, not a UUID."
  3. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations, it discloses asynchronous execution, per-step credit cost, ordering, detailed inclusion and exclusion behavior, `use_cycle_source` handling, concurrency limits, and the `started: false` response. It also instructs the agent to present `link_url` unchanged, providing useful response-handling guidance.

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?

The description is front-loaded and contains no filler, with cost, concurrency, polling, and output handling expressed in short direct statements. Its opening sentence is nevertheless heavily packed with nested parentheticals, making the valuable eligibility rules harder to scan.

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 complex, credit-consuming asynchronous mutation, the definition supplies the scope, confirmation requirement, exclusions, concurrency behavior, and polling workflow needed for correct invocation. With both inputs fully described and an output schema present, no material invocation or return-value gap remains.

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 coverage is 100%, and both `run_id` and `team_id` are already well documented there. The description's `run_id` reference adds little beyond that schema, so the baseline score applies; `use_cycle_source` is explained as generation behavior rather than as an input parameter.

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 description uses a specific verb and resource: it starts an asynchronous `Generate all` batch on a playbook cycle and generates documents for eligible open `content` steps. It also distinguishes the follow-up role of `get_cycle_generation` by directing the agent to poll that tool.

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?

It gives concrete invocation and follow-up guidance: confirm before spending Studio Credits, expect only one batch per cycle, handle `started: false` when a batch is already running, and poll `get_cycle_generation`. The eligibility and skip rules further clarify when generation will and will not occur.

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