Skip to main content
Glama

OpenFactory

resume_test_environment

Resume the exact VM snapshot captured by a completed test run.

The returned vm_name is the of-test-* VM this run used, and it is the vm_name argument for every probe: guest_command for functional checks, desktop_screenshot and desktop_read_region to read the display, desktop_interact to drive it.

Resuming does NOT extend the retention window in retained_until. Once that passes, the VM is gone — rerun the same test contract rather than standing up an unrelated VM whose state proves nothing about this run. A judged VM can go sooner, a day after its verdict or last use, unless a goal is still working on it.

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": {
      "run_id": "<run_id>"
    },
    "name": "resume_test_environment"
  }
}

Input Schema

NameRequiredDescriptionDefault
run_idYesThe completed test run whose retained VM snapshot to resume
api_keyNoYour OpenFactory MCP API key (optional)
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.1/5.0
Behavior4/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 disclose the key non-obvious behavior: resuming does not extend the retention window, plus the concrete retention rules (gone after retained_until; judged VMs one day after verdict or last use unless a goal is still active). It does not say whether repeated resumes are idempotent, whether the resumed VM is mutated, or what auth the api_key entails, leaving some operational questions open.

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 core action is front-loaded in the first sentence, and the remaining two paragraphs each carry distinct value (probe wiring, then lifetime rules). Slightly verbose in places, but no sentence is filler.

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?

An output schema exists, yet the description still usefully explains the vm_name return value and its role, and it fully covers the lifetime/expiry behavior that the schema cannot express. Only the authentication story for api_key/session_token is left unaddressed, which is a minor omission for a tool with 100% schema coverage.

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 coverage is 100%, so run_id, api_key and session_token are already documented in the schema. The description reinforces that run_id must reference a completed run with a retained snapshot and explains that vm_name is the handle for subsequent probes, but adds no new meaning about the credential parameters. Baseline 3 is appropriate when the schema does the heavy lifting.

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 ('Resume the exact VM snapshot captured by a completed test run') with a clear scope condition: the run must be completed and its snapshot retained. It also names the concrete downstream probes (guest_command, desktop_screenshot, desktop_read_region, desktop_interact) that consume the returned vm_name, so an agent can place the tool in a workflow without opening another schema.

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

Usage Guidelines4/5

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

Gives explicit post-call guidance — the returned vm_name is the argument for every probe — and an explicit when-not: if retention has lapsed, rerun the same test contract instead of standing up an unrelated VM. The gap is that it never contrasts with a sibling such as resume_lab, so the agent must infer which resume tool applies to which environment.

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.