Skip to main content
Glama

hands_run

Destructive

Runs a complete scripted sequence of governed steps in one call, classifying, approving, executing, and recording each action for deterministic multi-step jobs.

Instructions

Run a whole scripted sequence of steps through the governed Runner in one call: each step is perceived, classified, approved under the same governor as hands_act, executed, and written to the trail. Use this for a deterministic multi-step job (the shape a recorded trail exports as a replayable script); use hands_perceive + hands_act when you want to decide each action interactively. driver: 'fake', 'chromium', 'simphone' or 'android' (default: the session body, GHOST_HANDS_DRIVER).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "hands_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
goalNoA short statement of what the run is trying to achieve. Recorded in the trail as the run's purpose.
pagesNoA fake web to install for this run (same shape as hands_perceive's 'pages'). Used with driver 'fake'.
stepsNoThe steps to execute in order. Each step is an action object like hands_act takes, optionally preceded by perceive steps; the Runner stops according to the session's stop rules and reports why. Omit only in goal-driven mode (GHOST_HANDS_DECIDER=openai), where 'goal' drives the run instead.
driverNoWhich body executes the run: 'fake' (built-in demo web), 'chromium' (real browser), 'simphone' or 'android' (phone bodies). Defaults to the session body from GHOST_HANDS_DRIVER.
validateNoWhen true, the evidence-checklist validator (v1.15) gates 'done': the goal is decomposed into checkable items, exact values are compared in code against the page and run results, unsatisfied items send the run back to work with the objections, and repeated failure stops the run as 'unverified'. GHOST_HANDS_VALIDATE=1 enables it by default.
start_urlNoPage to open before the first step runs.
approve_allNoWhen true, approval-gated steps in this run are approved without asking the approver channel. Only set it when the operator has explicitly authorized the whole run.
max_llm_tokensNoGoal-driven mode only: stop the run (reason 'budget') once the decider's API-reported token spend reaches this cap; checked between steps, never mid-action.
require_verifyNoWhen true, a 'done' step is rejected until a verify step has passed in the same run: success must be proven, not claimed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.16.0
    • addedInput schema / properties / validate
      Added value: +{
      +  "description": "When true, the evidence-checklist validator (v1.15) gates 'done': the goal is decomposed into checkable items, exact values are compared in code against the page and run results, unsatisfied items send the run back to work with the objections, and repeated failure stops the run as 'unverified'. GHOST_HANDS_VALIDATE=1 enables it by default.",
      +  "type": "boolean"
      +}
  2. Changed4 schema fields changedv1.11.0
    • addedInput schema / properties / max_llm_tokens
      Added value: +{
      +  "description": "Goal-driven mode only: stop the run (reason 'budget') once the decider's API-reported token spend reaches this cap; checked between steps, never mid-action.",
      +  "type": "integer"
      +}
    • addedInput schema / properties / require_verify
      Added value: +{
      +  "description": "When true, a 'done' step is rejected until a verify step has passed in the same run: success must be proven, not claimed.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / steps / description
      Previous value: -"The steps to execute in order. Each step is an action object like hands_act takes, optionally preceded by perceive steps; the Runner stops according to the session's stop rules and reports why."New value: +"The steps to execute in order. Each step is an action object like hands_act takes, optionally preceded by perceive steps; the Runner stops according to the session's stop rules and reports why. Omit only in goal-driven mode (GHOST_HANDS_DECIDER=openai), where 'goal' drives the run instead."
    • changedInput schema / required
      Previous value: -[
      -  "steps"
      -]New value: +[]
  3. Changed6 schema fields changedv0.9.3
    • addedInput schema / properties / approve_all / description
      Added value: +"When true, approval-gated steps in this run are approved without asking the approver channel. Only set it when the operator has explicitly authorized the whole run."
    • addedInput schema / properties / driver / description
      Added value: +"Which body executes the run: 'fake' (built-in demo web), 'chromium' (real browser), 'simphone' or 'android' (phone bodies). Defaults to the session body from GHOST_HANDS_DRIVER."
    • addedInput schema / properties / goal / description
      Added value: +"A short statement of what the run is trying to achieve. Recorded in the trail as the run's purpose."
    • addedInput schema / properties / pages / description
      Added value: +"A fake web to install for this run (same shape as hands_perceive's 'pages'). Used with driver 'fake'."
    • addedInput schema / properties / start_url / description
      Added value: +"Page to open before the first step runs."
    • addedInput schema / properties / steps / description
      Added value: +"The steps to execute in order. Each step is an action object like hands_act takes, optionally preceded by perceive steps; the Runner stops according to the session's stop rules and reports why."
  4. First observedv0.9.2

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare destructive/openWorld/non-idempotent, and the description adds real behavioral context beyond that: every step passes the same governor/approval channel as hands_act, results are written to the trail, the run stops per session stop rules, validate can send work back and terminate as 'unverified', and approve_all carries an explicit operator-authorization warning. That is substantive disclosure of risk and control flow, not restatement.

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 the sibling disambiguation in the first two sentences, which is exactly the right ordering. The trailing driver sentence restates what the schema already documents fully, so it does not fully earn its place.

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?

For a nine-parameter, nested, destructive, no-output-schema tool, it covers approval governance, stop rules, validation gating, and the token budget. The remaining gap is that it never says what the run returns (only that it 'reports why' it stopped), which matters since no output schema exists.

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 already 100%, so the baseline is 3; the description still adds meaning for several params — driver default resolution (session body, GHOST_HANDS_DRIVER), steps being omitted only in goal-driven mode, approve_all's safety precondition, and max_llm_tokens being checked between steps and never mid-action. The driver sentence largely duplicates the schema, keeping this below a 5.

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 ('Run a whole scripted sequence of steps through the governed Runner in one call') and enumerates the per-step lifecycle (perceive, classify, approve, execute, trail). It explicitly names the sibling combination (hands_perceive + hands_act) it is not, so an agent can route without opening either 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 an explicit when-to-use rule (deterministic multi-step job, i.e. the shape a recorded trail exports as a replayable script) and an explicit when-not (use hands_perceive + hands_act for interactive per-action decisions). The surrounding param text further scopes goal-driven mode versus steps-driven mode.

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