Skip to main content
Glama

Run a batch of actions

play

Batch multiple Twine game actions into one call and get a compact log plus final observation; execution stops at the first failure.

Instructions

Run several actions in one call and get one compact log plus the final observation, instead of a full observation per step. Tokens: 3 or "label" (choose), "wait 800", "back", "restart", "goto ", "click ", "fill = ", "# note". Stops at the first failure.

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": {
      "steps": "<steps>"
    },
    "name": "play"
  }
}

Input Schema

NameRequiredDescriptionDefault
stepsYesActions in order: 3 / "Label" / "wait 800" / "back" / "goto Hall" / "click SAVES" / "# note".
untilNoStop early once this text appears in the passage.
formatNo"text" (default) or "json".
game_idNoSession id from open_game. Omit when a single game is open.
max_stepsNoCap how many steps run (default 20).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the burden and delivers key behavior: the return shape (one compact log plus final observation) and the failure policy ('stops at the first failure'). It does not state whether already-applied steps persist after a failure or what error output looks like, which are the remaining gaps for a mutating tool.

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?

The purpose and output tradeoff are front-loaded in one sentence, followed by a dense, scannable token list that earns every word. Nothing extraneous, nothing padded.

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 five-parameter batch-execution tool with no annotations or output schema, the description covers the essentials: what it returns, that it halts on failure, and the valid action syntax. Optional knobs like 'until' and 'max_steps' are left entirely to the schema, which is acceptable given full schema coverage.

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 all five parameters are already documented; the description only elaborates the action grammar for 'steps' (e.g. 'fill <ref> = <value>', '# note') that the schema also sketches. It adds no meaning for 'until', 'format', 'game_id', or 'max_steps', so baseline 3 is appropriate.

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 ('run several actions in one call') and immediately contrasts the output shape with the per-step alternative ('a full observation per step'), so an agent can tell what it gets and why it differs from issuing actions individually.

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 gives a clear selection criterion: batch several actions when you want one compact log instead of an observation per step, which implicitly routes single actions elsewhere. It stops short of naming any sibling tool or stating explicit exclusions.

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