Skip to main content
Glama

Read a report channel

reports_read
Read-only

Reads values published by game code to named channels, returning JSON items with cursors so you can fetch new updates incrementally or wait for the next value.

Instructions

Reads the values that game code published with mcpagent.report(channel, value) (a Lua function gmod-mcp adds in every realm; job:report(value) of a lua_job publishes on "job:"). Values come back whole, as JSON. Read incrementally: cursor 0 = the oldest kept value, then pass next_cursor. wait_s > 0 waits until a new value arrives (or wait_s passes). Each channel keeps its last 10000 values (lost > 0 = dropped before you read them); channels survive map changes and live until reports_clear or the game exits. Result: {channel, items: [{seq, time, realm, value}], next_cursor, lost, timed_out}. Example: in the game mcpagent.report("scan", {map = game.GetMap(), hits = n}), then {"channel": "scan", "cursor": 0, "wait_s": 30}.

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": {
      "channel": "<channel>"
    },
    "name": "reports_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoDefault 500.
cursorNoCursor (default 0 = from the start of the buffer).
wait_sNoMax wait if nothing new (default 0).
channelYesChannel name.
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
itemsYes
channelNo
warningNo
next_callNo
timed_outNo
answered_byNo
next_cursorYes
truncated_noteNo
version_warningNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.7

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds real context beyond that — a 10000-value ring buffer, the lost counter meaning, map-change survival, and wait/timeout behavior — though it omits any concurrency or relay caveats for the instance parameter.

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 the core action and then the incremental-read protocol, with an end-to-end example. It is a dense single paragraph with several parentheticals, but nearly every clause carries operational information.

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?

Given five parameters, a wait/timeout mode, and a ring buffer with data loss, the description covers everything needed to call it correctly, including the result shape. The output schema exists, so the inline Result summary is a small redundancy rather than a gap.

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 coverage is 100%, so the baseline is 3. The description does add meaning for cursor (0 = oldest kept value, then next_cursor chaining) and wait_s (blocks until a new value or the timeout), but limit and instance are left 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?

Names a specific verb (reads) and resource (values published via mcpagent.report / job:report), including the producer-side signature so an agent knows exactly what populates a channel. It also implicitly distinguishes itself from reports_clear and reports_channels by describing channel lifetime, and the worked example pins the semantics down.

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 operating instructions: read incrementally starting at cursor 0, then pass next_cursor, and use wait_s > 0 to block until a new value arrives. It does not explicitly compare against siblings like reports_channels or console_read, which keeps it 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.