Skip to main content
Glama

inspect_binary_layout

Scans PE/ELF headers and section entropy to identify ASLR/DEP/SafeSEH mitigations, IAT/EAT exports, and binary layout risks.

Instructions

Scans PE/ELF headers, ASLR/DEP/SafeSEH mitigations, IAT/EAT exports, and measures Shannon entropy per section.

Input Schema

NameRequiredDescriptionDefault
binary_pathYesAbsolute path to binary

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations, the description carries the full burden but only lists inspection targets. It does not state that the operation is read-only, whether it modifies the binary, expected performance on large files, or how errors are handled.

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?

A single front-loaded sentence that enumerates the key inspection targets with no filler. Every clause maps to a distinct analysis capability.

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 one-parameter, read-only inspection tool, the description adequately enumerates the checks performed. However, with no output schema and no annotations, it omits the shape of the returned report and the tool's safety profile.

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?

The single parameter binary_path has 100% schema description coverage, so the schema already explains the absolute path requirement. The description adds no additional parameter meaning, which is acceptable given complete schema coverage.

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?

It names a specific verb ("Scans") and concrete resources: PE/ELF headers, mitigations, exports, and per-section entropy. The purpose is clear, but it never distinguishes itself from siblings like detect_binary_protections or scan_byte_entropy that cover overlapping checks.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to choose this tool over detect_binary_protections, scan_byte_entropy, or trace_binary_xrefs, despite clear overlap. The description only states what it scans, leaving routing entirely to inference.

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