Skip to main content
Glama

Read the errors of the game the user ran

godot_logs

Read GDScript runtime errors and warnings from a Godot game's log file, with file:line and call chains, so agents can see what failed. Wait for the first error or fetch only new entries via a cursor.

Instructions

The errors and warnings of a game the user ran from the editor (F5/F6) or any other way, read from the log file the game writes itself (user://logs/godot.log), so they reach you whatever the editor's language and without the addon. user:// is found as Godot finds it (project name, custom user dir, the OS folder). Each entry: res://file:line, severity, message and the GDScript call chain (Godot 4.5+), with the lessons for the message. Before 4.5, Godot sends a GDScript runtime error of an editor run to the debugger only, not the log; the answer says so. Without since it reads the newest run (Godotwright's own Godot runs log to a temp file, never here); pass the since of the last answer to get only what is new: a new run of the game and Godot's log rotation are followed. godot_editor play returns a cursor for the run it starts. wait_seconds waits for the first error. When file logging is off it says so and names the setting to turn on. Read-only (it counts shown lessons in the local learning file).

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

Input Schema

NameRequiredDescriptionDefault
pathNoproject folder, or a file or folder inside it (relative to the server's folder; default: the current project)
limitNoerrors and warnings to list (default 60)
sinceNothe cursor the last answer gave (next: since ...); leave it out for the newest run
whereNoalso show where user:// and the log are, and the settings that decide it
user_dirNothe folder user:// is, when the game runs as another user, in WSL, in a container or in a Flatpak (a Flathub editor's sandbox is found by itself on Linux)
wait_secondsNowait up to this long for an error or warning (default 0: read once)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.10.0

TDQS

A4.6/5.0
Behavior4/5

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

Rich disclosure beyond annotations: log location and how user:// resolves, the per-entry shape (res://file:line, severity, message, GDScript call chain on 4.5+), the pre-4.5 caveat that editor-run runtime errors go to the debugger only, log rotation and new-run following, and wait_seconds semantics. The 'Read-only' claim sits in mild tension with readOnlyHint=false, but the parenthetical (it counts shown lessons in the local learning file) reconciles it rather than contradicting it.

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?

Purpose is front-loaded in the first clause and every sentence carries operational information. The cost is density — several long multi-clause sentences (the user:// resolution and the 4.5 caveat) that an agent must parse carefully, but there is no filler.

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

Completeness5/5

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

With six parameters, no output schema and no required fields, the description still covers the return shape, the cursor protocol, version-specific behavior, the disabled-logging case, and the sandbox/user_dir edge cases. Nothing an agent needs to call this correctly is missing.

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 workflow meaning the schema cannot: `since` is a cursor produced by the previous answer or by godot_editor play, and `wait_seconds` blocks for the first error rather than polling. `user_dir`'s WSL/container/Flatpak rationale is also restated, though it largely duplicates the schema text.

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?

States a specific verb and resource: reads the errors and warnings of a game the user ran, sourced from the log file the game writes (user://logs/godot.log). It also scopes what it is not — Godotwright's own editor runs log to a temp file and never appear here — so an agent can distinguish it from godot_editor/godot_game without opening a schema.

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?

Gives explicit when-to-use and how-to-chain guidance: call it after the user runs the game (F5/F6 or otherwise), omit `since` for the newest run, pass the `since` from the last answer for only new entries, and take the cursor from godot_editor play for a run it starts. It also names the failure condition (file logging off) and the remedy.

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