Skip to main content
Glama

search_immediates

Find instruction immediates and stored data by hex or decimal value and width, helping locate comparisons, trial limits, and constants in hash loops.

Instructions

Where a number is used: instruction immediates and stored data.

Pass value as hex or decimal (0x9e3779b9, -1, 1033). width picks the stored size (4 or 8). This is how you find the cmp eax, 0x1e behind a trial limit or the constant in a hash loop.

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>",
      "value": "<value>"
    },
    "name": "search_immediates"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYes
limitNo
valueYes
widthNo
sessionNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden: it discloses the two search domains (instruction immediates and stored data) which is genuine behavioral information. However, it says nothing about search scope (whole binary vs. a region/session), cost of a search, result ordering, or what `key` and `session` govern. Read-only nature is implied by 'find' but never stated.

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?

Four short sentences, front-loaded with the core purpose before format guidance, with no filler. The search motivation is slightly conversational but still earns its place by illustrating use. Some tightening is possible but little is wasted.

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?

An output schema exists, so return values need not be explained. But for a 5-parameter, session-scoped binary-analysis tool with 0% schema coverage, the description leaves the required `key`, the `session` default, and the result limit unexplained, and never states the search scope. It is adequate to call the tool but not to call it confidently.

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%, so the description must compensate, and it only partially does: it documents the accepted `value` formats with examples (`0x9e3779b9`, `-1`, `1033`) and the meaning of `width` (stored size, 4 or 8). The required `key` parameter, plus `limit` and `session`, are completely unaddressed in both schema and description — a required parameter with zero semantics is a serious gap.

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 description opens with a specific verb+resource framing: it finds where a numeric value appears, both as instruction immediates and as stored data. That is concrete enough for an agent to distinguish it from listing or disassembly tools. It stops short of naming any sibling, so it earns 4 rather than 5.

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 gives two concrete usage scenarios — locating the immediate behind a `cmp eax, 0x1e` trial limit, and finding a constant in a hash loop — which tell an agent exactly the kind of question this tool answers. There are no exclusions or named alternatives, so it falls into the 'clear context, no exclusions' band rather than a 5.

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