Skip to main content
Glama
MIRAI Intelligence & Research MCP

MIRAI Intelligence & Research MCP

by Tarant336

Firmware image analysis

firmware_analyze
Read-onlyIdempotent

Statically analyze a firmware image to identify its container format, embedded signatures, printable strings, credential/CVE hints, SHA-256 hash, and entropy map without executing the image.

Instructions

Statically analyse a firmware image: detect the container format by magic (SquashFS, JFFS2, UBIFS, CramFS, ext, TRX, U-Boot, DLOB, CHK, ELF, gzip/xz/bzip2/zstd, tar, cpio), scan common offsets for embedded signatures, extract printable strings and classify kernel/vendor/service/credential/URL/CVE hints, and compute SHA-256 plus an entropy map that highlights compressed or encrypted regions. Read-only: the image 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_analyze"
  }
}

Input Schema

NameRequiredDescriptionDefault
filePathYesPath to the artifact, relative to the authorized workspace root.
maxBytesNoMaximum bytes to read from the artifact.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already carry readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint=false, so the safety profile is covered; the description reinforces it with 'the image is never executed,' which adds the specific reassurance that no code runs. More importantly, with no output schema present, the description earns credit for spelling out what the analysis produces (magic-based format list, offset scanning, string classification, SHA-256, entropy map highlighting compressed/encrypted regions). It does not mention size limits, runtime, or how maxBytes affects results.

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 purpose is front-loaded in the opening clause, followed by a colon-delimited enumeration of capabilities and a closing safety note. The long parenthetical of container formats is dense but each element is a distinct detectable artifact; it could be trimmed without losing much, but it is not padding.

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

Completeness5/5

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

For a two-parameter static analyzer with no output schema, the description covers the essential ground: what is detected, what is classified, what is computed, and that nothing is executed. Safety is covered by annotations, parameters by the schema, and outputs by the description, leaving no gap that would cause a mis-invocation.

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?

With 100% schema description coverage across the two parameters (filePath relative to the workspace root, maxBytes cap), the schema already does the semantic work. The description adds nothing about how maxBytes truncation interacts with detection or entropy mapping, which is the one place extra meaning could have been added; baseline 3 is appropriate.

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 verb ('statically analyse') and resource ('firmware image') and enumerates the concrete outputs: format detection, signature scanning, string classification, SHA-256, and entropy mapping. It does not, however, distinguish itself from close siblings such as firmware_filesystem_analyze, firmware_vulnerability_analyze, or firmware_extract, so an agent cannot tell from the text alone which of those to pick.

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 by the verb 'analyse a firmware image' and the 'read-only, never executed' note; there is no explicit when-to-use, when-not-to-use, or named alternative. Given the dense cluster of firmware_* siblings, guidance routing the agent to firmware_extract for extraction or firmware_vulnerability_analyze for CVE work would materially help.

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