Skip to main content
Glama

registers

Read a held PS2 program's CPU, FPU, COP0, VU0, or other register values by group; optionally return wide 128-bit general data.

Instructions

A held program's registers. group chooses which:

  • "general", the default: the 32 general ones, pc, hi and lo, and the exception's status, cause and bad_address. The general registers are given as their low 64 bits, or as all 128 with wide.

  • "fpu": f0 to f31, each as its bits and the single-precision number they are; the accumulator, acc; fcr31, the control and status register; and fcr0.

  • "cop0": the system control registers by name. status, cause, epc and badvaddr are the held program's; the rest are as they are now, count running on.

  • "other": hi1 and lo1, the halves of HI and LO the R5900 added, and sa, the shift amount.

  • "vu0": VU0's, which the EE has as its second coprocessor: vf0 to vf31, each as its four numbers x, y, z and w and as their bits, w's highest; vi0 to vi15; and its control registers. They're read as they are: changing, if VU0 is running a program of its own, which vpu_stat's lowest bit says.

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

Input Schema

NameRequiredDescriptionDefault
wideNo
groupNogeneral

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description does substantial work: it notes that cop0 values 'are as they are now, count running on' and that VU0 registers are 'read as they are: changing' if VU0 is running, disclosing non-determinism an agent would otherwise not expect. It stops short of stating explicitly that the call is read-only with no side effects, which would fully close the gap.

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 resource, then a well-formed bulleted enumeration of group values; each bullet carries distinct content. The wording is dense but not wasteful, though some phrasings (e.g. 'as their bits and the single-precision number they are') are harder to parse than needed.

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

Completeness4/5

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

An output schema exists so return shape needn't be described, and the group semantics plus volatility caveats cover what an agent needs to call it correctly. Only the absence of explicit read-only/no-side-effect framing keeps it from being fully complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must carry both parameters, and it does: `wide` is explained as returning all 128 bits instead of the low 64, and `group` is documented with a full breakdown of general, fpu, cop0, other and vu0 contents. This is meaning well beyond the bare string/boolean schema types.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States the resource (a held program's registers) and enumerates exactly what is returned per group, letting an agent separate it from set_register (write) and read_memory. The verb is implied rather than explicit, but the content is concrete enough that the operation is unmistakable.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance, no prerequisites, and no mention of alternatives such as set_register or read_memory. The `group` enumeration tells the agent what each option contains but not why it should pick this tool over a sibling.

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