Skip to main content
Glama

ghidra.script

Executes a script against an open program session for custom analysis or automation, optionally with arguments and writable access.

Instructions

Run a Ghidra script against an open program session. Raw access to a read-only session requires write=true and transitions it to writable.

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": {
      "path": "<path>"
    },
    "name": "ghidra.script"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
writeNo
session_idNo
script_argsNo

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 at all, the description carries the full burden, and it does disclose one important side effect: a read-only session is transitioned to writable when write=true. However, it says nothing about that transition being irreversible, whether the script runs with elevated privileges, what happens on script failure or timeout, or what the call returns, which are significant gaps for an arbitrary-code-execution tool with zero annotation coverage.

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 short sentences, front-loaded with the core action, and no filler. The second sentence is densely packed and slightly ambiguous in phrasing ('Raw access to a read-only session'), but nothing is wasted.

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 four-parameter, mutation-capable tool with no annotations and no output schema, the description is thin: it does not explain what the script's output looks like or where it goes, how session_id selects a target, or how script_args are passed. An agent could invoke it but would be guessing about the results and the session-state consequences.

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 for all four parameters. It only clarifies the semantics of 'write' (needed for raw access to a read-only session); 'path', 'session_id', and 'script_args' get no explanation of expected format, sourcing, or behavior, leaving most of the interface undocumented.

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 gives a specific verb and resource: run a Ghidra script against an open program session. That is clearly distinct from ghidra.eval and ghidra.call in spirit, but it never names those siblings or states how running a script differs from evaluating an expression, so the differentiation is left to inference.

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?

Usage is implied rather than stated: an agent can infer this is the tool for executing an arbitrary Ghidra script. The one concrete rule given is conditional ('Raw access to a read-only session requires write=true'), which is a parameter precondition, not a when-to-use-versus-alternative guideline, and there are no exclusions or alternatives named.

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