Skip to main content
Glama

Inspect an executable or bytecode

re_binary
Read-onlyIdempotent

Inspect PE, ELF, Mach-O, .NET, WebAssembly, Java, Android, Lua and Python binaries for architecture, sections, imports/exports, signing and strings to guide reverse engineering; read-only.

Instructions

Inspects PE/EXE/DLL (incl. .NET assemblies: runtime, types and methods), ELF, Mach-O (incl. universal), WebAssembly, Java .class, Android .dex, Lua/LuaJIT and Python bytecode: architecture, sections with entropy, imports/exports, PDB path, signing, overlay data (e.g. an embedded game pack), toolchain/engine hints and strings. Read-only: it does not unpack, decrypt or patch.

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": {
      "file": "<file>"
    },
    "name": "re_binary"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesBinary file.
namesNoImport/export name options: match, limit.
stringsNoString options: min, limit, match, maxMB, raw.
maxTypesNo.NET types to list (default 300).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.25.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description still adds real value by scoping the behavior beyond the hints: it names what it will not do ("does not unpack, decrypt or patch") and the extra artifacts it surfaces (entropy, overlay data such as an embedded game pack, toolchain/engine hints). It stops short of stating cost/limits behavior for very large binaries, which the schema only partially implies via maxMB.

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 dense sentence with the format list front-loaded and the read-only caveat placed last as a natural qualifier; every clause contributes either a format or an output category. The enumeration is long, but it is informative rather than padding.

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

Completeness3/5

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

For a 4-parameter read-only inspector with no output schema, the description covers formats, returned data and safety, which is most of what an agent needs. The notable gap is workflow context: with open_binary, binary_session and close_binary as siblings, it never says whether re_binary operates on a path directly or on a previously opened session, which is exactly the ambiguity that would cause a mis-call.

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 nested objects (names, strings, maxTypes) are fully documented in the input schema, so the baseline of 3 applies. The description mentions "imports/exports" and "strings" conceptually, which loosely maps to the names and strings objects, but adds no filtering, default or limit semantics beyond what the schema already says.

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 ("Inspects") and enumerates the exact resource classes it handles (".NET assemblies, ELF, Mach-O, WebAssembly, .dex, Lua/Python bytecode") plus the fields it returns (architecture, sections with entropy, imports/exports, PDB path, signing). An agent can tell this is a static binary-inspection tool. It does not, however, differentiate itself from close siblings such as binary_overview, re_strings or re_symbols, so the agent must still guess which of those overlapping tools 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: the broad format list and the read-only disclaimer suggest static triage, and "it does not unpack, decrypt or patch" marks a negative boundary. There is no explicit statement of when to choose this over binary_overview, re_strings, open_binary or binary_session, nor any prerequisite about whether the file must first be opened in a session.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.