Skip to main content
Glama

run_sequence

Execute multiple desktop GUI actions—clicks, typing, drags, waits—in a single server-side call to avoid round-trips. Stops at the first failure unless stop_on_error is disabled.

Instructions

Execute a list of actions server-side in a single call, no round-trips.

Each step is a dict with an "action" key plus action-specific fields: {"action": "click", "handle": "..."} {"action": "click_at", "x": 100.0, "y": 200.0, "window_id": null} {"action": "type", "handle": "...", "text": "..."} {"action": "key", "key": "Return"} {"action": "select", "handle": "...", "value": "..."} {"action": "get_value", "handle": "..."} {"action": "get_bounds", "handle": "..."} → value [x, y, w, h] or null {"action": "drag", "from_handle": "...", "to_handle": "..."} (or from_x/from_y, to_x/to_y; or dx/dy from the start: drags a splitter a known distance) {"action": "sleep", "seconds": 0.15} {"action": "wait_for_element", "window_id": "...", "role": "...", "name": "...", "state": "...", "timeout": 5.0} {"action": "wait_for_text", "handle": "...", "text": "...", "timeout": 5.0, "contains": false, "pattern": null} (or "window_id" + "role"/"name" instead of "handle": re-found each poll, for labels) {"action": "wait_for_window", "pattern": "...", "timeout": 5.0}

Returns a list of per-step results. Stops at first failure unless stop_on_error is False.

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

Input Schema

NameRequiredDescriptionDefault
stepsYes
stop_on_errorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

No annotations exist, so the description carries the full load, and it does substantial work: it discloses per-step results, stop-at-first-failure behavior with the stop_on_error escape, default sleep/wait timeouts, and re-finding behavior for label waits. It does not say whether completed steps persist after a mid-sequence failure or what a failure result looks like.

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?

Long, but it is dense reference material where nearly every line defines a distinct action shape that the schema leaves blank. The purpose sentence is front-loaded and the per-action format is scannable; the only real cost is that it doubles as a schema substitute.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a high-complexity sequencing tool with no annotations, no output schema, and zero schema description coverage, it covers the input grammar well but leaves the return contract thin ('list of per-step results' without shape or error format). An agent can build a call but has limited basis for interpreting results or recovering from partial failures.

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 0% and the steps items are an untyped object, so the description must supply everything, and it enumerates eleven action shapes with their fields and alternatives. The gap is that 'handle' is never defined, and it never says whether a step can consume the output of an earlier step (e.g. get_value feeding a later action).

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Execute a list of actions server-side') and pins down the key differentiator ('single call, no round-trips'), which lets an agent tell it apart from the per-action siblings. It stops short of naming those siblings explicitly, so the differentiation is inferred rather than declared.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Batching intent is implied by 'in a single call, no round-trips', which suggests using this instead of chaining click/type calls. There is no explicit when-to-use or when-not guidance, e.g. that this is unsuitable when later steps depend on inspecting earlier results, which matters given stop-on-failure semantics.

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