Skip to main content
Glama

OpenFactory

run_app_test_group

Re-run a whole group of saved app-test scenarios in the background.

Returns immediately with a batch_id; the scenarios replay on the app's tester-VM pool (multiple in parallel, one per free pool VM), each isolated with a fresh browser tab. Poll get_app_test_group(batch_id) for live progress, or cancel_app_test_group(batch_id). One batch per user at a time.

Pass delay_hours (0-72) to defer the re-run up to 3 days: the call returns a 'scheduled' batch right away and the run fires automatically when its time arrives (durable across restarts). A scheduled batch does not block running other tests now, and cancel_app_test_group cancels it before it fires.

Starting a batch requires a registered OpenFactory user authenticated with an MCP API key. Anonymous guest sessions may not schedule batch work.

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

Input Schema

NameRequiredDescriptionDefault
scopeYesWhat to re-run: 'all' (every saved scenario you own), 'project' (all scenarios in a project), or 'app' (all of one app's).
api_keyNoMCP API key
app_nameNoRequired when scope='app'
project_idNoRequired when scope='project'
delay_hoursNoDefer the re-run by this many hours (0-72, up to 3 days). 0 = run now. The batch is scheduled durably and fires when its time arrives.
on_behalf_ofNoRun the batch as THIS OpenFactory user (id or email) instead of the caller, so the scenarios replay on their tester-VM pool with their stored secrets (e.g. a staging protection-bypass token + app login). Only honored for the system agent or a super-admin.
session_tokenNoSession token

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

No annotations are supplied, so the description must carry the full behavioral burden, and it largely does: the call returns immediately with a batch_id, scenarios replay asynchronously on the tester-VM pool with parallel execution and a fresh browser tab per scenario, scheduling is durable across restarts, and anonymous guest sessions are rejected. The authentication prerequisite (registered OpenFactory user with an MCP API key) is stated explicitly, which is unusually complete for a mutation-style tool.

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 batch_id contract before moving to scheduling and auth, and every paragraph carries distinct information. There is minor redundancy between 'Returns immediately with a batch_id' and 'the call returns a "scheduled" batch right away', but no padding.

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 seven-parameter asynchronous batch tool with an output schema already documenting return values, the description covers concurrency limits, isolation model, scheduling durability, cancellation path, and auth requirements. Nothing an agent needs in order to invoke it correctly is missing.

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 the baseline is 3, but the description adds real meaning for delay_hours — that the call returns a 'scheduled' batch right away, that it fires automatically at its time, and that it does not block other runs. The scope values are left to the schema, and on_behalf_of is not mentioned in the description at all, which keeps this from 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 — 'Re-run a whole group of saved app-test scenarios' — plus the key scope qualifier 'in the background'. It separates itself from the polling and cancellation siblings by naming them and assigning them their own roles, so an agent can place this tool immediately.

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 explicit routing: poll get_app_test_group(batch_id) for progress, use cancel_app_test_group(batch_id) to stop, and pass delay_hours(0-72) to defer. It also states the constraint that only one batch per user may run at a time and that scheduled batches do not block immediate runs, which is exactly the decision context an agent needs.

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.