Skip to main content
Glama
MIRAI Intelligence & Research MCP

MIRAI Intelligence & Research MCP

by Tarant336

Firmware extraction (isolated, static)

firmware_extract
Destructive

Extracts firmware image members into a workspace directory with binwalk or a pure-JS carve, keeping output contained and never executing extracted content.

Instructions

Extract members from a firmware image into a workspace directory. When binwalk is available it is run with --extract inside the workspace; otherwise a pure-JS best-effort carve is used that splits embedded gzip/xz/bzip2/zstd streams by magic and parses cpio "newc" archives. All output stays inside the workspace. Extracted content is NEVER executed.

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": {
      "filePath": "<filePath>"
    },
    "name": "firmware_extract"
  }
}

Input Schema

NameRequiredDescriptionDefault
filePathYesPath to the artifact, relative to the authorized workspace root.
outputDirNoOutput directory (workspace-relative). Defaults to extraction-out/<name>.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

Goes beyond the annotations by disclosing the execution mechanism (binwalk --extract when available, otherwise a pure-JS magic-based carve of gzip/xz/bzip2/zstd streams and cpio newc parsing), the non-determinism that implies, the workspace confinement guarantee, and the never-executed safety guarantee. It still doesn't say what happens to a pre-existing outputDir or what an empty/partial extraction looks like, which matters given destructiveHint=true.

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?

Three sentences, front-loaded with the action and its destination, followed by the mechanism and the safety invariant. Dense but every clause carries information; only the engine fallback detail borders on over-explanation for a routing decision.

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 two-parameter, no-output-schema tool, the definition covers mechanism, confinement, safety, and the fallback path. The main residual gap is return behavior (how extracted members are reported) and failure modes when binwalk is absent or the image yields nothing.

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 coverage is 100% and both parameters are already documented, including the outputDir default. The description reinforces the workspace-relative constraint and that output lands in a workspace directory, but adds no new format or path semantics beyond the schema.

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 precise verb and resource: 'Extract members from a firmware image into a workspace directory.' The scope (members, not analysis) is clear and distinguishable from analysis-oriented siblings such as firmware_filesystem_analyze, though the description never names a sibling explicitly.

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

Usage Guidelines3/5

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

Usage is only implied: extraction is the prerequisite step before analysis, and the workspace root must already be authorized. There is no explicit 'use this when X, use firmware_analyze instead when Y' routing despite several closely related siblings.

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

Deploy Server

Other Tools