Skip to main content
Glama

flash_and_verify

Program, verify, and optionally reset an embedded target via OpenOCD in one atomic operation, helping ensure firmware is written correctly before reset.

Instructions

Atomically program, verify, and optionally reset a target via OpenOCD.

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": {
      "elf_path": "<elf_path>"
    },
    "name": "flash_and_verify"
  }
}

Input Schema

NameRequiredDescriptionDefault
verifyNo
elf_pathYes
board_nameNo
reset_afterNo
user_approvedNo
approval_tokenNo
bootloader_endNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

C2.7/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 usefully discloses atomicity and that reset is optional, but it omits critical operational context: this is a destructive hardware mutation, it appears gated by approval parameters, and nothing is said about permissions, failure modes, or what verification failure means.

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?

The single sentence is front-loaded, dense, and free of filler. It is appropriately concise for what it attempts, though the brevity leaves the tool under-specified rather than over-explained.

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 7-parameter destructive flash operation with approval gating, no annotations, no output schema, and zero schema coverage, one sentence is far from complete. An agent lacks the information needed to determine prerequisites, approval flow, verification behavior, or parameter usage.

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 7 parameters, so the description must compensate. It only incidentally maps to verify and reset_after ('optionally reset') and implies elf_path; board_name, user_approved, approval_token, and bootloader_end receive no explanation at all, leaving half the parameters semantically opaque.

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 description states a specific compound verb+resource: atomically program, verify, and optionally reset a target via OpenOCD. This implies a difference from siblings like verify_flash (verify only) and flash_elf (program only), but it never names or explicitly contrasts them, so an agent must infer the routing.

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 or when-not-to-use guidance, no mention of a preflight step (despite a flash_preflight sibling), and no hint about approval requirements even though the schema exposes user_approved and approval_token. The only guidance is implicit in the tool name.

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