Skip to main content
Glama

ida_search_immediate

Find instructions whose immediate operand equals a given constant to locate magic numbers, struct offsets, or enum values in IDA Pro disassembly.

Instructions

Find instructions whose immediate operand equals a constant — useful for magic numbers, struct offsets and enum values.

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

Input Schema

NameRequiredDescriptionDefault
limitNo
valueYesInteger, decimal or 0x-prefixed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does not state that the operation is read-only, what scope is searched (whole database, segment, current function), how many results are returned by default, or what a matching instruction looks like in the response.

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?

A single front-loaded sentence with the core semantics first and the motivating examples after. No filler or restatement of the name.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no annotations and no output schema, the description must cover behavior on its own, yet it omits search scope, result shape, and truncation behavior — all essential for a database-wide instruction search. It is adequate as a one-line summary but not as a usable definition.

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 50%, and the description usefully pins down that `value` is compared for exact equality against an immediate operand rather than treated as a pattern or range. However, it says nothing about `limit` (default 50, max 5000) or what happens when the cap is hit.

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?

Names a specific verb and resource: find instructions whose immediate operand equals a constant. The equality condition on immediate operands distinguishes it in spirit from ida_search_bytes and ida_search_text, though those siblings are never named explicitly.

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?

Offers use cases (magic numbers, struct offsets, enum values) that imply when the tool is appropriate, but gives no explicit when-not guidance and never points the agent to ida_search_bytes or ida_search_text as alternatives.

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