Skip to main content
Glama

OpenFactory

ensure_tester_vm

Get-or-create your desktop tester VM for an app (idempotent).

ONE reused VM per app: call with app='' and you always get the same of-tester-- VM (the same one the app's test-run pool uses). Reuses it if running, restarts it if stopped, creates it from the pinned tester ISO (XFCE

  • Firefox) if missing. Ordinary testers do not autostart after host reboots and can be reclaimed by idle retention when unleased and unreferenced. Explicitly pinned warm-pool testers retain autostart and pool protection. Delete a tester explicitly with delete_vm when you no longer want it. Ephemeral by default (no persistence disk) so a fresh tester comes up fast and agent-ready within a typical tool-call timeout; pass persistence_gb>0 to add a Zone-2 disk whose contents survive reboots.

Then drive it with desktop_open_url / desktop_screenshot / desktop_click etc., and record what you test with start_app_test.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "ensure_tester_vm"
  }
}

Input Schema

NameRequiredDescriptionDefault
appNoApp this tester is for, e.g. 'knostra'. Identity is tied to the app's URL host (see app_url): you get ONE reused VM per app/host, shared with that app's test-run pool — the same app always returns the same VM. To run more tests at once, scale the app's pool with scale_tester_pool instead of creating extra VMs.
vcpusNoVirtual CPUs (create only)
lab_idNoOwned private lab; selects a fresh lab-scoped tester rather than an app pool
api_keyNoYour OpenFactory MCP API key (optional)
app_urlNoThe app's URL, e.g. 'https://staging.knostra.ai'. The tester VM is keyed by this URL's host so every run for the same app/env reuses ONE VM. Pass it whenever known; falls back to keying by `app` when omitted.
memory_mbNoVM memory in MB (create only)
wait_secondsNoHow long to wait for the guest agent before returning (0-480). Keep this under your MCP client's per-call timeout (often ~120s): the call returns as soon as the agent is ready (~45-60s for a fresh ephemeral tester), so the default 90 leaves margin and won't hang the tool call to a client-side timeout.
session_tokenNoSession token from a previous tool response (pass this to maintain session continuity)
lab_network_idNoLogical tester network belonging to that lab
persistence_gbNoZone-2 persistence disk size in GB (create only). Default 0 = no persistence disk: an ephemeral tester provisions fast and reliably. A persistence disk triggers a first-boot init+reboot that can push provisioning past a client's tool-call timeout (and can leave the guest agent down mid-reboot) — only set >0 (or -1 for the server default) if you truly need state to survive reboots.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it does disclose a lot: reuse-if-running, restart-if-stopped, create-from-ISO, no autostart after reboot, idle-retention reclaim, and the ephemeral-vs-persistent tradeoff. However, it never states authorization/permission requirements for claiming or reclaiming a VM, nor concurrency behavior when the same app VM is already leased — gaps that matter for a stateful provisioning tool with zero annotation coverage.

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?

The lead sentence is a clean front-loaded summary and the paragraph breaks group lifecycle, retention, deletion, persistence, and next steps logically. It runs long and repeats the persistence tradeoff already covered in the schema, costing a point, but there is no filler or ambiguity.

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 ten-parameter, stateful provisioning tool, the description covers identity/reuse semantics, provisioning timing versus client timeouts, ephemeral vs persistent disks, retention/autostart nuances, and teardown. An output schema exists, so return-value details are appropriately omitted; nothing an agent needs 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.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all ten parameters thoroughly, including the app_url host keying and the wait_seconds timeout rationale. The description mostly restates that content (the ephemeral/persistence_gb tradeoff duplicates the schema text) rather than adding new semantics, so it sits at the baseline.

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?

The opening sentence gives a specific verb+resource ('Get-or-create your desktop tester VM for an app') and immediately signals idempotency. The following lines pin down the exact identity scheme ('of-tester-<you>-<app>'), which lets an agent distinguish this from create_vm, ensure_lab_tester, and scale_tester_pool without opening any schema.

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 routing is present in both directions: use scale_tester_pool to run more tests concurrently instead of provisioning extra VMs, and use delete_vm to remove a tester. The closing sentence sequences follow-up work ('drive it with desktop_open_url / desktop_screenshot / desktop_click ... record what you test with start_app_test'), so the agent knows what to call next.

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.