Skip to main content
Glama

nRFUtil Raw Pass-Through

nrfutil_raw
Destructive

Runs nrfutil commands to recover nRF52 devices stuck in serial DFU by flashing firmware packages; dfu/settings actions require confirmation and trusted arguments.

Instructions

Pass-through to nrfutil.

dfu/settings subcommands require confirm=True, or the user's answer when the client can ask. Recovers an nRF52 left sitting in serial DFU, with no touch, as args=["dfu", "serial", "--package", "<zip>", "--port", "/dev/ttyACM0", "-b", "115200", "--singlebank"] (adafruit-nrfutil).

Security: args is passed directly to the nrfutil binary. All arguments must come from a trusted source; do not allow untrusted content to flow into argument lists.

Returns {exit_code, stdout, stderr, stdout_tail, stderr_tail, duration_s}.

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": {
      "args": "<args>"
    },
    "name": "nrfutil_raw"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsYesThe nrfutil arguments, from a trusted source only.
confirmNo`True` once the user agreed; omitted, a client that can ask prompts the human. Only dfu/settings subcommands ask.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructive, open-world, non-idempotent, non-read-only behavior, so the bar is lower, but the description still adds real context beyond them: arguments are executed directly against the binary, untrusted content must never reach `args`, and confirm-gating applies only to dfu/settings subcommands. It also names the return fields, though that is partly redundant with the existing output schema.

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?

Front-loads the one-line purpose, then layers confirm rules, a recovery recipe, a security warning, and the return shape — each block earns its place. Slightly dense, and the recovery example is long, but nothing is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a raw-execution escape hatch this covers what it does, the trust boundary, the confirmation protocol, and the returned fields, with an output schema already documenting return shape. The main residual gap is failure behavior — what a non-zero exit or missing binary looks like in practice.

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

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3, and the description genuinely adds meaning: `args` is passed verbatim to the binary (implying no validation or allow-listing) and `confirm` is only consulted for dfu/settings subcommands rather than every call. It does not clarify what happens if a caller omits `confirm` in a non-interactive client.

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: a raw pass-through that executes the `nrfutil` binary with a caller-supplied argument list, plus a concrete recovery scenario and an example argument vector. An agent can tell this is the unstructured/escape-hatch path rather than a typed operation, though it never names the structured `nrfutil_dfu` sibling as the preferred path.

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 clear when-to-use context ('recovers an nRF52 left sitting in serial DFU') and a conditional rule for `confirm` (needed for dfu/settings subcommands, or the user's answer when the client can ask). It does not state when NOT to use it, e.g. when a structured DFU tool would be safer, so it stops short of full routing guidance.

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