Skip to main content
Glama

Play Script

play_script

Start playing a saved script. Returns immediately with a run id and a queued status, since a play can take anywhere from a few seconds (HTTP) to several minutes (browser or Playwright); read the results with get_play_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": {
      "projectId": "<projectId>",
      "scriptId": "<scriptId>"
    },
    "name": "play_script"
  }
}

Input Schema

NameRequiredDescriptionDefault
scriptIdYesThe script id to play.
projectIdYes
skipWaitTimesNoSkip wait/think times for a faster run. Defaults to false.

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.2/5.0
Behavior4/5

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

Annotations cover the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false, openWorldHint=true), and the description adds real context beyond them: the call is asynchronous, returns a run id with 'queued' status, and duration ranges from seconds to minutes depending on HTTP vs browser/Playwright execution. It does not restate the non-idempotent annotation, which would have been a natural addition.

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?

A single dense sentence, front-loaded with the action, then the async contract, then the routing pointer. No filler and nothing the agent must read twice.

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 usefully discloses the return shape (run id, queued status) and the async expectation, which is the key information for a fire-and-poll tool. Minor gaps remain: no mention of failure behavior when a play cannot start, and no note on stopping a run in progress via stop_script.

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 67%, with scriptId and skipWaitTimes documented in the schema (including the default for skipWaitTimes). projectId has no description in either the schema or the description, so the description does not compensate for that gap. Baseline 3 given the schema carries most parameter meaning.

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?

States a specific verb and resource ('Start playing a saved script') and immediately names the sibling that reads the outcome ('read the results with get_play_status'), so the tool is separable from get_play_status and stop_script 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 async workflow is spelled out: call this to kick off a play, then use get_play_status for results. It gives clear positive guidance but no explicit exclusions (e.g. when to use validate_script first, or how this relates to stop_script for an in-flight run).

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.