Skip to main content
Glama

OpenFactory

get_pending_checkpoint

Long-poll for the oldest pending harness checkpoint visible to the caller.

Returns {checkpoint: {...} | null, pending_count: int}. The checkpoint's prompt + context (which includes proposed scenario_steps + finding + screenshot_url for mining checkpoints, or step_index + step_description for replay checkpoints) is what the harness should evaluate. Then call submit_scenario_checkpoint(checkpoint_id, verdict, …) to resume the paused walker / runner.

Common harness loop: while walking: r = get_pending_checkpoint(walk_id=walk_id, wait_seconds=25) cp = r.get("checkpoint") if not cp: continue # Read screenshot URL, inspect proposed scenario, etc. verdict = "pass" if scenario_looks_solid else "fail" submit_scenario_checkpoint(cp["checkpoint_id"], verdict=verdict, notes=…)

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_pending_checkpoint"
  }
}

Input Schema

NameRequiredDescriptionDefault
run_idNoFilter pending checkpoints to this scenario run_id.
api_keyNoMCP API key
walk_idNoFilter pending checkpoints to this walk_id. Mutually exclusive with run_id; one of them should be set.
wait_secondsNoLong-poll budget (0-25 s). When 0, returns immediately with whatever's pending. Default 25.
session_tokenNoSession token

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral load and does it well: it discloses long-poll blocking semantics, that a null checkpoint can be returned (with a continue snippet), and that the walker/runner is paused until submit_scenario_checkpoint is called. It does not cover error behavior if the poll times out server-side or any auth/permission requirements, leaving a small gap.

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 behavior is front-loaded in the first sentence and the return shape follows immediately. The pseudo-code loop is longer than strictly necessary and repeats the wait/continue logic already stated, but it earns its place by showing the correct end-to-end pattern.

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 long-polling tool with an output schema present, the description supplies the missing piece: what to inspect on the checkpoint and which tool to call to resume. Only edge cases such as empty-poll termination or auth requirements are unaddressed, which is a minor gap given full schema coverage and an existing output schema.

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, and the description goes beyond it by showing how wait_seconds and walk_id are actually used in the polling loop (wait_seconds=25). It does not explain the run_id-vs-walk_id mutual exclusion that the schema documents, so the added value is real but partial.

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?

"Long-poll for the oldest pending harness checkpoint visible to the caller" gives a specific verb (long-poll), a specific resource (pending checkpoint), and a scope qualifier (oldest, visible to caller). This clearly distinguishes it from siblings like get_checkpoint (single known checkpoint) and create_checkpoint, so an agent can select it 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 Guidelines4/5

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

The description defines a concrete usage context with the common harness loop and names the follow-up call, submit_scenario_checkpoint(checkpoint_id, verdict, …), so the agent knows what to do after receiving a checkpoint. It does not state explicit exclusions or when to prefer get_checkpoint over this polling tool, which keeps it just short of 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.