Skip to main content
Glama

trim_pe

Shrink unpacked PE files for analysis by keeping only a prefix of oversized protector sections, reducing image size for inspection.

Instructions

Shrink an unpacked PE for analysis: huge protector arenas keep only a prefix.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
outYes
entry_rvaNo
rebuilt_pathYes
scratch_prefix_endNo
huge_section_thresholdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

C2.9/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the key destructive trait: huge arenas are truncated to a prefix, so payload beyond the cut is lost. It says nothing about overwriting the out path, permissions, return value, or how truncation interacts with the entry point, leaving real gaps for a file-mutating tool.

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?

A single front-loaded sentence with no filler, but it is arguably over-terse for a 5-parameter mutating tool, so a bit of the space it saves is space it should have used.

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

Completeness2/5

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

For a mutation tool with 5 undocumented parameters, no annotations, and no output schema, the description is too thin: no input expectations, no output description, and no indication of what the trimmed file is useful for downstream.

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?

Schema description coverage is 0% across 5 parameters, so all semantics rest on the schema's bare titles and defaults. The description only loosely gestures at 'prefix' (scratch_prefix_end) and 'huge' (huge_section_threshold) without explaining units, thresholds, or what rebuilt_path/entry_rva expect.

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?

States a specific verb (shrink/trim) and resource (unpacked PE) plus the mechanism (huge protector arenas keep only a prefix). An agent can tell this rewrites a PE down to a truncated form, distinct from rebuild_pe, though the term 'shrink' is slightly loose about whether a new file is emitted.

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?

The phrase 'for analysis' hints at the motivating scenario but gives no when-to-use/when-not guidance, no prerequisites (unpacked vs packed input), and does not name rebuild_pe or any sibling as the alternative for the opposite case.

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