Skip to main content
Glama

Manage game sessions

session

Lists open Twine playtest games with IDs and metadata, then closes a selected game or all games, including their browser contexts and static servers.

Instructions

list: the open games (id, title, format, step, source). close: shut one down, including its browser context and static server. close_all: shut every game down.

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": {
      "action": "<action>"
    },
    "name": "session"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYeslist open games, close one, or close all.
game_idNoSession id from open_game. Omit when a single game is open.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden, and it does contribute real destructive context: close also tears down the browser context and static server, which an agent could not infer from 'close'. However it never says whether closure is irreversible, what happens to in-flight state or logs, or how errors are surfaced when the id is unknown or ambiguous — the dangerous parts are only half-disclosed.

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?

Three front-loaded clauses keyed by action name, zero filler, and the destructive action is placed before the bulk cleanup. It is slightly telegraphic — 'shut one down' and 'shut every game down' read as fragments — but nothing is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 2-parameter lifecycle tool with no output schema, the description does supply the one piece of return information an agent needs for list. It falls short on the mutation side: what close/close_all actually leave behind, and whether close_all is a safe catch-all, remain unstated, so an agent must probe to call them confidently.

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% and the action enum is self-documenting, so the schema already does the heavy lifting; the description adds nothing about game_id beyond the omission rule that is also in the schema. The listed fields (id, title, format, step, source) describe output rather than narrowing parameter meaning. Baseline 3 applies.

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?

The description gives a specific verb-plus-resource for each of the three modes: 'list: the open games', 'close: shut one down', 'close_all: shut every game down', and even enumerates the fields returned by list (id, title, format, step, source). It is clear at the action level, though it never states in words that this tool manages the lifecycle paired with open_game, so differentiation relies partly on the title.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

The text enumerates the three actions but gives no guidance on when to reach for this tool versus a sibling, no prerequisites, and no exclusions (for example, whether close should be preferred over close_all in any situation). The only routing hint in the whole definition — that game_id comes 'from open_game' and can be omitted when a single game is open — lives in the schema, not the description.

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