Skip to main content
Glama

search_pattern

Search memory for byte patterns with ?? wildcards (hex) to locate instructions or data during debugging and reverse engineering.

Instructions

Search memory for a byte pattern with ?? wildcards. Examples: 'CC' (INT3), '0F 31' (RDTSC), 'E9 ?? ?? ?? ??' (JMP rel32).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
moduleNoOptional module name to limit search scope (faster).
patternYesHex bytes separated by spaces, '??' as wildcard. Examples: '90 90 90', 'E8 ?? ?? ?? ??', '48 89 ?? 24'.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataNoStructured result data (varies by tool)
errorNo
detailsNoDetailed text breakdown
successYes
summaryYesOne-line human-readable result
suggested_next_toolsNoTools recommended to call next based on this result
Behavior3/5

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

With no annotations provided, the description carries the full burden. It implies a read-only operation via 'search', and wildcard support is disclosed. However, it does not detail search scope (e.g., all memory vs. module) or potential performance implications. The optional module parameter is only in the schema, not the description.

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?

The description is a single sentence followed by three concise examples. It front-loads the core action and every word contributes value. No filler or unnecessary detail.

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?

The description is sufficient for a simple search tool: purpose is clear, pattern syntax is exemplified, and the schema covers parameter details. An output schema exists (though not shown), so return format is presumably covered. The only minor omission is explicit guidance on when to use this tool over similar search functions, but this is not critical for a straightforward operation.

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

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, with detailed parameter descriptions for both 'pattern' and 'module'. The tool description adds extra examples ('CC', '0F 31', 'E9 ?? ?? ?? ??') but these largely duplicate the schema's own examples. It does not introduce additional parameter semantics beyond what the schema provides.

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

Purpose5/5

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

The description clearly states the tool's purpose: 'Search memory for a byte pattern with ?? wildcards.' It includes a specific verb (search), resource (memory), and pattern detail (wildcards). Examples like 'CC' (INT3) and 'E9 ?? ?? ?? ??' (JMP rel32) further clarify the intent and distinguish it from sibling tools like 'search_strings' or 'ida_search'.

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?

The description does not explicitly mention when to use this tool versus alternatives, but the examples imply usage for finding specific instruction opcodes or byte signatures. This provides some implied context, though no direct comparison or exclusions are given.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/DdUdle/ctxdebug'

If you have feedback or need assistance with the MCP directory API, please join our Discord server