Skip to main content
Glama

virtual_write

Write hex data to a target's virtual address through page tables to patch memory in DMA or dump-backed sessions.

Instructions

Write virtual memory through page tables (hex).

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": {
      "va": "<va>",
      "data": "<data>"
    },
    "name": "virtual_write"
  }
}

Input Schema

NameRequiredDescriptionDefault
vaYes
cr3No
dataYes
levelsNo
sessionNodefault

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?

No annotations are provided, so the description must carry the full behavioral burden, and it does not: it never says what happens on an unmapped page, whether writes are observable to the target process, or what permissions/attach state are required. The only behavior disclosed is the page-table translation path and the hex encoding.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single short, front-loaded sentence with no filler, which is good, but the brevity reflects under-specification rather than disciplined editing for a five-parameter mutation tool.

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 not be described, but with five parameters at 0% schema coverage and no annotations on a mutating tool, the definition leaves too much to inference about addressing mode and session handling.

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 coverage is 0%, and the description only implies that the address and data are hex strings via '(hex)'. The four other parameters (cr3, levels, session defaults) receive no explanation of their meaning or interaction, so the gap remains large.

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 ('Write') and resource ('virtual memory') plus the mechanism ('through page tables'), which distinguishes it from siblings like physical_write, emu_write, and virtual_read. It stops short of naming or contrasting those alternatives explicitly.

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 guidance on when to choose this over physical_write or emu_write, nor any stated prerequisites such as needing an attached session or a valid cr3. The '(hex)' note is the only usage-shaped hint.

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