Skip to main content
Glama

Read the console

console_read
Read-only

Reads game console output from all realms, with optional regex filtering and cursor-based tailing to fetch only new lines. Use it to inspect prints, messages, warnings, and errors.

Instructions

Reads this game's console output: everything printed by the engine and by Lua in every realm (print, Msg, MsgN, MsgC, errors), one entry per line, kept in a ring buffer (20000 lines by default, see console_buffer) that survives map changes. Without cursor: the last limit lines (matching regex). With cursor: the lines from that point on; pass next_cursor to the next call to read only new lines. Result: {lines: [{seq, t (s since module start), level: message|warning|assert|error|log, text}], next_cursor, lost (lines dropped before you read them), oldest, capture (spew, logging, condebug or none: none = nothing is captured)}. To block until a line appears, use console_wait. Example: {"regex": "^\[ERROR\]", "limit": 50}.

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

Input Schema

NameRequiredDescriptionDefault
limitNoDefault 200.
regexNoOptional filter.
cursorNoCursor (previous next_cursor).
instanceNoOptional. Instance identifier (see instances_list). If present and different from the local instance, the call is relayed by the coordinator to that instance.

Output Schema

NameRequiredDescriptionDefault
lostNo
nextNo
noteNo
linesYes
oldestNo
captureNo
warningNo
next_callNo
answered_byNo
next_cursorYes
truncated_noteNo
version_warningNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.7

TDQS

A4.6/5.0
Behavior4/5

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

Annotations only declare readOnlyHint and openWorldHint, and the description goes well beyond them: ring-buffer retention (20000 lines by default), survival across map changes, the `lost` counter for dropped lines, and the `capture` field that can be `none` (nothing captured) are all non-obvious behaviors an agent must know. The only gap is that it doesn't say what happens when capture is `none` or how the relayed `instance` path affects latency/results.

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?

Front-loaded with purpose and scope, then semantics, then the result shape and alternative, so scanning order is sensible. It is dense but every sentence carries information; the inline result-shape description partially duplicates the existing output schema and slightly bloats an otherwise tight paragraph.

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?

For a paging/follow read tool this covers capture scope, buffer behavior, cursor protocol, line-level fields, and the blocking alternative. An output schema exists so return values are already structured, and the description still gives enough of the shape to reason about levels and seq without a second lookup.

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 the schema cannot: it explains the two-mode cursor protocol, that next_cursor should be passed to the next call to read only new lines, and that regex filters the returned lines. It does not elaborate on regex dialect or whether limit is applied before or after filtering.

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 this game's console output") and immediately delimits scope: everything printed by the engine and by Lua in every realm, via print/Msg/MsgN/MsgC/errors. It distinguishes itself from console_wait and points at console_buffer for buffer configuration, so an agent can tell it apart from siblings 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 branching guidance: without `cursor` you get the tail of the buffer, with a cursor you follow new lines and chain next_cursor forward, and "To block until a line appears, use console_wait" names the alternative with the exact condition that selects it. A concrete example call is included, leaving little to inference.

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