Skip to main content
Glama

byte_pattern_search

Find all offsets of a byte pattern in hex data, with ?? wildcard support for flexible matching.

Instructions

Find all offsets of a byte pattern in hex data. Supports ?? as wildcard bytes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
patternYesHex pattern to find, e.g. '4d5a??90'
hex_dataYesHex string to search in
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It does mention wildcard support (??) which is useful, but it fails to describe the return format (e.g., whether offsets are decimal, 0-based), case sensitivity, or behavior when no matches are found. This is a significant gap for a search tool.

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 two concise sentences, front-loaded with the main purpose. Every sentence contributes essential information (what it does, wildcard support) with no redundancy or 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?

The tool is simple with two well-described parameters, but there is no output schema. The description does not explain the return format, which leaves ambiguity about what 'offsets' looks like (e.g., list of integers, array, etc.). It is adequate for the core functionality but not fully complete without output details.

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?

The input schema provides 100% parameter descriptions, including an example pattern '4d5a??90'. The description adds explicit semantics by stating that '??' is a wildcard byte, which clarifies that the question marks are not just part of the example but a special syntax. This adds value beyond the schema.

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 what the tool does: 'Find all offsets of a byte pattern in hex data.' It uses a specific verb ('Find') and a resource ('byte pattern in hex data'), and mentions wildcard support, which distinguishes it from sibling tools that are conversions and hashing operations.

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

Usage Guidelines4/5

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

The intended use case is evident: searching for byte patterns in hex data. The context is clear given the sibling tools are all conversions/hashes or note/sandbox helpers, and this is the only pattern search tool. It lacks explicit exclusions, but none are necessary given the tool's specificity.

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/wellingtonlee/esquie'

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