Skip to main content
Glama

OpenFactory

test_workflow

Autonomously TEST a GUI workflow and report whether it works.

OpenFactory's AI drives the tester VM (sees the screen, clicks/types) toward your goal, recording each step to the app-test harness with video. This spends platform AI and is metered against your plan's AI allowance; it is refused once that allowance is used. To use your own model instead, drive the VM yourself with desktop_screenshot / desktop_interact.

ASYNC BY DEFAULT: this returns right away with a run_id while the AI keeps driving the VM in the background, so your MCP client's call never blocks/times out. Poll get_app_test_run(run_id) — when status flips to passed/failed/error the run.verdict_notes holds the verdict and run.video has the recording. Pass wait=true to block for the verdict inline instead (short workflows only).

Run ensure_tester_vm first, and make sure the app is reachable from the VM.

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": {
      "app_name": "<app_name>",
      "scenario": "<scenario>",
      "instructions": "<instructions>"
    },
    "name": "test_workflow"
  }
}

Input Schema

NameRequiredDescriptionDefault
waitNoIf true, block until the agent finishes and return the verdict inline (may hit your MCP client's call timeout for long runs). Default false: return immediately with a run_id; poll get_app_test_run(run_id) for the verdict + video.
api_keyNoYour OpenFactory MCP API key (optional)
app_urlNoURL to open first (as seen from the VM)
vm_nameNoTester VM to test in (of-tester-*/of-desktop-*). Omit (recommended) to auto-lease one from the app's tester pool — it queues if every VM is busy and is released automatically when the run finishes, so two tests never share a VM.
app_nameYesStable app key for history grouping, e.g. 'knostra'
scenarioYesStable scenario key, e.g. 'booking-smoke'
max_stepsNoMax agent steps (1-20)
instructionsYesThe workflow + what 'works' means, e.g. 'Open /booking, fill the demo form, submit, and verify a confirmation appears.'
session_tokenNoSession token from a previous tool response

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it discloses metered AI cost, refusal after the plan allowance is exhausted, async-by-default behavior with a run_id, client-timeout risk when wait=true, VM auto-leasing/queueing/release semantics, and that video plus verdict_notes land on the run. These are exactly the operational traits an agent needs and none are inferable from the schema alone.

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 purpose, then cost, then async contract, then prerequisites — a sensible order with clear paragraph headers for the async behavior. It is somewhat verbose (the 'never blocks/times out' rationale and the VM auto-lease sentence restate schema text), costing a point, but no sentence is filler.

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?

For a 9-parameter, metered, async, mutation-style tool with no annotations, the description covers cost/refusal, default async contract, polling target, inline alternative, prerequisites, and where the verdict and video land. Even though an output schema exists, it names the specific result fields (run.verdict_notes, run.video) an agent should inspect, leaving no material gap before calling.

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 description coverage is 100% and the schema already documents wait, vm_name leasing, max_steps bounds, and the app_name/scenario key semantics in comparable detail, so the baseline is 3. The description reinforces the async-vs-wait tradeoff but adds little parameter meaning beyond what is already in the field descriptions.

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?

Opens with a specific verb+resource: 'Autonomously TEST a GUI workflow and report whether it works.' It also identifies what is driving the test (OpenFactory's AI on a tester VM) and names the contrasting sibling path (desktop_screenshot / desktop_interact for your own model), so an agent can distinguish it from the low-level desktop tools without opening schemas.

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?

Explicit when-to-use and when-not-to: use this for AI-driven GUI testing, or drive the VM yourself with desktop_screenshot/desktop_interact to use your own model. It also states the prerequisite ('Run ensure_tester_vm first, and make sure the app is reachable from the VM') and gives concrete routing for the async path (poll get_app_test_run) versus the inline path (wait=true, short workflows only).

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.