Skip to main content
Glama

emu_create

Create an emulator from a loaded image, optionally set RIP/RSP, install IAT stubs for OS-backed calls, and enable instruction/trace recording for coverage analysis.

Instructions

Create an emulator over a loaded image (optionally seeding rip/rsp).

stubs=True installs an import stub for every IAT slot up front, which is what lets emu_call run a real function that talks to the OS. trace=True starts recording executed instructions and taken edges (see emu_coverage); it is off by default because a hook per instruction is slow.

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

Input Schema

NameRequiredDescriptionDefault
keyYes
ripNo
rspNo
stubsNo
traceNo
sessionNo
stack_sizeNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations exist, so the description carries the full disclosure burden. It does add genuine behavioral value: stubs pre-installs one stub per IAT slot, and trace is off by default because a per-instruction hook is slow — a real cost disclosure. However it says nothing about lifecycle (does creating require a prior load, does it need emu_close), failure modes, or whether repeated calls reset state.

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 first sentence delivers the core action and scope before any flags are discussed, and each following sentence covers one flag. The backtick-heavy prose adds mild visual noise but no true waste.

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 no explanation, and the flag semantics are well covered. For a 7-parameter lifecycle tool with zero annotation coverage, the unexplained key/session/stack_size parameters and the absence of any creation-prerequisite or teardown guidance leave a real gap.

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 for all 7 parameters. It meaningfully explains stubs and trace and notes that rip/rsp are optional seeds, but key, session, and stack_size receive no explanation at all in either the schema or the description.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb and target ('Create an emulator over a loaded image') and immediately qualifies scope with 'optionally seeding rip/rsp'. It also names the sibling tools it interoperates with (emu_call, emu_coverage), so an agent can place it relative to the rest of the family without opening the schema.

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: stubs=True is tied to 'lets emu_call run a real function that talks to the OS' and trace=True points to emu_coverage, which gives useful conditional context. There is no explicit when-to-use or when-not-to-use statement, and no mention of prerequisites such as having an image loaded or needing emu_close afterwards.

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