Skip to main content
Glama

read_memory

Read-only

Reads up to 4096 bytes of target memory in a Keil debug session and returns hex values by word, blocking side-effect regions during reads.

Instructions

Đọc khối nhớ (<= 4096 byte), trả hex theo word. Vùng có tác dụng phụ khi đọc bị chặn.

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": {
      "addr": "<addr>",
      "length": "<length>"
    },
    "name": "read_memory"
  }
}

Input Schema

NameRequiredDescriptionDefault
addrYes
widthNo
lengthYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior4/5

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

Beyond the readOnlyHint/destructiveHint annotations, the description discloses three substantive behaviors: the 4096-byte cap, hex-per-word output, and that memory regions with read side effects are blocked. It still says nothing about alignment requirements, unmapped-address behavior, or error responses, so it is not fully transparent.

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 essential constraints (size cap, output format) are front-loaded. The terseness is efficient, though it borders on under-specification rather than verbosity.

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 3-parameter tool with no schema descriptions and no output schema, the definition leaves critical calling details unstated: address format, length units, and what the returned hex actually contains. An agent could plausibly mis-call this by passing a byte length where words are expected.

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%, so the description must carry all parameter meaning, and it largely does not. 'addr' format (hex string vs integer, absolute vs symbol-relative) and whether 'length' is in bytes or words are never clarified, and 'width' is only obliquely hinted at by 'hex theo word'.

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+resource ('Đọc khối nhớ') with a size cap (<= 4096 byte) and the return format ('trả hex theo word'), which is enough to separate it from register/peripheral readers in the sibling set. It stops short of naming a sibling or explicitly contrasting its scope with them.

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?

Usage is only implied: the agent must infer that this is the raw-memory reader versus read_registers/read_periph. The note that side-effecting regions are blocked is a useful constraint, but there is no explicit when-to-use or when-not-to-use guidance.

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