Skip to main content
Glama

patch_binary_executable

Modify executable bytes on disk using RVA-to-raw conversion and PE/ELF section mapping, with automatic backups and PE checksum recalculation for reverse-engineering patches.

Instructions

Active reverse engineering intervention. Surgical disk binary patcher with RVA-to-Raw conversion, PE/ELF section mapping, arbitrary hex byte modification, automatic backup creation, and PE checksum recalculation.

Input Schema

NameRequiredDescriptionDefault
patchesYesList of byte patches
binary_pathYesAbsolute path to target binary (PE, ELF, RAW)
output_pathNoOptional destination output path
create_backupNoCreate .bak backup when modifying in-place
recalculate_pe_checksumNoRecalculate PE optional header checksum

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are provided, so the description carries full burden. It usefully discloses automatic backup creation and PE checksum recalculation, which are real behavioral traits, but it does not state that this is an irreversible in-place mutation, whether patching is atomic, or how failures or verification 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.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single dense sentence, front-loaded with the key verb, but the opening clause "Active reverse engineering intervention" earns no place and the capability list is adjective-heavy ("surgical", "arbitrary") where plain statements would be stronger.

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?

For a mutation tool with no annotations and no output schema, the description does cover the essential mechanics: address translation, section mapping, backup, and checksum fixing. It still lacks any mention of return/result reporting or how partial failures are surfaced, which keeps it below a 5.

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 the schema already documents binary_path, patches fields, output_path, create_backup, and recalculate_pe_checksum. The description adds only the notion of RVA-to-Raw conversion and PE/ELF section mapping as capabilities, without mapping them to specific parameters beyond what the schema states.

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?

"Surgical disk binary patcher" names a specific verb and resource, and the qualifier "disk" implicitly separates it from hot_patch_live_memory and most other siblings. However, the leading phrase "Active reverse engineering intervention" is filler that delays the actual purpose.

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 explicit guidance on when to use this vs. hot_patch_live_memory, bypass_license_authorization, or inspect_binary_layout. The only usage signal is the implied disk-vs-memory distinction a reader must infer from the single word "disk".

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