Skip to main content
Glama

program.image_base.set

Set or change the in-memory image base of an open Ghidra program, with optional commit to record the rebase in the undo stack for reversible address adjustments.

Instructions

Change the program image base. The rebase is always applied to the open program in memory; commit controls whether the change is recorded in the undo stack.

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": {
      "session_id": "<session_id>",
      "image_base": "<image_base>"
    },
    "name": "program.image_base.set"
  }
}

Input Schema

NameRequiredDescriptionDefault
commitNo
image_baseYes
session_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/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, and it does disclose one important trait: the rebase is in-memory and only enters the undo stack when commit is set. It omits whether an uncommitted rebase is discarded on close, whether saving persists it, and whether the open program must be stopped or analysis invalidated.

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?

Two tight sentences with the core action front-loaded and the commit caveat second. Nothing is redundant, though it is arguably too sparse for a tool with three undocumented parameters.

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?

For a mutation tool with no annotations, no output schema, and 0% parameter documentation, the description should cover value formats, persistence behavior, and the state required to call it. It addresses only the commit/undo distinction, leaving the rest to inference.

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 coverage is 0%, so the description must compensate. It explains the commit flag's effect (recording in the undo stack) well, but leaves image_base's accepted forms (the schema allows integer or string, implying decimal or hex notation) and session_id entirely unexplained.

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 names a specific verb and resource ("Change the program image base"), which is unambiguous and clearly distinct from sibling setters like program.mode.set or function.body.set. It stops short of stating scope or naming an alternative, so a 4 rather than a 5.

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?

"The rebase is always applied to the open program in memory" implies the prerequisite that a program must be open, which is useful implicit guidance. There is no explicit when-to-use vs when-not guidance and no mention of when a caller should prefer saving/reopening instead.

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

Deploy Server

Other Tools