Skip to main content
Glama

watchpoint

Sets a memory access breakpoint that holds a PlayStation 2 program when it reads or writes a chosen variable or hardware register, helping trace what touches that address.

Instructions

Sets the watch: the EE's program is held when it stores to an address (access "write"), loads from it ("read"), or either ("any"). run and resume then return with the state "held", and held says what was caught. It's for finding what touches a variable or a hardware register. There is one watch, kept until it's removed or set elsewhere; remove takes it away.

length is how many bytes from address are watched, a power of two, and the address is rounded down to a multiple of it. The program is held at the instruction that's about to make the access, with the access not yet made: a store's value is in the register it's stored from, and step does it.

With value only an access of that value is caught: the 32 bits stored or loaded, or those of them set in value_mask. A store of the value is held before it's made, as any store is. A load can only be known by what it loaded: the program is held a few instructions after it, with the load made.

On a console it catches the program's own accesses, in its threads: not the kernel's, not an interrupt handler's, and not the GS's display registers at 0x12000000 to 0x12000fff, whose writes display gives instead.

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

Input Schema

NameRequiredDescriptionDefault
valueNo
accessNowrite
lengthNo
removeNo
addressNo
value_maskNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full behavioral burden and does so thoroughly: only one watch exists at a time and persists until removed or set elsewhere; the program is held at the instruction about to make the access, before the store happens, so the value is still in its source register; a load is only detectable after the fact, so the hold occurs a few instructions later; and console access filtering excludes kernel, interrupt handler, and GS display register traffic. These are exactly the preconditions and side effects an agent cannot infer from the schema.

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?

The description is three paragraphs and long, but nearly every sentence adds distinct semantics (trigger modes, rounding rule, hold timing for store vs. load, filtering exclusions) with the trigger modes front-loaded. Minor waste exists in the awkward embedded quoting of access values and in restating the removal rule twice; the length/rounding sentence could be tighter, but overall the density justifies the size.

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?

An output schema exists, so return values need not be described, and the description still explains the relevant outcome semantics (the "held" state and what `held` reports). For a six-parameter tool with no annotations and no schema parameter docs, it covers triggers, timing, persistence, and platform limitations without leaving a caller guessing.

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 description coverage is 0% across six parameters, so the description must compensate and largely does: `access` is defined by its write/read/any behavior, `length` is bytes from `address` in a power of two with the address rounded down to a multiple of it, `value` narrows the catch to a specific 32-bit stored or loaded value, `value_mask` selects which bits of `value` matter, and `remove` is stated to take the watch away. Even `address` is given meaning through the watch-length rounding rule.

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?

The description names a specific verb and resource ("Sets the watch") and immediately enumerates the trigger conditions (`access` write/read/any) on an EE address. It also states the domain purpose ("finding what touches a variable or a hardware register") and distinguishes its territory from the `display` tool's GS register writes. It does not, however, draw a line against the closest sibling, `breakpoint` (code-address break vs. data watch), which an agent comparing the two would want.

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?

It gives a clear when-to-use statement ("for finding what touches a variable or a hardware register") and explains how it interacts with the workflow tools: `run`/`resume` return "held", `held` reports the catch, `step` performs the pending store, `remove` takes the watch away. It also carves out limits (not kernel accesses, not interrupt handlers, not GS display registers, where `display` is the alternative). Missing is any explicit statement of when a watchpoint is the wrong tool versus a code breakpoint.

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