Skip to main content
Glama

read_memory

Reads hardware registers at a specified address using exact access widths on PS2 EE or IOP, returning count values in ascending order; use dump_memory for plain memory blocks.

Instructions

Reads count values of width bytes (1, 2, 4, 8 or 16) starting at address, each with one access of exactly that width, in ascending order. This is the way to read a hardware register, where the width of the access matters. space is "ee" or "iop". For a block of plain memory use dump_memory.

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": {
      "address": "<address>"
    },
    "name": "read_memory"
  }
}

Input Schema

NameRequiredDescriptionDefault
countNo
spaceNoee
widthNo
addressYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden; it does disclose a useful non-obvious trait: values are read in ascending order with one access of exactly the requested width, so no burst or merged access occurs. However, it says nothing about error behavior for invalid or unaligned addresses, permission or target-state prerequisites, or limits on count.

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

Conciseness5/5

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

The core action and its constraint are front-loaded in the first sentence, followed by the register rationale, the `space` values, and the sibling pointer. Every sentence adds information, with no repetition of the title.

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 values need not be described. Combined with full parameter coverage and an explicit alternative, the definition is nearly complete; only failure modes and prerequisites are unaddressed for a no-annotation tool.

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 description coverage is 0%, so the description must compensate, and it largely does: it defines `count`, the allowed `width` values (1, 2, 4, 8 or 16), `address`, and the `space` values ('ee' or 'iop'). The only gap is that the schema allows `address` as either an integer or a string, and the description never says a hex-string form is accepted.

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?

The description states a specific verb and resource: reading `count` values of `width` bytes from `address`, each with a single access of exactly that width. It also explicitly distinguishes itself from the block-read sibling by naming `dump_memory` as the tool for plain memory regions.

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?

It states when this tool is the right choice ('the way to read a hardware register, where the width of the access matters') and routes the agent elsewhere for the other common case ('For a block of plain memory use `dump_memory`'). That gives both the when and the alternative.

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