Skip to main content
Glama

physical_write

Patch bytes directly into a raw physical memory dump file on disk. Use this to edit a saved dump in place instead of writing to a live process.

Instructions

Write bytes into a raw physical dump file on disk.

Not a write to a live target: the physical backend backs a dump file, so this edits that file in place. Use write for a live process.

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": {
      "pa": "<pa>",
      "data": "<data>"
    },
    "name": "physical_write"
  }
}

Input Schema

NameRequiredDescriptionDefault
paYes
dataYes
sessionNodefault

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

There are no annotations, so the description carries the full burden. It discloses that this mutates a dump file in place ('edits that file in place') and that it is not a live-target write, which is useful context. However, it does not state prerequisites like an attached or loaded session, whether the edit is reversible, or permission requirements, leaving meaningful behavioral gaps for a write operation.

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?

The description is three short, front-loaded sentences with no redundant wording. The key scoping fact appears first, followed by the behavioral clarification and the alternative 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 explained. The description covers purpose and the main usage fork, but for a three-parameter mutation tool with no annotations and zero schema descriptions, it should explain the parameters and any session or attachment prerequisites. It is adequate but incomplete.

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% for all three parameters. The description's phrase 'write bytes' loosely implies the 'data' parameter, but it never explains 'pa' (physical address) or the 'session' parameter and its default. With no schema documentation, the description fails to compensate for the coverage gap.

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 verb and resource — writing bytes into a raw physical dump file on disk — and explicitly distinguishes this from a live-target write, naming the sibling 'write'. An agent can immediately tell what this tool does and what it is not.

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

Usage Guidelines4/5

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

It gives a clear when-to-use context (the physical backend backs a dump file) and an explicit alternative for the opposite case: 'Use write for a live process.' It does not cover alternatives such as virtual_write or emu_write, but the primary fork is stated.

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