Skip to main content
Glama

load_binary

DestructiveIdempotent

Load a PE, ELF, or Mach-O file as the program for analysis and get its summary. Save the project first, since loading clears session names.

Instructions

Load a PE, ELF or Mach-O file (or raw bytes with arch) as the program all tools read, returning its summary. Clears the session's names: save_project first. A refused load changes nothing.

Input Schema

NameRequiredDescriptionDefault
pdbNoApply the companion PDB the debug record names (default true).
archNoRaw code or a dump: map its bytes as this arch.
baseNoWith arch: the file's address (default 0).
pathYesAbsolute path to the file.
entryNoWith arch: entry address (default first executable byte).
regionsNoWith arch, not base: VA@OFF:LEN[:rwx],... (max 256).
entry_file_offsetNoFile offset to use as the entry instead of the header's.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations: annotations only say destructive/not-readOnly/idempotent, while the description states exactly what is lost (session names) and what happens on failure ('a refused load changes nothing'). That failure-atomicity detail is precisely the kind of behavior an agent cannot infer from hints.

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?

Three short sentences, zero filler. The destructive side effect and the save_project prerequisite are front-loaded right after the identification clause, ordering the risk before the agent commits.

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?

For a 7-parameter destructive load with no output schema, the description covers identification, downstream effect ('the program all tools read'), return shape ('returning its summary'), data loss, and failure semantics. An agent has everything needed to invoke it safely.

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%, so every parameter including pdb, base, entry, regions, and entry_file_offset is already documented inline. The description only echoes the arch usage, adding no format or default details beyond the schema, so baseline 3 applies.

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 (load) and resource (PE/ELF/Mach-O file or raw bytes with arch), plus the crucial scope fact that it becomes 'the program all tools read'. This distinguishes it from load_project, reload, and fetch_pdb without needing their schemas.

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

Usage Guidelines4/5

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

Explicitly tells the agent to call save_project first because session names are cleared, and signals the arch path for raw bytes. It doesn't cover when to prefer load_project or reload, so it stops short of full alternative routing, but the prerequisite guidance is concrete.

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