Skip to main content
Glama

flash_preflight

Validate an ELF image against target memory boundaries and issue an approval token before firmware flashing.

Instructions

Validate an ELF image against target memory boundaries and issue an approval token.

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_preflight"
  }
}

Input Schema

NameRequiredDescriptionDefault
verifyNo
elf_pathYes
reset_afterNo
target_nameNo
bootloader_endNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

C2.9/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden, and it does disclose one non-obvious behavior: issuing an approval token, implying a gated workflow rather than a simple check. It does not say whether a token is required by flash tools, how long it lives, whether validation failure blocks execution, or whether a connected target is needed.

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?

A single well-formed sentence with the core action front-loaded and no filler. It is efficient, though the terseness comes partly at the cost of the missing guidance noted elsewhere.

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?

A five-parameter tool with no annotations, no output schema, and no description of the returned token is under-specified for its complexity. The agent cannot tell what a successful token looks like, what a failure returns, or how the optional flags alter behavior.

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 five parameters, so the description must compensate, and it barely does: 'an ELF image' maps loosely to elf_path and 'target memory boundaries' hints at target_name/bootloader_end. The verify and reset_after flags, and the format expected for bootloader_end, are entirely unexplained.

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 names a specific verb (validate), a resource (ELF image), a validation domain (target memory boundaries), and an output (an approval token), so the operation is unambiguous. It stops short of distinguishing itself from siblings like verify_flash or flash_and_verify, leaving the agent to infer the difference.

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 explicit when-to-use statement, no prerequisite, and no mention of when this should be skipped in favor of flash_and_verify or verify_flash. The name 'preflight' hints at a gating step, but the description never states that it must run before flashing or what to do with the token.

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