Skip to main content
Glama

run_runbook

Starts a runbook on one or more approved hosts and returns a runId at once while it runs in ShellVibe. Use it to roll out multi-host commands that need per-run user approval.

Instructions

Starts a runbook (see list_runbooks) on one or more hosts and returns at once with a runId; the run goes on in ShellVibe. Every call pauses for the user to approve it in a window that shows the steps, the hosts and the values: there is no policy mode or earlier approval that skips this, because a runbook is several commands on several hosts. Every host must be visible to you and already granted (request_host_access first, or you get HOST_ACCESS_REQUIRED), and not read only: a host whose maxMode or grant is readonly refuses with POLICY_DENIED. Pass only non-secret variables, as plain values (letters, digits, spaces and _-.,:/@%+=~^; no shell syntax); a secret variable is typed by the user in the approval window, and passing one is rejected. Required variables that are missing are reported before the user is asked anything. One run at a time: while another is in progress you get RUNBOOK_BUSY. Follow the run with get_runbook_run; stop it with cancel_runbook_run. An approval step in the runbook waits for the user to press Continue in ShellVibe: you cannot continue it.

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": {
      "runbookId": "<runbookId>",
      "hostIds": "<hostIds>"
    },
    "name": "run_runbook"
  }
}

Input Schema

NameRequiredDescriptionDefault
hostIdsYesThe hosts to run it on: ids from list_hosts that you have been granted access to.
strategyNo"parallel" (default) runs several hosts at once; "rolling" runs one host at a time and stops at the first failure, leaving the rest unstarted: use it for a canary.
runbookIdYesThe id of the runbook, from list_runbooks.
variablesNoValues for the non-secret variables, by name. A variable with a default may be left out.
concurrencyNoWith "parallel": how many hosts at once. Defaults to 4.
descriptionNoOne short sentence for the user: what this does and why. Shown in the approval window next to the exact command, which is what the user judges; it does not change what is allowed. Recommended for chained or long commands.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.9/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so thoroughly: every call pauses for a user approval window showing steps, hosts and values, with no policy mode that skips it. It discloses the mutation's blast radius (several commands on several hosts), the secret-variable handling, the read-only refusal, and the one-run-at-a-time constraint.

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 core action and its async semantics are front-loaded, and the error codes and follow-up tools are packed into short clauses. It is dense but every sentence carries operational information; the only cost is that the variable character-set enumeration is a heavy inline list that slightly interrupts the flow.

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 six-parameter, nested-object mutation tool with no output schema, the description covers return behavior (runId, run continues server-side), gating (approval window, approval steps the agent cannot advance), failure modes, and the follow-up tool. Nothing an agent needs to invoke or monitor the run correctly is missing.

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

Parameters5/5

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

Schema coverage is already 100%, so the baseline is 3; the description earns above that by adding constraints the schema lacks. It restricts variables to non-secret plain values, spells out the permitted character set and forbids shell syntax, and notes that missing required variables are reported before the user is prompted.

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 ("Starts a runbook") plus the key execution model: it returns at once with a runId while the run continues in ShellVibe. It also points to list_runbooks for obtaining the id, so the agent can distinguish this from run_command or run_snippet without opening a 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?

Names the follow-up (get_runbook_run), the stop path (cancel_runbook_run), and the prerequisite (request_host_access first, or HOST_ACCESS_REQUIRED). It also tells the agent what is not allowed (read-only hosts fail with POLICY_DENIED) and that concurrent runs are refused with RUNBOOK_BUSY, leaving little to inference.

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