Skip to main content
Glama

flash_elf

Programs an ARM target through a protected flash-and-verify workflow, requiring preflight approval and an approval token before writing firmware.

Instructions

Program the target via the protected flash_and_verify workflow.

Requires running flash_preflight first, obtaining explicit user approval, and supplying both user_approved=true and the preflight approval_token.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "flash_elf"
  }
}

Input Schema

NameRequiredDescriptionDefault
verifyNo
elf_pathNo
board_nameNo
reset_afterNo
user_approvedNo
approval_tokenNo
bootloader_endNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden, and it does disclose the gating workflow (preflight token, human approval) that an agent must satisfy. However, it never states that flash memory is overwritten, whether the operation is reversible, what verify/reset_after do to the device, or what happens on failure — significant omissions for a destructive hardware write.

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?

Two tight sentences with the action front-loaded and the prerequisites immediately after. Nothing is redundant or padded.

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, unannotated, no-output-schema hardware-write tool, the definition covers only the approval gate. It says nothing about the meaning of most parameters, the target-selection behavior, or the consequences of programming, so an agent still cannot call it confidently.

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, and the description only explains two of them (user_approved, approval_token). elf_path, board_name, verify, reset_after, and bootloader_end carry no meaning in either place, so the description fails to compensate for the coverage gap.

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: "Program the target via the protected flash_and_verify workflow." An agent can tell this writes an ELF to hardware, but the phrasing leaves the relationship to the sibling tool flash_and_verify ambiguous (wrapper? alias? gated variant?), so it falls short of clean sibling differentiation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

Gives explicit preconditions: run flash_preflight first, get explicit user approval, then pass user_approved=true plus the preflight approval_token. This is strong when-to-use guidance, though it does not say when to prefer flash_and_verify or verify_flash over this tool.

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