Skip to main content
Glama

get_runbook_run

Retrieves the status, per-host errors, and step output for a runbook or snippet run, and can wait briefly for it to settle instead of polling.

Instructions

Reports a run you started with run_runbook or run_snippet: an overall status ("running", "waiting_for_approval", "succeeded", "failed" or "cancelled"), each host's status and error, and each step's status, exit code, attempts and output (the last 8 KiB, with secrets masked). Works for the run in progress and for finished ones. waitSeconds holds the call open until the run settles or the time runs out, so you need not poll in a tight loop. When the status is "waiting_for_approval" the user has to press Continue in ShellVibe: you cannot. You can only read runs you started.

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": {
      "runId": "<runId>"
    },
    "name": "get_runbook_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
runIdYesThe runId run_runbook or run_snippet returned.
waitSecondsNoWait up to this long for the run to settle before answering. Defaults to 0: answer at once.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full behavioral burden and does so well: it discloses output truncation (last 8 KiB), secret masking, per-step attempts and exit codes, the blocking semantics of waitSeconds, and the human-in-the-loop gate for waiting_for_approval. The ownership restriction is a real behavioral constraint an agent could otherwise violate.

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 most important facts — what is returned and the blocking option — come first, with the approval caveat and ownership limit last. Sentences are dense but each carries distinct information; the parenthetical field list is long yet functional rather than padded.

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?

There is no output schema, but the description effectively documents the return shape (statuses, per-host, per-step fields, truncation, masking). For a two-parameter read tool with no annotations, nothing an agent needs to call it correctly or interpret the result is missing.

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 baseline is 3. The description still adds meaning: waitSeconds is framed as holding the call open "until the run settles or the time runs out" to avoid a polling loop, and runId is anchored to the value returned by run_runbook or run_snippet, reinforcing the provenance requirement.

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 opens with a specific verb and resource ("Reports a run") and immediately ties that run to the tools that create it (run_runbook, run_snippet). It then enumerates exactly what is reported: overall status, per-host status and error, per-step status, exit code, attempts and output. This is enough to distinguish it from run_runbook, run_snippet and cancel_runbook_run without opening any schema.

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 context for when this applies: both in-progress and finished runs, with waitSeconds recommended over tight polling. It also states a hard scope limit — "You can only read runs you started" — and explains the waiting_for_approval case. It does not name cancel_runbook_run as the alternative for stopping a stalled run, so it stops short of explicit sibling routing.

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