Skip to main content
Glama

Start or stop a game session that stays up

godot_session

Load a Godot 4.7 scene once and keep it running paused at frame 0 so a live game can be inspected and stepped frame by frame without reloading the world.

Instructions

Load a scene in Godot 4.7 headless once and keep it running between calls, paused at frame 0, so godot_game can look at the live game and move it frame by frame without loading the world again (a big world can take a minute to load; godot_play loads it on every call). op start (scene: default the main scene; restart: true loads it again), status, or stop. Only this machine can reach it (a loopback port with a token), the project is not changed (the script lives in .godot/godotwright/), and the game quits by itself after idle_minutes without a request (default 15). Stop it when you are done.

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": {
      "op": "<op>"
    },
    "name": "godot_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
opYesstart, status or stop
pathNoproject folder, or a file or folder inside it (relative to the server's folder; default: the current project)
sceneNothe res:// scene to load (default: the main scene)
restartNostop a running session and load the scene again
idle_minutesNoquit after this many minutes without a request (default 15)
timeout_secondsNohow long the scene may take to load (default 300)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.6.0
    • changedInput schema / properties / path / description
      Previous value: -"The project folder, or any file or folder inside it (Godotwright walks up to project.godot). Relative paths start at the server's folder. Default: the current project."New value: +"project folder, or a file or folder inside it (relative to the server's folder; default: the current project)"
  2. Addedv0.2.2

TDQS

A4.5/5.0
Behavior4/5

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

Beyond the annotations, the description discloses valuable traits: loopback-only access with a token, the project is not mutated (the script lives in .godot/godotwright/), the session auto-quits after `idle_minutes`, and the paused-at-frame-0 steady state. It stops short of describing what `status` returns or how a start behaves when a session is already running without restart.

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?

The rationale and sibling contrast are front-loaded and every sentence carries information, but the first sentence is a long run-on with nested parentheticals that force re-reading. Slightly tighter sentence breaks would improve scannability without losing content.

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 stateful six-parameter lifecycle tool with no output schema, the description covers start/status/stop, security, project safety, cleanup, and timeouts. The main gap is the semantics of re-issuing `start` without `restart` and what `status` reports.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/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, but the description adds real meaning: `scene` defaults to the main scene on `start`, `restart: true` forces a reload, and `idle_minutes` doubles as the auto-quit timer. That clarifies how parameters interact across ops rather than just restating the schema.

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?

The description names a specific capability: loading a scene in Godot 4.7 headless once and keeping it running paused at frame 0 between calls, with ops `start`, `status`, and `stop`. It explicitly distinguishes itself from the sibling `godot_play`, which reloads the world on every call, and positions itself as the backend for `godot_game`.

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

Usage Guidelines5/5

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

It says precisely when to use it (godot_game inspecting a live game and stepping frame by frame, big world with a minute-long load) and names the alternative it replaces (godot_play). It also gives an explicit when-not/cleanup rule: 'Stop it when you are done.'

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