Skip to main content
Glama

Add Playbook Step

add_playbook_step

Add ordered native tasks or external actions to a playbook, using placeholder text and fallback tasks so workflows execute and degrade gracefully.

Instructions

Add an ordered step to a playbook. Steps are either 'native_task' (created in Founders OS when the playbook runs) or 'external_action' (instructions returned for the AI to execute via connected MCP tools like GitHub or Slack). All text fields support {{placeholder}} syntax. Steps are ordered by order_index; append by using a value higher than existing steps.

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": {
      "playbook_id": "<playbook_id>",
      "order_index": "<order_index>",
      "type": "<type>",
      "title": "<title>"
    },
    "name": "add_playbook_step"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeYes'native_task' creates a task in Founders OS. 'external_action' emits instructions for the AI to execute.
titleYesStep title. Supports {{placeholders}} like {{customer.name}}.
actionNoFor external_action: the action to perform, e.g. 'create_repo', 'create_channel'.
paramsNoFor external_action: connector-specific parameters. Supports {{placeholders}}. Example: { template: 'ourthinktank/web-template', name: '{{customer.slug}}-{{playbook.start_year}}' }
assigneeNoDeprecated: use `assigned_to`.
priorityNoFor native_task: priority. Defaults to 'medium'.
connectorNoFor external_action: the MCP connector to use, e.g. 'github', 'slack', 'calendar'.
due_offsetNoFor native_task: due date offset in days from the playbook start_date. Omit for no due date.
assigned_toNoFor native_task: who to assign to. Use FOUNDERS_OS_USER_ID, '@claude', or '@gpt'.
descriptionNoAdditional context. Supports {{placeholders}}.
order_indexYesPosition in the step sequence. Lower numbers run first.
playbook_idYesPlaybook UUID.
fallback_taskNoFor external_action: task title to create if the connector is unavailable at run time. Always provide this so the playbook degrades gracefully.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.4.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare this as a non-readonly, non-idempotent mutation, and the description adds meaningful behavior beyond them: external_action steps emit instructions for the AI to execute via connectors, while native_task steps create tasks in Founders OS. It does not warn about duplicate or re-run behavior, which leaves some mutation risk implicit.

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

Conciseness5/5

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

Four sentences, front-loaded with the core action and step-type distinction, with no wasted wording. The append instruction is placed where an agent needs it when filling order_index.

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?

Given 13 parameters, a nested params object, and no output schema, the description covers the essential model of step types, placeholders, and ordering. It could say more about the response or the relationship to sibling step-management tools, but the schema carries the per-field detail.

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 schema already documents the 13 parameters. The description adds useful cross-parameter semantics: all text fields support {{placeholder}} syntax and the ordering model is driven by order_index.

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 states a specific verb and resource ('Add an ordered step to a playbook') and immediately distinguishes the two step types, 'native_task' and 'external_action', so an agent knows exactly what the tool creates.

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 operational guidance for appending steps via a higher order_index, but does not explicitly contrast this with update_playbook_step or remove_playbook_step, nor does it state prerequisites such as the playbook already existing.

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

Deploy Server

Other Tools