Skip to main content
Glama

session_open

Open a memory acquisition session from a DMA device, dump file, remote agent, or mock target to initialize live-memory reverse engineering.

Instructions

Open a memory acquisition session.

device: "fpga" (PCILeech), a memory dump path, "pmem", "usb3380", a LeechAgent remote ("rpc://host"), or "mock" for a deterministic test target when backend="mock". options is a space-separated list of extra MemProcFS arguments.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "session_open"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNodefault
deviceNofpga
backendNomemprocfs
optionsNo
forensicNo
wait_initializeNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden, and it omits the most consequential traits: that the call creates persistent state, whether repeated calls error or replace an existing session, whether hardware backends can block or fail on missing devices, and what cleanup is expected. The one real disclosure beyond the schema is that options are passed through as extra MemProcFS arguments, which implies they are raw vendor flags with vendor-specific failure modes.

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?

The purpose sentence is front-loaded and the device/value breakdown follows logically, with no filler sentences. The layout is slightly ragged — the second sentence begins mid-thought with "device:" and reads as pasted parameter documentation — but nothing in it 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?

An output schema exists, so return values need not be explained, but for a stateful, hardware-backed session opener with six parameters and no annotations the definition is still thin. Session lifecycle (how many concurrent sessions, how to tear down, what the returned handle implies) and the meaning of forensic and wait_initialize are missing, which an agent needs before calling it correctly.

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 description coverage is 0%, so the description must compensate, and it does so for the highest-risk parameter by enumerating device values with their meanings (fpga=PCILeech, a dump path, pmem, usb3380, rpc://host LeechAgent, mock) and by explaining options as space-separated extra MemProcFS arguments. However, name, forensic (an opaque integer 0/1), and wait_initialize (apparently blocking behavior) are left completely undefined, so half the surface remains undocumented in both places.

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?

"Open a memory acquisition session" gives a specific verb and resource, and the device enumeration (fpga/PCILeech, dump path, pmem, usb3380, rpc://host, mock) makes clear this is about standing up a backend, not reading memory contents. It is distinguishable from session_close and session_list by name and function, though the description never explicitly contrasts them.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no statement of when this tool should be used versus alternatives, no prerequisite or ordering guidance relative to session_close, and no note on what to do if a session already exists. The only usage-flavored hint is that "mock" is for a deterministic test target when backend="mock", which is guidance about a parameter value rather than about invoking the tool.

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