Skip to main content
Glama
MIRAI Intelligence & Research MCP

MIRAI Intelligence & Research MCP

by Tarant336

Firmware patch diff

firmware_patch_diff
Read-onlyIdempotent

Compare two firmware versions to identify patch-level changes through SHA-256 and size checks, entropy shifts, added or removed strings, and detected component version differences. Read-only analysis.

Instructions

Compare two firmware versions to support patch analysis: SHA-256 and size of both, entropy comparison, the set-difference of extracted strings (added/removed), and component version differences detected in both images. Read-only.

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": {
      "beforePath": "<beforePath>",
      "afterPath": "<afterPath>"
    },
    "name": "firmware_patch_diff"
  }
}

Input Schema

NameRequiredDescriptionDefault
afterPathYesPath to the newer firmware image (workspace-relative).
beforePathYesPath to the artifact, relative to the authorized workspace root.

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?

Annotations already declare readOnlyHint, idempotentHint, non-destructive, and closed-world, so the trailing 'Read-only.' sentence adds nothing and is redundant. The real value is that the description discloses the shape of the analysis performed (entropy comparison, added/removed strings, component version differences), which matters because no output schema exists. It still omits any mention of cost, limits, or behavior on non-firmware inputs.

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?

It is a single front-loaded sentence that names the action first and then the outputs, with no filler. The one weak element is the trailing 'Read-only.' fragment, which duplicates the annotation rather than earning its place.

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 tool with no output schema, the description compensates well by enumerating the returned sections an agent would need to plan around. Gaps are minor: no note on failure modes for unreadable or mismatched images, and no indication of output size or whether the string/component lists are bounded.

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 100%, and both parameters are documented there, including that afterPath is the newer image and paths are workspace-relative. The description adds no syntax, ordering, or format detail beyond that, so it sits at the baseline of 3 where the schema does the heavy lifting.

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 opens with a specific verb and resource ('Compare two firmware versions to support patch analysis') and enumerates exactly what the comparison produces: hashes, sizes, entropy, string set-difference, and component version deltas. That is far more informative than the title alone. It stops short of 5 because it never distinguishes itself from the similarly named sibling patch_diff_analyze, leaving the agent to infer which diff tool applies to firmware images.

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 phrase 'to support patch analysis' implies the intended context, but there is no explicit when-to-use rule, no when-not condition, and no named alternative among the many firmware_* and patch_diff_* siblings. An agent can infer this is for comparing exactly two images, but must guess at the boundary with firmware_analyze or patch_diff_analyze.

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