Skip to main content
Glama

gb_disassemble_range

Disassemble SM83 instructions from a Game Boy ROM starting at a given address, stopping at a byte length or end address for code analysis.

Instructions

Disassemble SM83 instructions starting at address.

    Decodes forward until *length* bytes are consumed, *end_address* is reached,
    or the 256-instruction safety cap is hit. At least one of *length* or
    *end_address* must be provided. Returns error if no ROM loaded.
    

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

Input Schema

NameRequiredDescriptionDefault
lengthNo
addressYes
end_addressNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations present, the description carries the full burden and does disclose meaningful behavior: forward decoding until length bytes, end_address, or a 256-instruction cap, plus an error when no ROM is loaded. It does not describe the returned structure or how truncated/partial output is signaled, which matters for a bounded decode loop.

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?

Three short sentences, front-loaded with the action and the stopping conditions, with no redundant restatement of the name. Minor awkwardness from the trailing 'Returns error if no ROM loaded' being a separate fragment rather than integrated with the other preconditions.

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?

For a three-parameter tool with no output schema and no annotations, the definition covers the required parameter, the stopping conditions, the safety cap, and the ROM-not-loaded failure. The main omission is any hint of the return shape or ordering of decoded instructions.

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: address is the start point, length counts bytes consumed, end_address is an alternative stop bound, and the one-of-them requirement is stated. It lacks details such as address space conventions or whether addresses are masked to 16 bits.

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 opens with a specific verb and resource: disassemble SM83 instructions starting at an address. That is unambiguous about what the tool does. It does not, however, contrast itself with the sibling disassembly tools (gb_disassemble_at_pc, gb_disassemble_function), so the agent must infer the difference.

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

Usage Guidelines3/5

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

It states the constraint that at least one of length or end_address must be supplied, which is real usage guidance. It gives no explicit when-to-use or when-not-to-use advice relative to the other disassembly siblings, so selection guidance remains implied.

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