Skip to main content
Glama
MIRAI Intelligence & Research MCP

MIRAI Intelligence & Research MCP

by Tarant336

Firmware integrity check

firmware_integrity_check
Read-onlyIdempotent

Computes SHA-256 and MD5 digests and file size, verifies them against expected values with match/mismatch reporting, and flags signature-like trailing blocks without claiming key-based verification.

Instructions

Compute SHA-256 and MD5 digests and size of a firmware image, verify them against expected values with match/mismatch reporting, and note the presence of signature-like trailing blocks (e.g. U-Boot FIT / RSA payloads). Presence of a signature block is reported but is NOT claimed as verification without the corresponding keys.

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

Input Schema

NameRequiredDescriptionDefault
filePathYesPath to the artifact, relative to the authorized workspace root.
expectedMd5No
expectedSizeNo
expectedSha256No

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already establish that this is a safe, read-only, idempotent operation. The description adds meaningful behavioral context, especially the caveat that signature-like block presence is reported but is not claimed as verification without corresponding keys.

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?

The description is front-loaded, dense with relevant information, and free of filler. The second sentence is a necessary caveat about signature verification rather than redundant explanation.

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 four-parameter tool with no output schema and low schema coverage, the description does a good job explaining what will be computed, compared, and reported. It falls short only on optional-parameter behavior and expected digest formatting.

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 description coverage is only 25%, with only filePath documented in the schema. The description partially compensates by explaining that digests and size are verified against expected values with match/mismatch reporting, but it does not specify expected digest formats, case handling, or that the expected-value fields are optional.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses specific verbs and resources: compute SHA-256 and MD5 digests plus size, verify against expected values, and note signature-like trailing blocks. This clearly distinguishes an integrity-checking tool from broader firmware analysis or provenance tools.

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?

The purpose implies when to use it for firmware integrity verification, but there is no explicit guidance about when to prefer it over sibling tools such as firmware_analyze or source_provenance_check. It also does not state when the tool would not be appropriate.

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