Skip to main content
Glama

Console buffer capacity

console_buffer
Idempotent

Read or set how many game console lines are retained for console read, wait, and exec operations; lowering capacity drops the oldest buffered lines at once.

Instructions

Reads or sets how many console lines this game keeps for console_read, console_wait and console_exec (default 20000; lowering it drops the oldest lines at once). Without capacity: just reads it. Result: {capacity, cursor (the current console position)}.

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_buffer"
  }
}

Input Schema

NameRequiredDescriptionDefault
capacityNo
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
nextNo
noteNo
cursorYes
warningNo
capacityYes
next_callNo
answered_byNo
truncated_noteNo
version_warningNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.7

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare idempotentHint=true and destructiveHint=false, so the description's job is to add operational context, and it does: it discloses the default (20000) and warns that lowering the value immediately discards the oldest buffered lines. That warning is valuable and only slightly in tension with destructiveHint=false, since what is lost is buffered log data rather than game state; the description also states the return shape.

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 read-or-set verb and the affected tools, then the default, then the ordering warning; nothing is padding. The trailing "Result: {capacity, cursor ...}" duplicates the existing output schema and is the one clause that does not strictly earn its place.

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?

Covers default value, read-vs-write semantics, the consequence of lowering the limit, and affected tools, which is everything needed to call a two-parameter settings tool correctly; the return shape is already supplied by the output schema. Instance relay is documented in the schema description for `instance`, so no gap remains.

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 50% and the undocumented parameter is exactly the important one, `capacity`, which the schema only bounds (16-1000000). The description compensates by giving the default value, restating that omission means read-only, and explaining the effect of decreasing the value — meaning an agent cannot get from the schema alone.

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 pair and resource: "Reads or sets how many console lines this game keeps" for console_read, console_wait and console_exec. It also names the downstream tools whose behavior depends on the setting, so an agent can place it relative to its console siblings without opening any schema.

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?

"Without `capacity`: just reads it" gives an explicit condition distinguishing the read path from the write path, which is the main selection decision for a getter/setter pair. It stops short of saying when an agent should actually change the capacity (e.g., raising it before a verbose console_read), so there is no alternatives guidance beyond the read/write split.

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