Skip to main content
Glama

Click a choice

choose

Clicks a passage option by 1-based number or partial label from the last observation; optional expected text guards against wrong links or dialog buttons.

Instructions

Click a passage choice by 1-based number from the last observation, or by (partial) label. Numbered choices include dialog buttons (tagged [dialog]). Pass expected to guard against clicking the wrong link.

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": {
      "choice": "<choice>"
    },
    "name": "choose"
  }
}

Input Schema

NameRequiredDescriptionDefault
choiceYes1-based number from the last observation, or label text (case-insensitive, may be partial).
formatNo"text" (default) or "json".
game_idNoSession id from open_game. Omit when a single game is open.
expectedNoSubstring the clicked label must contain; fails safely if it does not match.
allow_externalNoAllow links that leave the game (default false, they are blocked).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.3.0
    • changedInput schema / properties / allow_external / description
      Previous value: -"Allow following links that leave the game (default false, they are blocked)."New value: +"Allow links that leave the game (default false, they are blocked)."
    • changedInput schema / properties / choice / description
      Previous value: -"1-based choice number from the last observation, or label text (case-insensitive, may be partial if unambiguous)."New value: +"1-based number from the last observation, or label text (case-insensitive, may be partial)."
    • changedInput schema / properties / expected / description
      Previous value: -"Substring the clicked choice label must contain; fails safely if it does not match."New value: +"Substring the clicked label must contain; fails safely if it does not match."
    • 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."
    • changedInput schema / required
      Previous value: -[
      -  "game_id",
      -  "choice"
      -]New value: +[
      +  "choice"
      +]
  2. First observedv0.1.3

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does add real behavior: expected fails safely on a mismatch, and links that leave the game are blocked by default via allow_external. The [dialog] tagging convention is disclosed, which prevents an agent from misreading the numbering. It does not say what a failure returns or whether the click is retried, keeping it below 5.

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?

Two tightly packed sentences, front-loaded with the primary identification mechanism, and the guard hint is placed where an agent will read it. Nothing is redundant. Phrasing is compressed almost to the point of being cryptic in the [dialog] clause, which keeps it from a 5.

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?

A five-parameter mutation tool with no annotations and no output schema, so the description must carry behavior. It covers the click targeting, the safety guard, and external-link policy, but says nothing about what a successful click returns or what state change the agent should expect next. Adequate, not complete.

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 in the schema, establishing a baseline of 3. The description reinforces the choice parameter with the 'from the last observation' scoping and the [dialog] tag convention, but adds no syntax detail for format, game_id, or expected beyond what the schema states.

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?

States a specific verb and resource: clicking a passage choice identified either by 1-based number from the last observation or by (partial) label. That is a concrete, distinctive mechanism an agent can act on. It does not explicitly distinguish itself from siblings like click_ui or find_ui, so it stops short of 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 Guidelines3/5

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

Usage is implied: choices come from the last observation, and numbered entries may include dialog buttons tagged [dialog]. The expected guard and the external-link block are described, but there is no explicit guidance on when to use this instead of click_ui or find_ui, and no stated prerequisite such as running observe first.

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