Skip to main content
Glama
drvcvt
by drvcvt

esil_set_register

Set a register value in the ESIL virtual machine to control emulation state. Use a persistent session ID for continuity, or provide a binary path to create a fresh session.

Instructions

Set a register value in the ESIL virtual machine. If session_id is provided, uses a persistent session; otherwise creates a fresh session.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
valueYesValue to set the register to (hex string, e.g. "0x41414141")
addressNoAddress (hex) to set as program counter before modifying registers
session_idNoPersistent ESIL session ID from esil_init. If provided, binary_path and address are ignored.
binary_pathNoAbsolute path to the binary file. Required when session_id is not provided.
register_nameYesRegister name to set (e.g. "eax", "rip", "rsp")

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior3/5

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

No annotations are provided, so the description carries the behavioral disclosure burden. It discloses the persistent vs. fresh session behavior, which is valuable, but it does not mention side effects, return behavior, or what happens to the fresh session after the call.

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?

Two short sentences with no filler. The core action is front-loaded, followed by the conditional session behavior. Every sentence adds useful information.

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?

The schema already documents the parameters, and the description explains the session-mode distinction. However, with no output schema and no annotations, the description omits return semantics and the lifecycle of a freshly created session, which an agent would need for confident invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3. The description adds meaning beyond the schema by clarifying what happens when session_id is absent: a fresh session is created. This supplements the schema's 'binary_path is required' hint with the actual session-creation behavior.

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 states a specific action and resource: setting a register value in the ESIL virtual machine. The explicit ESIL wording distinguishes it from sibling tools like debug_set_register and rzil_set_register, which target different execution contexts.

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 description gives a useful internal condition for session_id: persistent session if provided, fresh session otherwise. However, it does not explicitly compare this tool to alternatives such as debug_set_register or rzil_set_register, so when-to-use versus those siblings is left implied.

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