Skip to main content
Glama

Get Play Status

get_play_status
Read-onlyIdempotent

Get the current state of a play, with per-step results and log that fill in as it progresses, optionally waiting for it to finish. After play_script, call this with waitSeconds instead of sleeping between polls; the results are complete once running is false. Each step's has-flags (hasBody, hasLog, and their siblings) say which get_step_detail parts would return something for that step, so drill down only where a flag is true. On a Playwright run the whole runner log belongs to the command step that ran the spec file — hasLog points there. A step's screenshotKeys are in capture order; a Playwright step lists the script's own page.screenshot calls in order, with the runner's final screenshot of the test last.

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": {
      "projectId": "<projectId>",
      "scriptRunId": "<scriptRunId>"
    },
    "name": "get_play_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectIdYes
scriptRunIdYesThe script run id returned by play_script.
waitSecondsNoOptional: wait up to this many seconds (capped at 30) and return the moment the play reaches a terminal state. On expiry it returns the current status rather than an error, so just call again for a longer run. Omit for an immediate read.

Output Schema

NameRequiredDescriptionDefault
logYes
stepsYes
errorsNo
statusYes
runningYes
startedAtNo
finishedAtNo
scriptRunIdYes
dashboardUrlYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / $schema
      Added value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), and the description adds substantial non-obvious behavior: progressively filling results, polling instead of sleeping, the running=false completion signal, and the Playwright quirk that the whole runner log attributes to the command step. The has-flags and screenshotKeys ordering notes tell the agent how to interpret the returned payload, not just how to call it.

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?

Purpose and the waitSeconds pattern are front-loaded in the first two sentences, and every later sentence carries concrete semantics rather than filler. The final sentence on screenshotKeys ordering is dense and packed with two distinct ideas, but it is not padding.

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?

An output schema exists, so return values need not be enumerated, yet the description still explains how to read the payload (has-flags, Playwright log attribution, screenshot ordering). Together with the completion criterion and polling guidance, an agent has everything needed to poll correctly and interpret results across run types.

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 67% and already documents waitSeconds (including the 30s cap and non-error expiry) and scriptRunId. The description still adds real meaning by framing waitSeconds as a sleep replacement tied to the running=false termination, and by tying the has-flags to get_step_detail's parts. It says nothing about projectId, which is left entirely to inference.

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?

The opening sentence gives a specific verb and resource — "Get the current state of a play, with per-step results and log" — and immediately scopes it against siblings by naming play_script and get_step_detail. An agent can distinguish this read-status tool from the launch tool and the per-step drill-down tool 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 Guidelines5/5

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

Explicit sequencing is given: "After play_script, call this with waitSeconds instead of sleeping between polls," plus the terminal condition "results are complete once running is false." It also states the when-not rule for the drill-down sibling — only call get_step_detail where a has-flag is true — which is exactly the routing guidance an agent needs.

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.