Skip to main content
Glama

Read Lua errors

errors_since
Read-only

Retrieve Lua errors from every realm since a cursor, filter to the current map load, or group repeated messages to find stuck loops.

Instructions

Lua errors of every realm of this game, as the game reports them (client mode: the menu's OnLuaError hook; srcds: parsed from the console). The game reports each distinct error as it happens. Cursor: 0 = from the oldest kept error; pass next_cursor to read only new ones. The last 2000 are kept and survive map loads: each error carries map_load (a number that grows with every map load) and map; since_map_load: true keeps only the current map's errors, including those raised while it loaded. Result: {errors: [{seq, realm, message, stack: [{file, line, function}], addon, addon_id, time, map_load, map}], next_cursor, lost, map_load, map}. A stuck loop can fill the 2000 kept with one message: group_by: "message" returns {groups: [{message, count, first_seq, first_time, last_seq, last_time, realms, map, stack, addon}], groups_total, next_cursor, lost, map_load, map} instead, most frequent first. Example: {"cursor": 0, "since_map_load": true}.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMax errors returned (default 100).
realmNoOptional realm filter.
cursorNoStart here (default 0 = the oldest kept error).
group_byNo"message": one entry per distinct message instead of the list of errors: {groups: [{message, count, first_seq, first_time, last_seq, last_time, realms, map, stack, addon}]} most frequent first (limit caps the groups, groups_total counts them), next_cursor covers every error read.
instanceNoOptional. Instance identifier (see instances_list). If present and different from the local instance, the call is relayed by the coordinator to that instance.
since_map_loadNoOnly errors of the current map load (default false).

Output Schema

NameRequiredDescriptionDefault
mapNo
lostNo
nextNo
noteNo
errorsNo
groupsNo
warningNo
map_loadNo
next_callNo
answered_byNo
next_cursorYes
groups_totalNo
truncated_noteNo
version_warningNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.7

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare a read-only, non-open-world tool; the description adds substantial context beyond that: a 2000-error retention window, survival across map loads, the map_load counter semantics, the 'lost' field implying dropped data, and coordinator relaying via instance. That is exactly the behavioral disclosure annotations cannot carry.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded and organized into labelled segments (source, cursor, retention, result, example), but it re-specifies both result shapes in full detail even though an output schema exists, and some of that restates the schema's cursor and group_by text. Dense but partly redundant rather than wasteful.

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 6-parameter read tool with an output schema, every ambiguity an agent could hit before calling is covered: where errors come from, how many are retained, what survives a map load, how paging and grouping interact, and a worked example call.

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 baseline is 3, but the description adds real meaning: cursor's tie to the retained window, since_map_load including errors raised while the map loaded, and the stuck-loop rationale for group_by plus how limit/groups_total interact. The instance parameter's relay behavior is left entirely to 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?

States a specific verb+resource ('Lua errors of every realm of this game') and immediately scopes it, distinguishing it from console/report readers by naming the capture mechanism (menu's OnLuaError hook, srcds console parsing). An agent can tell this is the error-log reader and not errors_clear.

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?

Gives concrete usage conditions: cursor=0 to start from the oldest kept error, next_cursor to read only new ones, since_map_load to restrict to the current map, and group_by to escape a stuck-loop flood. It never names a sibling (e.g. errors_clear to reset the cursor window) or an exclusion, so it stops short of a 5.

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