Skip to main content
Glama

Run a playbook

run_playbook
Destructive

Start one built-in playbook now. A Replo agent follows the playbook's built-in instructions (the prompt get_playbook returns) plus a closing step that emails the report, in the background, with the project's analytics, ads research and connected integrations. Built-in playbooks only read, apart from saving their own report to Files or an artifact; the instructions say so, but the agent's tools aren't limited to reading. Side effects: the first call creates the user's own automation for the playbook, and later calls reuse it, so a run follows the prompt as the user last edited it; the finished report is emailed to the user. The run outlives this call: read it with get_task_run and the returned taskId and runId. Calling again during a run returns that run. If something must be connected first, nothing starts and it returns needs_setup with a link for each: give the user the links, then call again. For multi-step Replo work, call skills with name "replo".

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": {
      "projectId": "<projectId>",
      "playbookId": "<playbookId>"
    },
    "name": "run_playbook"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectIdYesThe project to run the playbook in, from list_projects.
playbookIdYesA playbook id from find_playbooks.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / playbookId / description
      Previous value: -"A playbook id from find_playbooks, such as competitor-ad-teardown."New value: +"A playbook id from find_playbooks."
    • addedInput schema / properties / playbookId / enum
      Added value: +[
      +  "site-speed-report",
      +  "analytics-report-card",
      +  "page-visitors-insights",
      +  "insights-digest",
      +  "competitor-ad-digest",
      +  "competitor-ad-teardown",
      +  "top-ads-in-category",
      +  "paid-ads-roas-digest",
      +  "split-test-check",
      +  "site-health-audit",
      +  "search-performance",
      +  "klaviyo-campaign-recap",
      +  "review-monitor"
      +]
    • removedInput schema / properties / playbookId / maxLength
      Removed value: -80
    • removedInput schema / properties / playbookId / minLength
      Removed value: -1
  2. Added

TDQS

A4.4/5.0
Behavior4/5

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

Goes well beyond the annotations: discloses background execution, the first-call automation creation and later reuse, that the run follows the user's edited prompt, that the report is emailed, and the needs_setup failure mode with links. It also candidly notes that the playbooks themselves only read while the agent's tools are not so limited, which is important behavior beyond destructiveHint/readOnlyHint. Slightly hedged in places ("the instructions say so, but...") rather than stating plainly what the agent may do.

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?

Front-loaded with the core action, and nearly every sentence carries operational value (async lifetime, side effects, setup failure). However, several sentences are long run-ons with parenthetical asides that slow scanning; the caveat about agent tools not being read-only could be stated more directly.

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 an async, side-effecting launcher with no output schema, the definition covers everything an agent needs: how to start, what happens in the background, how to retrieve results via get_task_run with taskId/runId, the setup-blocked path, and the sibling to use for other work.

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 parameters are documented in-schema (projectId from list_projects, playbookId from find_playbooks, with a full enum). The description adds no per-parameter meaning beyond that, so the 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?

States a specific verb and resource ("Start one built-in playbook now") and immediately scopes it to built-in playbooks, distinguishing it from get_playbook (which only returns the prompt) and from skills. An agent knows exactly what this does without opening the schema.

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?

Gives explicit routing: use skills with name "replo" for multi-step Replo work, use get_task_run to read the run, call again if a run is already in flight, and call again after resolving needs_setup. It also names the when-not condition (nothing starts until integrations are connected).

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