Skip to main content
Glama

check

Runs a compiled .flow.ts once in plain Playwright to report pass/fail, or starts a background readiness job and returns a job_id to poll.

Instructions

Run a compiled .flow.ts once under plain Playwright (no model) and report pass/fail (exit 4 = failed, 2 = could not run). With ready=true it runs the readiness gate (several clean runs) as a background job: the call returns a job_id; poll job_status.

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": {
      "flow_file": "<flow_file>"
    },
    "name": "check"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoProject directory (absolute) the command runs in; sitelooper.config.json is found from here. Default: the server's working directory.
runsNoReadiness executions (--runs), with ready.
varsNoFlow variables, passed as repeated --var k=v. "{n}" in a value is replaced per run with a fresh value. Never a secret: use {{env:NAME}} markers in instructions instead.
readyNoReadiness check (--ready), run as a job.
flow_fileYesPath to the .flow.ts file, relative to cwd or absolute.
fixture_isolationNoDeclare that project fixtures prepare fresh data (--fixture-isolation), with ready.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations only declare openWorldHint, so the description carries most of the burden and does well: it discloses exit code meanings (4 = failed, 2 = could not run), that ready mode is asynchronous, that it returns a job_id, and how many runs the gate performs. It omits permission/auth or side-effect characteristics of a headless browser run.

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?

Two dense sentences, front-loaded with the default behavior and followed by the branching ready mode plus follow-up step. Every clause carries information; the exit-code parenthetical is packed but earns its place.

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?

With no output schema, the description supplies the result contract (pass/fail, exit codes, job_id) and the async follow-up, which is what an agent needs. Minor gaps remain around what a failing run reports and the browser/environment side effects of an open-world tool.

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, but the description adds real meaning beyond the schema by explaining that ready spawns a job and that the readiness gate is 'several clean runs' (tying runs and ready together). It says nothing extra about vars or fixture_isolation beyond the schema text.

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?

States a specific verb and resource: run a compiled <name>.flow.ts once under plain Playwright, no model, and report pass/fail. The 'no model' qualifier distinguishes it from model-driven siblings and 'compiled' distinguishes it from authoring tools. It never names a sibling as an alternative, so it stops 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?

Clear conditional usage: default single run, or ready=true for the readiness gate as a background job, with the explicit follow-up that you poll job_status. It does not say when to prefer do or rerecord instead, so exclusion guidance is absent.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.