Skip to main content
Glama

decompile_batch

Destructive

Decompile multiple functions matching a name filter in parallel, with per-function and total size caps, or write all uncapped output to a file under the output root.

Instructions

Decompile many functions matching a name filter, in parallel, 6000 chars each and 40000 in all; out=<file.c> writes all uncapped to a file under the output root, kept unless overwrite=true. For one use decompile.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "decompile_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
outNoA file under the output root, not with filter or a max: .c every function (over 4096 blocks: cut); .h, .ct, .rcnet the mod SDK as C++ header, Cheat Engine table, ReClass.NET.
filterNoFilter on name or entry hex, as `functions` reads it.
libraryNoWith out: also write library functions (default false).
overwriteNoWith out: replace an existing file (default false).
max_functionsNoMaximum functions to decompile (default 10, max 50).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.3.0
    • changedInput schema / properties / filter / description
      Previous value: -"Case-insensitive filter on function name or entry hex."New value: +"Filter on name or entry hex, as `functions` reads it."
  2. Changed1 schema field changedv0.2.6
    • changedInput schema / properties / out / description
      Previous value: -"A `.c` file under the output root to write every function to; not with `filter` or `max_functions`."New value: +"A file under the output root, not with filter or a max: .c every function (over 4096 blocks: cut); .h, .ct, .rcnet the mod SDK as C++ header, Cheat Engine table, ReClass.NET."
  3. Changed1 schema field changedv0.2.2
    • changedInput schema / properties / out / description
      Previous value: -"Write every function to this `.c` file instead, uncapped, leaves\nfirst; not with `filter` or `max_functions`. Relative to the output\nroot, or absolute under it."New value: +"A `.c` file under the output root to write every function to; not with `filter` or `max_functions`."
  4. First observedv0.2.1

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and non-idempotent, and the description earns its keep by explaining why: writing to the output root and replacing an existing file only when overwrite=true, plus the file being kept otherwise. It also discloses the parallel execution model and the 6000-char-per-function / 40000-total caps that determine what actually comes back, though it says nothing about failure modes or partial results.

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?

Dense but front-loaded: the batch scope, the caps, the file-output branch, and the sibling routing each get a clause with no filler. The semicolon-chained phrasing ('6000 chars each and 40000 in all') is slightly telegraphic but readable.

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 5-parameter, no-output-schema tool, the description covers the two output modes, the size caps, and the overwrite semantics that an agent needs to call it correctly. Only error behavior and the inline return shape are unaddressed, which is acceptable given the schema carries all parameter docs.

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 baseline is 3. The description adds real meaning about parameter interaction — out is incompatible with filter and max_functions, and out disables the character caps — but leaves the remaining parameters (library, max_functions limits) to the schema.

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 and resource ('Decompile many functions matching a name filter, in parallel') and immediately scopes itself against the sibling: 'For one use decompile.' An agent can distinguish batch from single-function decompilation without opening either schema.

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?

Explicit routing rule is given ('For one use decompile'), and the out=<file.c> branch describes when file output applies versus the default capped inline output. It does not spell out when to prefer the file path over inline results or when to enable library, so it falls short of full when/when-not coverage.

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