Skip to main content
Glama

Run Playbook

run_playbook

Execute a business playbook for a customer, creating tasks and returning external actions to run. Use preflight mode first to inspect connector requirements and step breakdown before committing.

Instructions

Execute a playbook against a customer. Set preflight_only: true to inspect connector requirements and step breakdown WITHOUT executing — use this to check what's needed before committing to a run. In normal mode: creates all native_task steps as Founders OS tasks (linked to the customer) and returns external_action steps as structured instructions. IMPORTANT: After this tool returns in normal mode, check external_actions and execute each one using the appropriate connected MCP tools. If a connector is unavailable, create a native task using the fallback_task field from that step instead. The response always includes connector_requirements so you know what to check before executing.

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>",
      "start_date": "<start_date>"
    },
    "name": "run_playbook"
  }
}

Input Schema

NameRequiredDescriptionDefault
notesNoOptional context note logged with the run.
start_dateYesAnchor date (YYYY-MM-DD) for due_offset calculations and {{playbook.start_date}} placeholders.
customer_idNoCustomer UUID to run this playbook for. Strongly recommended — enables placeholder resolution.
playbook_idYesPlaybook UUID or slug.
preflight_onlyNoIf true, return connector requirements and a step summary WITHOUT executing. Use this to check what the playbook needs before committing to a run.

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?

Beyond the annotations (readOnlyHint=false, destructiveHint=false, idempotentHint=false), the description discloses the concrete side effects: native_task steps become Founders OS tasks linked to the customer, while external_action steps are returned as instructions. It stops short of noting that a non-idempotent re-run would create duplicate tasks or that a run record is persisted, which are the remaining behavioral gaps.

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 with the execution mode distinction, followed by side effects and then the required follow-up actions, so the ordering matches how an agent would reason. Slight redundancy exists between the preflight sentences and the schema's own preflight_only description, but nothing is wasted.

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?

With no output schema, the description carries the return-value burden and does so: it explains the external_actions list, the connector_requirements field, and the fallback_task field. Combined with the annotations, an agent has everything needed to call it and act on the result.

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%, so all five parameters, including preflight_only, are already documented in the schema. The description reinforces the preflight_only gate with intent-level framing but adds no format or syntax detail beyond what the schema supplies; baseline 3 applies.

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 opening sentence gives a specific verb and resource (execute a playbook against a customer), and the body immediately distinguishes the two modes of operation. It is clearly separable from siblings such as create_playbook, get_playbook, and list_playbook_runs.

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 states explicitly when to use preflight_only (to inspect connector requirements before committing) versus normal mode, and it prescribes post-call behavior when connectors are missing via fallback_task. The decision path is fully spelled out rather than implied.

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