Skip to main content
Glama

OpenFactory

get_test_run_screenshot

Return an assertion frame, recorded final display, or resumed live display.

This does not require a reachable guest agent. Use it to inspect visual evidence before deciding whether a failed assertion belongs to the image or to the verifier/platform.

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": "get_test_run_screenshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
run_idYesThe test run ID whose final/live display to inspect
api_keyNoYour OpenFactory MCP API key (optional)
assertion_idNoOptional results[].screenshot_id for the exact per-assertion frame; for v2, a listed v2-step-* or v2-final frame is also accepted; omit for the run's final/live display
session_tokenNoSession token from a previous tool response

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations supplied, the description carries the disclosure burden. It usefully volunteers one non-obvious operational trait ('does not require a reachable guest agent'), but omits whether the call is read-only, what happens when no frame exists, output format (image URL vs. binary), and any timeout or size behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the return content and followed by the operational constraint and the use case. No filler or restated metadata.

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?

For a read-only retrieval tool with no output schema and no annotations, the description covers purpose, the three return modes, the guest-agent requirement, and the evaluation use case. Remaining gaps around output encoding and no-frame fallback behavior are minor, though the absence of an output schema leaves the return shape under-specified.

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 all four parameters including assertion_id and its acceptance rules are already documented. The description's frame enumeration loosely corroborates the assertion_id-omitted vs. provided distinction but never ties 'assertion frame' to that parameter explicitly, so it adds little beyond the schema baseline.

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 states a specific verb ('Return') and enumerates exactly what comes back: an 'assertion frame', a 'recorded final display', or a 'resumed live display', which matches the tool name's screenshot purpose. It never names or differentiates itself from the several sibling retrieval tools (get_test_evidence, annotate_screenshot, desktop_screenshot), so it falls short of a 5.

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 a concrete decision context: 'Use it to inspect visual evidence before deciding whether a failed assertion belongs to the image or to the verifier/platform.' That is a clear when-to-use rule. It offers no explicit exclusions or named alternative tools for other evidence needs, so it is not a 5.

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.