Skip to main content
Glama

write

Patch target memory with bytes or typed values; each change is journaled so modifications can be reversed.

Instructions

Write bytes or a typed value. Every write is journaled and reversible.

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

Input Schema

NameRequiredDescriptionDefault
vaYes
pidNo
dataNo
noteNo
valueNo
sessionNodefault
value_typeNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden, and it does disclose two genuinely useful traits: writes are journaled and reversible, which tells the agent mutations can be undone. It omits everything else an agent needs for a write tool, such as required permissions, what happens on an invalid address, or whether the write is atomic.

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?

Two short sentences, front-loaded with the action and followed by the reversibility guarantee; nothing is padded. The terseness is efficient even though it leaves substance out, which is a completeness problem rather than a conciseness one.

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?

For a seven-parameter write tool with zero annotation coverage and zero schema descriptions, two sentences are far too thin; the presence of an output schema excuses explaining return values, but nothing explains the parameters or the targeting model. An agent could not reliably pick this over its three write siblings or fill in va/pid/session correctly.

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% across seven parameters, and several names (va, pid, session) are opaque without domain knowledge. "Bytes or a typed value" only loosely gestures at the data versus value/value_type split and leaves va, pid, note, and session completely unexplained, so the description does not compensate for the coverage gap.

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

Purpose3/5

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

"Write bytes or a typed value" gives a verb and a rough sense of the payload, but never names the target resource. With siblings named emu_write, physical_write, and virtual_write, an agent cannot tell which write surface this generic tool covers, so the purpose stays ambiguous despite being a real description.

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 to use this tool versus emu_write, physical_write, or virtual_write, and no prerequisites or exclusions. The agent must infer the selection rule from sibling names alone, which the description never references.

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