Skip to main content
Glama

search

Read-only

Find hex byte patterns with ?? or 4? wildcards, or literal text, across file bytes and return paged function: va hits for reverse engineering.

Instructions

Search every byte of the file for hex (?? or 4? wildcards, 4096 bytes max), or text with kind=text, as function: va ... rows, paged. Not for listing strings (use strings).

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": {
      "query": "<query>"
    },
    "name": "search"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoWhat the query is (default bytes).
limitNoMax hits (default 200, max 500).
queryYesHex bytes (kind=bytes) or a literal substring (kind=text).
offsetNoHits to skip (default 0).
count_onlyNoHeader only (default false).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.3.2
    • changedInput schema / properties / query / description
      Previous value: -"Hex bytes with ?? wildcards (kind=bytes) or a literal substring (kind=text)."New value: +"Hex bytes (kind=bytes) or a literal substring (kind=text)."
  2. First observedv0.2.1

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, and the description still adds substantive behavior: the 4096-byte search ceiling, wildcard support, the `function: va ...` result-row shape, and that results are paged. The size limit in particular is a constraint an agent would otherwise miss and cannot infer from annotations or schema.

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?

A single dense sentence that front-loads the primary action and defers the exclusion to the end where it functions as a routing rule. The parenthetical stacking ('?? or 4? wildcards, 4096 bytes max') is information-dense but slightly harder to parse than separate clauses would be.

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?

No output schema exists, and the description steps in to describe the result shape and paging, which is exactly what is needed. It stops short of stating default page size or what happens on no matches, but nothing critical to invoking it correctly is missing.

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 100%, so the baseline is 3; the description earns extra by documenting wildcard syntax ('??', '4?') for the query parameter and tying kind=text to literal substring semantics, which the schema only partly conveys. It does not restate limit/offset/count_only, but those are fully documented in 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?

States a specific verb (search) and resource (every byte of the file), plus the two modes (hex vs kind=text) and the row shape. The closing clause 'Not for listing strings (use strings)' directly distinguishes it from a sibling that would otherwise look identical.

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

Usage Guidelines5/5

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

Explicitly names when NOT to use it and which alternative to use instead ('use strings'), and gives the condition that selects hex mode versus kind=text. An agent can route between this and strings without opening either schema.

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