Skip to main content
Glama
MIRAI Intelligence & Research MCP

MIRAI Intelligence & Research MCP

by Tarant336

ELF binary analysis

elf_analyze
Read-onlyIdempotent

Parse ELF binaries in pure JavaScript to inspect headers, sections, dependencies, interpreter, and security flags (NX, PIE, RELRO, canary, FORTIFY); detect libc/packer hints without execution.

Instructions

Parse an ELF binary in pure JS: header (class, endianness, OSABI, type, machine, entry), section and program headers with resolved names, the interpreter, DT_NEEDED dependencies, and checksec-style flags (NX, PIE, RELRO, stack canary, FORTIFY, stripped). Detects uClibc/glibc/musl hints and UPX/packer indicators. Read-only; the binary 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": "elf_analyze"
  }
}

Input Schema

NameRequiredDescriptionDefault
filePathYesPath to the artifact, relative to the authorized workspace root.
maxStringsNo

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 declare read-only, idempotent, non-destructive, closed-world, so the safety profile is covered. The description still adds real behavioral context beyond them: "pure JS" (no external tooling required) and "the binary is never executed", which reassures an agent that running it on untrusted malware is safe. It omits what happens on a non-ELF or malformed file, which keeps it short of a 5.

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 verb+resource, then a dense enumeration of outputs; every clause carries information and there is no filler. The single long sentence is packed but still scannable, though splitting the safety note ("never executed") into its own line would improve it slightly.

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?

With no output schema, the description bears the burden of saying what comes back, and it does so thoroughly (header fields, resolved names, dependencies, checksec flags, libc and packer detection). The remaining gaps — maxStrings semantics and error behavior on non-ELF input — are minor for a read-only parser.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description never mentions either parameter. filePath is documented in the schema, but maxStrings has only numeric bounds and no description, and at 50% schema coverage the description should have explained that it caps extracted strings (and what the default behavior is). An agent must guess what maxStrings controls and when to raise it.

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?

States a specific verb+resource ("Parse an ELF binary") and then enumerates exactly what is extracted: header fields, section/program headers, interpreter, DT_NEEDED, and checksec flags. That enumeration makes it immediately separable from siblings like binary_vulnerability_analyze or firmware_analyze, which operate at a different level of analysis.

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 strongly implied by the output list (reach for this when you need ELF metadata, dependencies, or hardening flags), but there is no explicit when-to-use statement, no exclusion of alternatives, and no guidance on when a sibling such as binary_vulnerability_analyze would be the better call. Adequate but leaves routing to inference.

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