Skip to main content
Glama

find_byte_pattern

Search Game Boy ROM memory for byte patterns with wildcard support to locate matching addresses, such as CALL instructions to a target range.

Instructions

Search for a byte pattern in ROM memory with wildcard support.

    Pattern syntax: hex bytes separated by spaces, '??' for wildcard.
    Example: 'CD ?? 40' matches any CALL to 0x40xx.
    Returns up to 100 matching addresses.
    

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": {
      "pattern": "<pattern>"
    },
    "name": "find_byte_pattern"
  }
}

Input Schema

NameRequiredDescriptionDefault
lengthNo
addressNo
patternYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose two valuable behavioral facts: results are capped at 100 addresses and wildcards are supported. It does not state that the search is read-only/non-mutating, what happens when the cap truncates matches, or how invalid patterns are handled.

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?

Front-loaded purpose line, then syntax rule, then a concrete example, then the result cap. Every sentence adds information and there is no filler.

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

Completeness3/5

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

A three-parameter search tool with no annotations and no output schema needs more than the pattern syntax. The description is adequate for the core use case but leaves the address/length scoping parameters and the truncation behavior unexplained.

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

Parameters2/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 for all three parameters. It explains the required 'pattern' parameter thoroughly with syntax rules and a worked example, but 'length' and 'address' are never mentioned, leaving two of three parameters undocumented in both schema and description.

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?

Specific verb+resource: 'Search for a byte pattern in ROM memory', with the added qualifier of wildcard support. An agent can tell this apart from find_strings (string search) by the resource being raw bytes, though the description never names that sibling explicitly.

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 resource ('byte pattern' vs. text), but the description never states when to prefer this over find_strings or gb_memory_diff, nor any preconditions such as needing a loaded ROM. The agent must infer the choice from the tool name alone.

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