Skip to main content
Glama

deobfuscate

Remove obfuscation from SWF files by eliminating dead code, traps, and anti-decompilation tricks, producing a cleaner file for analysis.

Instructions

Deobfuscate a SWF file by removing obfuscation techniques.

This tool runs FFDec's deobfuscation algorithms to remove common obfuscation techniques like dead code, traps, and other anti-decompilation tricks. The output is a cleaner SWF file that's easier to decompile and analyze.

Args: swf_path: Absolute path to the obfuscated SWF file output_path: Path where the deobfuscated SWF will be saved level: Deobfuscation level - 'traps' (remove traps only), 'deadcode' (remove dead code), 'max' (full deobfuscation, default) timeout: Optional timeout in seconds (default: 60)

Returns: Dictionary with: - success: Whether deobfuscation succeeded - input_path: Input SWF file path - output_path: Output SWF file path - level: Deobfuscation level used - message: Success message

Example: >>> deobfuscate("/path/to/obfuscated.swf", "/path/to/clean.swf", level="max") { "success": true, "input_path": "/path/to/obfuscated.swf", "output_path": "/path/to/clean.swf", "level": "max", "message": "Successfully deobfuscated SWF at level 'max'" }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
swf_pathYes
output_pathYes
levelNomax
timeoutNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

With no annotations provided, the description fully discloses behavioral traits: it runs FFDec's algorithms, removes dead code/traps/anti-decompilation tricks, and produces a cleaner SWF. It also explains the level parameter options and timeout, providing comprehensive insight into the tool's operation.

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?

The description is well-structured with sections for Args, Returns, and an Example. It is front-loaded with purpose, but the example, while helpful, adds length. Overall, it is efficient and organized, though slightly verbose.

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?

Given the absence of annotations and the presence of an output schema, the description covers the tool's behavior, parameters, return values, and provides a usage example. It lacks details on error handling, prerequisites, or performance considerations, but is sufficiently complete for a deobfuscation tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema provides no descriptions (0% coverage). The description adds full meaning to each parameter: swf_path and output_path are clearly defined, level lists three allowed values with defaults, and timeout includes default. The example further clarifies usage, fully compensating for the schema's lack of documentation.

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?

The description clearly states the tool's purpose: 'Deobfuscate a SWF file by removing obfuscation techniques.' It specifies the verb 'deobfuscate' and the resource 'SWF file', and distinguishes from sibling tools like decompile_swf or extract_actionscript by focusing on removing obfuscation rather than decompilation or extraction.

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

Usage Guidelines3/5

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

The description implies usage when a SWF file is obfuscated, but does not explicitly state when to use this tool versus alternatives. It does not mention any conditions or exclusions, leaving the agent to infer context from the tool name and sibling tools.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sublimnl/ffdecmcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server