Skip to main content
Glama

verify_flash

Confirm flash memory content matches expected data at a specified start address to validate firmware programming on J-Link targets.

Instructions

Verify Flash content / 校验 Flash 内容.

Args: address: Start address / 起始地址 data: Expected data / 期望的数据

Returns: Verification 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>",
      "data": "<data>"
    },
    "name": "verify_flash"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYes
addressYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

C2.8/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It does not disclose whether this reads the target device, whether it mutates state, how long it takes, or what happens when the comparison fails; only the presence of an output schema relieves it of describing return shape.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The content is short and front-loaded, but every line is duplicated in English and Chinese, roughly doubling the length without adding information an agent needs. The Args/Returns structure is clean but the Returns section is redundant with the output schema.

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 hardware-touching verification operation, the description leaves important gaps: the connection/halt prerequisite, failure semantics, and whether the operation is safe to repeat. It is adequate only as a bare minimum given that an output schema exists to cover return values.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/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 compensate and it partially does: 'address' is identified as the start address and 'data' as the *expected* data, which conveys comparison semantics rather than just a payload. It still omits address units, whether data length determines the verify range, and any size limits.

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?

The first line states a specific verb and resource, 'Verify Flash content', which naturally contrasts with the sibling operations erase_flash and program_flash. It does not explicitly name a sibling or state how it differs from a read-back/compare alternative, so it falls 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 Guidelines2/5

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

The description gives no when-to-use guidance, no preconditions (e.g. device must be connected or halted), and no exclusions relative to program_flash or erase_flash. The agent must infer that this is a post-programming read-back comparison.

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