Skip to main content
Glama

write_memory

Writes a value to a specified target memory address with configurable word size, requiring explicit user approval before modifying firmware memory.

Instructions

Write target memory. Requires explicit user approval.

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": {
      "address": "<address>",
      "value": "<value>"
    },
    "name": "write_memory"
  }
}

Input Schema

NameRequiredDescriptionDefault
valueYes
addressYes
word_sizeNo
user_approvedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does add one genuinely useful behavioral fact — user approval must be obtained before writing — but says nothing about the write being destructive/irreversible, whether it can brick or corrupt a running target, whether the target must be halted, or how failures surface.

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 with no filler, and the operation is front-loaded ahead of the constraint. The terseness edges into under-specification rather than padding, so brevity itself is not the problem.

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?

This is a hardware memory-write operation with no annotations, no output schema, and zero documented parameters — a high-risk class of tool. The definition covers only the approval gate, leaving an agent without enough information to call it safely or 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 four parameters, so the description must compensate and largely does not. 'Explicit user approval' loosely gestures at the user_approved boolean but never states it must be set true to proceed, and nothing explains the address format, value encoding, or word_size semantics.

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?

States a specific verb and resource: 'Write target memory' tells an agent exactly what the operation does and clearly contrasts with the read_memory/read_memory_batch siblings by verb alone. It does not explicitly name or differentiate against any sibling, so it stops short of a 5.

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 only guidance is a procedural precondition ('Requires explicit user approval'), which is more than nothing and does affect how the tool should be invoked. There is no when-to-use vs when-not guidance, no mention of alternatives, and no warning about what conditions make a write unsafe.

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