Skip to main content
Glama

OpenFactory

get_verification_session

Read your goal's verification session: its state, its VM, and what it is graded on.

Your build is verified by ONE recorded session that you drive yourself, on the of-test-* VM named here. That vm_name is the vm_name argument of every desktop_screenshot, desktop_read_region, desktop_interact, desktop_open_url and guest_command call you make for this build — there is no other machine, and you do not create one. Driving your own build from an outside MCP client, pass its build_id (and your account key) to all four session tools; the platform judge grades your recording just the same.

status is provisioning (the platform is booting the image), ready (drive it), installing (the platform is installing to disk; hands off), judging (handed in), or the terminal verdict passed/failed/error. admission_pending means the saved launch has no run record yet; retry the diagnostic_next_tool on the same image. Failed artifact finalization requires build_image before a verification launch can be admitted. intent_items are the claims the platform judge will grade the recording against: walk them one at a time and record a step for each, passing its id in intent_item_ids. Each item's rule is how it is graded: platform (decided by the platform's own root check; a bound terminal frame is optional, shown beside the platform's result), evidence (one clear frame of it, and no later frame contradicting it, so the screen you finish on decides the no-dialog claim; a claim about how the desktop looks counts only as the desktop renders it, never as on-screen text naming the value), console (shown on the text console). A feature item's assertion is the check behind the claim -- its type and params name the package, command or path to show. required false means the judge not seeing this claim (insufficient) does not fail the run; a claim it sees contradicted still fails it. seconds_remaining and the budget are the platform's, not yours.

delivery is the platform's current evidence-based decision on policy 2: verified, ready_with_limitations, or blocked. Ready with limitations can finish through complete_goal after disclosing all limitations; it grants no full certificate and never changes last_verdict. interpretations are the audited finite readings of vague owner preferences.

last_verdict is None until the judge has graded the run; then it holds overall, the termination reason, counts, and per item its outcome (pass | fail | insufficient | infra), reason, what was missing and the frames it was graded on.

sessions_left_on_this_artifact is how many more judged sessions these exact bytes allow after this run (a run still open counts as one that will be judged; one the platform ends as an error is not charged). At 0 only a changed image can be verified again: start_verification_session refuses. It is None for a build-group node, whose group keeps its own count.

status refused means the platform would not launch a session for this artifact at all: refusal holds the reason, the exact refusal text and the next step. Nothing will open until the image changes.

A failed run can have no session because provisioning stopped first. error_message and diagnostic_next_tool then point to its evidence: inspect that run before deciding whether the image or platform needs repair. When its failure_kind is infrastructure the platform failed it, and message says what to do instead.

phase is live or installed (installing between them). installed_phase says whether this build's admitted intent includes the installed system; when it is true the session has TWO phases on this one run: finish the live phase with finish_verification_session and the platform installs the image to disk and boots the installed system (install shows its progress; the VM refuses input meanwhile). Poll until status is ready again with phase installed, then show every listed claim again on the installed system -- the judge grades that recording separately -- and finish once more. Both phases must pass to certify. If installed_phase is false but the owner requires installation, use revise_verification_checklist to add required phase: "installed_system" checks with an enabled drivable installer. A textual installed claim with the default live phase does not schedule installation. This is the supported checklist revision path, and preserves existing checks and budgets.

status artifact_check means a phone image, which has no session at all: artifact_checks are the sealed checks it is certified on, and run_id is the run complete_goal certifies. status no_verification_run means a Raspberry Pi image, which has neither: say so plainly in the chat and end your turn.

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

Input Schema

NameRequiredDescriptionDefault
api_keyNoYour OpenFactory MCP API key, unless it is already the Authorization header
build_idNoThe build you are verifying. Required when you drive your own build over the public surface; a platform goal session may omit it.
session_tokenNoSession token from a previous tool response (a guest cannot verify)

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 so well: it enumerates every status value (provisioning, ready, installing, judging, passed/failed/error, refused, artifact_check, no_verification_run) and explains admission_pending, error_message, sessions_left_on_this_artifact counting semantics, refusal, and the two-phase live/installed flow. The only missing piece is an explicit statement that the call is read-only and non-mutating.

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

Conciseness3/5

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

The first sentence is a good front-loaded summary, but the body sprawls into workflow instructions for other tools (revise_verification_checklist, finish_verification_session, complete_goal) and explains return-field semantics at length despite an output schema existing. Most sentences carry real information, but the volume is disproportionate for a single read tool.

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 highly conditional tool with branching statuses, error paths, a two-phase install flow, and artifact-specific modes, the description covers every state an agent could encounter and what to do next. Nothing needed to interpret the response 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 coverage is 100%, so the schema already documents api_key, build_id, and session_token. The description adds only light context — build_id required when driving over the public surface, and that a guest cannot verify — which largely restates the schema. Baseline 3 applies.

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 and resource: 'Read your goal's verification session: its state, its VM, and what it is graded on.' The scope is unambiguous and clearly distinguishable from mutation siblings like start_verification_session and finish_verification_session, which it references by name.

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 substantial conditional routing: poll until status is ready, use diagnostic_next_tool on failed runs, use revise_verification_checklist when installation is required, and complete_goal to finish under ready_with_limitations. It lacks an explicit 'call this first / instead of X' framing for the read itself, but the surrounding context is strong.

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.