Skip to main content
Glama

gb_disassemble_at_pc

Disassembles Game Boy ROM code around the current program counter, marking the active instruction and showing before/after context to inspect execution location.

Instructions

Show instructions around the current program counter.

    Uses a backward-scan heuristic to find *before* instructions preceding PC,
    then decodes *after* instructions following it. The instruction at PC is
    marked with "current": true. Returns error if no ROM loaded.
    

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

Input Schema

NameRequiredDescriptionDefault
afterNo
beforeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the load well: it discloses the backward-scan heuristic used for the 'before' window, the ordering of decoding, the 'current': true marker on the PC instruction, and the no-ROM error case. It does not mention cost, output size, or whether the heuristic can misalign instructions.

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 purpose, then the heuristic, then the marker and error case, with no wasted sentences. Minor indentation artifacts and slightly prose-heavy phrasing for the heuristic keep it from a 5.

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?

There is no output schema, and the description still explains the shape of the return (a disassembly with the PC instruction flagged 'current': true) plus the failure mode. Combined with its explanation of both undocumented parameters, an agent has everything needed to call it correctly.

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 0%, so the description must compensate, and it does: 'before' is explained as the backward-scan window preceding PC and 'after' as instructions following it. It stops short of stating defaults (20/5) or any bounds on the values.

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 a specific verb+resource ('Show instructions around the current program counter'), which is clearly distinct from the range/function disassembly siblings by being anchored at PC. It does not explicitly name or contrast with those siblings, keeping it short of a 5.

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?

Usage is implied by the PC-anchored scope, but the description never says when to prefer this over gb_disassemble_range or gb_disassemble_function, nor any prerequisite beyond ROM being loaded (which is mentioned only as an error condition).

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