Skip to main content
Glama

scan_pattern

Scans a static image for an array-of-bytes (AOB) pattern and returns matches to help locate byte signatures during reverse engineering.

Instructions

Scan a static image for an AOB pattern.

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

Input Schema

NameRequiredDescriptionDefault
keyYes
limitNo
patternYes
sessionNo
executable_onlyNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.4/5.0
Behavior2/5

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

With no annotations at all, the description carries the full behavioral burden and provides almost nothing. It does not say whether a session or attach is required, whether results are persisted so scan_next/scan_results can consume them, what happens on timeout, or how the limit interacts with matches. The canonical structure of an AOB pattern (wildcards, byte syntax) is also undefined.

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

Conciseness3/5

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

The single sentence is front-loaded and free of padding, which is structurally sound. The problem is under-specification rather than verbosity: at one clause it says too little for a five-parameter tool with no annotations.

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

Completeness2/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. But for a tool with five parameters, zero schema coverage, and no annotations, the definition is far too thin, leaving required inputs, session prerequisites, and result lifecycle unaddressed.

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% across five parameters, so the description must compensate and largely fails. "AOB pattern" weakly maps to the pattern field, but key, limit, session, and executable_only receive no explanation despite key being required and session defaulting to an empty string whose effect is unclear.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a verb ("scan") and a target ("a static image") plus the thing being searched for ("an AOB pattern"), which is more than a tautology. However, it does not distinguish this from the sibling scan_aob, which by name appears to do the same thing, nor does it explain what "static image" means in contrast to physical_scan or pointer_scan. The purpose is graspable but the boundary with siblings is left implicit.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no mention of when not to use it, and no reference to any alternative such as scan_aob, scan_next, or scan_results. The agent must infer from the single word "static" that this applies to file-backed images rather than live memory, which is not stated.

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