Skip to main content
Glama

Search Strings

search_strings
Idempotent

Locate binary strings in reverse-engineering sessions by literal or regex matching across provider-reported string inventories.

Instructions

Search every provider-reported string object or candidate using literal matching by default or regex when requested. Results are deterministic and complete over that provider inventory, not every text sequence in artifact bytes. Kuna scans mapped sequences of at least five characters, including unterminated fragments, without computing references. Ghidra reports each defined string's encoding, byte length and termination; it may omit packed or undefined literals, including Rust strings; an empty result does not prove text is absent. For known encoded bytes, Ghidra search_bytes can find byte matches; a hit does not establish a string or use. If an address is known, xrefs can look for references; read_bytes can inspect bytes where supported (not available with Kuna). Hopper retains typed byte decoding, native display, and explicit decoding unknowns. Adjacent long-literal fragments match independently. For Ghidra case-insensitive literal searches, raw_result contains unfiltered candidates; normalized_result contains matches. Regex dialect depends on the provider: Ghidra uses Java Pattern; Kuna, IDA and Hopper use ECMAScript Unicode. See binary_session for selected-provider limits. Hopper regex mode uses a cancellable worker. The matching deadline is REA_REGEX_MATCHING_DEADLINE_MS (a positive decimal integer of milliseconds from 1 to 2147483647, default 5000). Unset keeps the default. A deadline failure names the effective milliseconds, source (default or setting), the default, and the maximum, and leaves the API usable. The worker old-generation request is REA_REGEX_WORKER_HEAP_REQUEST_MIB (a decimal integer of mebibytes from 7 to 16384, default 128). Unset keeps the default. A positive Node --max-old-space-size, including NODE_OPTIONS, overrides that request and is not limited by the setting's floor or maximum. A heap failure names the effective request, its source (default or setting), the default, the floor, and the maximum. Select detail summary for counts and retained native-inventory pages; complete remains the default.

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": "search_strings"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNo
detailNocomplete returns the complete analysis Evidence inline. summary retains that complete Evidence in this session and returns its inspect_analysis_view summary; inspect pages, items or facets through normalized_result.parent_evidence_id.
patternYes
documentNo
case_sensitiveNo

Output Schema

NameRequiredDescriptionDefault
subjectYes
providerYes
authorityYes
locationsYes
operationYes
confidenceYes
parametersYes
raw_resultYes
environmentYes
evidence_idYes
limitationsYes
evidence_linksYes
predicate_typeYes
analysis_profileYes
caller_input_pathNo
normalized_resultYes
caller_input_pathsNo
relationship_coverageYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.25.0

TDQS

A3.9/5.0
Behavior5/5

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

Well beyond the annotations, the description discloses that results are deterministic and complete only over the provider inventory, that an empty result does not prove absence, that Kuna skips reference computation, that Ghidra may omit packed or undefined literals, and that adjacent literal fragments match independently. It also explains the two-result-set behavior for case-insensitive Ghidra searches (raw_result vs normalized_result), per-provider regex dialects, the cancellable worker, and exactly what failure messages name. The retention behavior for detail=summary is also disclosed, which is consistent with readOnlyHint=false despite a search-shaped tool.

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

Conciseness2/5

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

The single dense block front-loads the purpose well, but then spends many sentences on operational arcana — REA_REGEX_MATCHING_DEADLINE_MS ranges, REA_REGEX_WORKER_HEAP_REQUEST_MIB floors and maximums, and what a heap failure message names. None of that helps an agent decide whether to call the tool or how to shape a query, and it buries the genuinely important limits (empty result is not proof of absence, adjacent fragments match independently). Substantial pruning would improve it.

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?

For a tool with five parameters, provider-specific semantics, and an existing output schema, the description covers the failure modes, the two result-set distinction, and the detail-mode retention model thoroughly. The one real hole is the undocumented document parameter, and it does not explain how results are paginated or bounded in complete mode. It is close to complete without being exhaustive.

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 only 20% (effectively just the detail parameter), so the description has to compensate, and it does so for mode (literal default vs regex), for detail, and indirectly for case_sensitive. However, the document parameter is never explained anywhere, and pattern has no guidance on escaping or regex dialect selection beyond a provider list. The added meaning is real but partial, so the baseline 3 fits.

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?

The opening sentence gives a specific verb and resource ("Search every provider-reported string object or candidate") and immediately bounds the scope ("not every text sequence in artifact bytes"), which is exactly the distinction an agent needs. It also implicitly separates itself from byte-level and reference-level searching by naming search_bytes and xrefs. The only deduction is that the core purpose is buried under provider-by-provider caveats rather than stated once crisply.

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?

It explicitly routes the agent away from this tool in two concrete cases: known encoded bytes go to Ghidra search_bytes, and known addresses go to xrefs or read_bytes. It also states the default behavior for the detail parameter ("complete remains the default") and when to choose summary. There is no explicit statement of when this tool is the wrong choice for non-Ghidra providers, and the alternatives are named only in a narrow Ghidra-scoped phrasing.

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