Skip to main content
Glama

workflow_routine_run

Run a saved desktop or browser routine and stop at the first step whose effect differs from prior runs, so you can review the mismatch before completing the rest.

Instructions

Run a saved routine. It stops at the first step whose effect differs from the saved runs (EFFECT_MISMATCH); then finish the rest with workflow_run.

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

Input Schema

NameRequiredDescriptionDefault
argsNoValues the script reads as args.NAME.
modeNoHow the user sees the work: background (default, mouse and keyboard untouched), watch (on screen at a human pace, amber pointer), record (on screen at a human pace, the user's own pointer), direct (real input whenever a step needs it). Leave it out unless the user asked for one; saved preferences apply otherwise.
nameYesRoutine name.
detachNoHand the work to the resident host and get a job id at once; follow it with workflow_job (action wait). Use it for work longer than about 20 seconds.
browserNoWhich browser web steps use, separate from mode: clean (a private window with no sign-ins), chrome (the user's own Chrome with their sign-ins, in its own tab; it stays behind unless mode puts work on screen; workflow_connect once), space (the agent's own profile signed in once). Leave it out to use the saved preference.
sessionNoA named agent-browser session instead of browser; never one that was connected to the user's Chrome.
timeout_msNoHow long the script may run, default 120000.
allow_finalNoLet send, submit, pay, delete and post steps go through. Only when the user asked for that step in this request or agreed in this chat.
allow_inputNoLet steps use the real mouse and keyboard. Only after the user agreed in this chat, or said so in this request.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description must carry the behavioral burden, and it does disclose the most consequential trait: the run aborts at the first divergent effect rather than pressing on, producing a partial execution. It does not cover what a completed run yields or how approvals gate steps, though the schema's allow_final/allow_input descriptions cover much of that.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, zero filler, with the primary action first and the failure/handoff rule immediately after. Every sentence earns 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 execution tool with no annotations and no output schema, the description covers the core control flow well and the schema handles parameter nuance. The gap is return behavior: it never says what a successful or mismatched run hands back, which matters since there is no output schema to fall back on.

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 every parameter including mode, browser, detach, and the two approval flags is documented in the schema itself. The description adds no parameter detail beyond the word 'saved' implying the required name, 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 ('Run a saved routine') and immediately defines a distinguishing behavior from the sibling workflow_run — it halts at the first EFFECT_MISMATCH step and the remainder is handed to workflow_run. An agent can separate this from workflow_run 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit routing: use this to replay a saved routine, and switch to workflow_run once a mismatch occurs. It does not state the inverse condition (when to skip routines entirely and go straight to workflow_run), so it stops just short of full when/when-not coverage.

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