Skip to main content
Glama

Observe the game (optionally waiting)

observe

Reads the current passage state—text, choices, inputs, dialog, and status—optionally waiting for specified text or a timeout before returning it.

Instructions

Read the current passage: text, choices, inputs, dialog, status. Pass for_text or wait_ms to wait first — timed passages need no second call. Inputs are paginated in windows of 40.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "observe"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNo"text" (default) or "json".
game_idNoSession id from open_game. Omit when a single game is open.
wait_msNoWait this long first (also for_text timeout, default 15000).
for_textNoWait until this text appears, then observe.
variablesNo"diff" (default) prints only changes; "full" dumps the tree.
since_lastNoOnly a "no change" note when unchanged (default true; json ignores).
inputs_limitNoInputs to list (default 40).
inputs_offsetNoSkip this many inputs (default 0).
max_text_charsNoCap passage text (default 12000).
include_variablesNoEmbed story variables (default false).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed12 schema fields changedv0.3.0
    • addedInput schema / properties / for_text
      Added value: +{
      +  "description": "Wait until this text appears, then observe.",
      +  "type": "string"
      +}
    • changedInput schema / properties / format / description
      Previous value: -"Output format: \"text\" (default, human-readable) or \"json\" (JSON string for programmatic use)."New value: +"\"text\" (default) or \"json\"."
    • changedInput schema / properties / game_id / description
      Previous value: -"Session id returned by open_game."New value: +"Session id from open_game. Omit when a single game is open."
    • removedInput schema / properties / include_status
      Removed value: -{
      -  "description": "Include status/caption text (default true).",
      -  "type": "boolean"
      -}
    • changedInput schema / properties / include_variables / description
      Previous value: -"Embed the (truncated) story variables (default false; prefer get_variables for specific keys)."New value: +"Embed story variables (default false)."
    • changedInput schema / properties / inputs_limit / description
      Previous value: -"How many inputs to list (default 40)."New value: +"Inputs to list (default 40)."
    • changedInput schema / properties / inputs_offset / description
      Previous value: -"Skip this many inputs before listing (default 0)."New value: +"Skip this many inputs (default 0)."
    • changedInput schema / properties / max_text_chars / description
      Previous value: -"Cap passage text length (default 12000)."New value: +"Cap passage text (default 12000)."
    • changedInput schema / properties / since_last / description
      Previous value: -"If true and nothing changed, return only a short \"no change\" note (default true; ignored in json format)."New value: +"Only a \"no change\" note when unchanged (default true; json ignores)."
    • addedInput schema / properties / variables
      Added value: +{
      +  "description": "\"diff\" (default) prints only changes; \"full\" dumps the tree.",
      +  "enum": [
      +    "diff",
      +    "full"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / wait_ms
      Added value: +{
      +  "description": "Wait this long first (also for_text timeout, default 15000).",
      +  "maximum": 120000,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "game_id"
      -]
  2. First observedv0.1.3

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description must carry the behavioral burden, and it does: "Read" frames it as non-mutating, the waiting semantics (wait before returning rather than polling) are non-obvious, and the 40-item input window signals truncation. It omits failure behavior when no game is open and what the json vs text shapes look like.

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?

Three short sentences, front-loaded with the core action, then the waiting trick, then the pagination caveat. Nothing is padded and every sentence carries information an agent needs.

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?

Ten optional parameters are fully documented in the schema and there is no output schema, so the description mainly needs to explain purpose and the waiting/pagination model, which it does. Minor gaps remain around multi-game disambiguation (game_id) and error states, but nothing likely to cause a wrong call.

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 the baseline is 3. The description adds a modest amount beyond the schema — that wait_ms doubles as the for_text timeout and that inputs are paginated — but adds no guidance on format, since_last, or the variables diff mode.

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?

"Read the current passage" is a specific verb+resource, and the enumeration (text, choices, inputs, dialog, status) tells an agent exactly what state it gets back. It does not explicitly differentiate itself from siblings such as snapshot or get_variables, which keeps it below 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?

It gives concrete routing advice: pass for_text or wait_ms to wait first, and notes that timed passages therefore need no second call — a real usage rule an agent would otherwise get wrong. It stops short of saying when to prefer snapshot, live_view, or get_variables instead.

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