Skip to main content
Glama

deobfuscate_javascript

Beautify and unminify JavaScript from a file or inline code, then flag suspicious patterns like eval, Function(), base64, hex blobs, and anti-debug calls.

Instructions

Beautify/unminify JavaScript and flag suspicious patterns (eval, Function(), base64, char-code building, hex/unicode blobs, network calls, anti-debug). Provide either a file path or inline code.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeNo
pathNo
indicatorsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/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 substantive behavior: it beautifies/unminifies and reports specific suspicious constructs. It does not state the operation is read-only/non-destructive or describe output shape, but the enumerated indicator list is meaningful behavioral context beyond a bare restatement.

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?

Two sentences, front-loaded with the core action and indicator list, followed by input-selection guidance. No filler, though the parenthetical indicator list is long enough to slightly dilute the front-loading.

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?

An output schema exists, so return values need not be explained, and the description covers purpose plus input selection adequately for a 3-parameter tool. The remaining gap is the undocumented `indicators` toggle and the absence of routing guidance versus siblings.

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 description coverage is 0%, so the description must compensate. It documents `path` and `code` with backticks and their either/or relationship, covering two of three parameters, but never mentions the `indicators` boolean, which governs whether the flagging behavior it advertises actually runs.

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 specific verbs (beautify/unminify, flag) against a specific resource (JavaScript), and enumerates the exact pattern classes it detects (eval, Function(), base64, char-code building, hex/unicode blobs, network calls, anti-debug). This clearly separates it from the binary-focused siblings like radare2, ghidra_decompile, and disassemble.

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?

"Provide either a file `path` or inline `code`" usefully resolves the mutually exclusive input choice, so invocation context is implied. However, there is no explicit when-to-use guidance relative to siblings (e.g., use this rather than extract_strings for obfuscated JS), and no stated prerequisites.

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