Skip to main content
Glama

Move through the story (back / restart / goto)

navigate

Control passage flow in a Twine game: undo the last passage, restart with an optional seed, or jump to a named passage for QA testing.

Instructions

back: undo one passage (SugarCube/Harlowe). restart: start over, optionally reseeded. goto: jump straight to a named passage — QA only, it skips the path there.

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": "navigate"
  }
}

Input Schema

NameRequiredDescriptionDefault
seedNoNew SugarCube PRNG seed for action:"restart".
actionYesWhat to do.
formatNo"text" (default) or "json".
targetNoPassage name for action:"goto".
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

A3.8/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 disclose engine compatibility for back, that restart can be reseeded, and that goto bypasses the traversal path. It does not state whether restart destroys progress irreversibly, what back does at the first passage, or whether goto perturbs history — meaningful gaps for a state-mutating navigation 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?

A single sentence split into three labeled clauses, one per action, ordered back/restart/goto and front-loaded with the action names. Nothing is wasted and scanning maps directly onto the enum values.

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?

All three actions are accounted for, the required 'action' param drives the whole description, and the remaining four params are fully documented in the schema, so no output schema is strictly needed. The only shortfall is unstated failure behavior — e.g. an unknown passage name for goto or back at the start of the story.

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 description coverage is 100%, so the baseline is 3 even though the description never mentions format or game_id. It does add real meaning for two params — 'optionally reseeded' clarifies seed applies only to restart, and 'named passage' clarifies target is a passage name for goto.

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 names a verb-plus-resource ('navigate') and then defines each of the three enum actions concretely: back undoes one passage, restart starts over with optional reseed, goto jumps to a named passage. It does not, however, contrast itself with story-advancing siblings like 'choose' or 'play', so an agent must infer that this tool is for moving without making a choice.

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?

'goto ... QA only, it skips the path there' is an explicit when-not-to-use signal that steers an agent away from it during normal play, and calling out SugarCube/Harlowe scopes where 'back' applies. What is missing is positive routing — nothing says to use 'choose' to advance the story rather than navigating.

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