Skip to main content
Glama

run_sequence

Executes browser actions, assertions, and queries in a single call, logs events chronologically, and stops at the first failure.

Instructions

Execute a sequence of browser operations and assertions in a single call.

Returns a chronological event log of everything that happened - actions, assertions, browser events interleaved.

Step types:

  • action: Browser actions (navigate, click, fill, select, check, uncheck, press, scroll, highlight)

  • assert: Conditions that fail the sequence if not met (url_contains, element_exists, etc.)

  • query: Capture page state mid-sequence (overview, screenshot, describe)

Assertion conditions:

  • url_contains, url_equals: Check current URL

  • title_contains, title_equals: Check page title

  • element_exists, element_not_exists, element_visible: Check element presence

  • element_text_contains: Check element contains text

  • element_count, element_count_gte, element_count_lte: Check element counts

Options:

  • console: Capture console logs (level: 'all'|'warn'|'error', filter: regex)

  • network: Capture network requests (filter: regex for URL)

Stops on first assertion failure or action error.

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

Input Schema

NameRequiredDescriptionDefault
stepsYesOrdered list of operations to execute
optionsNoCapture options for console and network events
sessionYesBrowser session ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the burden well: it discloses the return shape (chronological event log with actions, assertions, and browser events interleaved) and the abort semantics ('stops on first assertion failure or action error'). It omits timeout behavior, side effects left on the page after a mid-sequence failure, and whether a session must already exist.

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 a one-line purpose plus a return-value line, then organized under clear headers for step types, assertion conditions, and options. Some content (action names, query values) duplicates schema enums and could be trimmed, but the structure makes the definition scannable.

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?

There is no output schema, and the description compensates by describing the event-log return. For a nested, three-parameter orchestration tool it covers step taxonomy, assertion vocabulary, and capture options; the remaining gaps are operational details like session lifecycle and error recovery rather than anything needed to construct a call.

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 a 3 is the floor, but the description adds real meaning beyond it: it enumerates all assertion condition names (url_contains, element_count_gte, etc.), which the schema only labels generically as 'Assertion condition', and it explains console level values and that network/console filters are regexes. The repetition of action and query enums already in the schema is the only redundancy.

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?

The description opens with a specific verb and resource: 'Execute a sequence of browser operations and assertions in a single call.' That is clearly distinct from single-purpose siblings like action or screenshot, and the enumeration of step types reinforces the batch nature. It stops short of naming a sibling and explicitly contrasting, so it does not reach the top tier.

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?

'In a single call' and 'Stops on first assertion failure' imply the intended use is a multi-step flow with checkpoints, but the description never states when to prefer this over calling action/query individually, nor any prerequisites such as an already-open session. Usage is inferable rather than instructed.

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