Skip to main content
Glama
MIRAI Intelligence & Research MCP

MIRAI Intelligence & Research MCP

by Tarant336

Binary similarity scoring

binary_similarity
Read-onlyIdempotent

Compare two binaries to compute data-derived similarity scores and verdicts using SHA-256 identity, prefix ratio, byte histograms, string Jaccard, and ELF section overlap.

Instructions

Compute real, data-derived similarity between two binaries: exact SHA-256 identity, identical-prefix ratio, byte-histogram cosine similarity, normalized string-set Jaccard similarity and ELF section-name overlap. An exact hash match is authoritative (combined score 1.0, verdict "identical"); otherwise a combined score and a verdict band are returned with an honest confidence. No metric is hallucinated.

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": {
      "fileA": "<fileA>",
      "fileB": "<fileB>"
    },
    "name": "binary_similarity"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileAYesFirst binary, inside the workspace.
fileBYesSecond binary, inside the workspace.

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 cover read-only, idempotent, non-destructive, closed-world behavior, so the description is not obligated to repeat that. It adds genuinely useful behavior above that bar: exact hash match is authoritative and forces score 1.0 with verdict 'identical', otherwise a combined score, verdict band and confidence are returned ('no metric is hallucinated'). It stops short of saying how the combined score is weighted or what the verdict bands are.

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-loaded with the action and resource, then the metric list, then the scoring rule. The long metric enumeration is dense but each item is substantively different; the closing 'No metric is hallucinated' is a slightly redundant reassurance but does signal trustworthy outputs.

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?

There is no output schema, so the description carries return-value semantics on its own and does so: score range endpoints, exact-match short circuit, verdict labels and confidence. For a two-parameter read-only comparison tool this covers everything an agent needs to interpret results, with only minor gaps (band thresholds, behavior on non-ELF or oversized inputs).

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 as workspace-relative paths with minLength. The description adds no format, size, or format-compatibility guidance for fileA/fileB, so it neither helps nor harms beyond the schema baseline.

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 and resource ('Compute ... similarity between two binaries') and enumerates the concrete metrics used (SHA-256 identity, prefix ratio, histogram cosine, string-set Jaccard, ELF section overlap). No sibling in the list performs pairwise binary comparison, so no differentiation is strictly needed, but the description never states what makes a 'binary' in this context beyond the schema's workspace note.

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: an agent can infer this is the tool for comparing two files, but there is no explicit when-to-use, when-not-to-use, or routing to an alternative (e.g. a hash lookup or vulnerability analysis sibling). The workspace constraint is only in the schema, not reinforced here.

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