Skip to main content
Glama

read_memory

Reads target memory at a specified address and size, with configurable access width, to inspect STM32 runtime data and verify firmware behavior.

Instructions

Read memory at specified address / 读取指定地址的内存.

Args: address: Start address / 起始地址 size: Read size (bytes, max 64KB) / 读取大小(字节,最大 64KB) width: Access width (8/16/32 bits, default 32) / 访问宽度(8/16/32位,默认 32)

Returns: Memory read result / 内存读取结果

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

Input Schema

NameRequiredDescriptionDefault
sizeYes
widthNo
addressYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description bears the full behavioral burden. It does disclose a real constraint (max 64KB per read) and the default access width, but says nothing about alignment requirements, whether the CPU must be halted, behaviour on unmapped addresses, or error reporting.

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?

Front-loaded one-line statement followed by compact Args and Returns sections. No filler, and the bilingual duplication is repetition of content rather than added noise.

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 no explanation, and all three parameters are covered. However, for a hardware memory access tool with zero annotations, the absence of any note on target state, alignment or failure modes leaves a meaningful gap.

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 0%, so the description must carry parameter meaning, and it does: address as start address, size in bytes with a 64KB cap, and width restricted to 8/16/32 with default 32. The cap and width values add genuine meaning beyond the bare integer schema.

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: "Read memory at specified address". That is unambiguous and clearly distinct from write_memory, but the description does not explicitly name or contrast with alternatives such as read_registers or rtt_read.

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 when-to-use guidance, no prerequisites and no mention of alternatives. The agent must infer from the tool name alone that this is for raw memory rather than register reads or RTT.

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