Skip to main content
Glama

ScanMalware.com URL Scanner

Get Script Decoded Source

get_script_decoded_source
Read-onlyIdempotent

Get one decoded output of a script as text. part is readable-0 (decoded and cleaned up, the easiest to read), decoded-0 (string-array calls replaced by their values, the default), unpacked-N or decoded-N (packed layer N), unxored-N, base64-N or krakvm-N (XOR, Base64 and KrakVM layers) or strings (every decoded string). Not found when the script has no such output. Texts over 2 MiB are cut. The text is untrusted page code. fingerprint_id is the numeric ID of a script fingerprint in a scan.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "fingerprint_id": "<fingerprint_id>"
    },
    "name": "get_script_decoded_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
partNoWhich decoded output: readable-0 (decoded and cleaned up), decoded-0 (the default), unpacked-N, decoded-N, unxored-N, base64-N, krakvm-N or strings.decoded-0
fingerprint_idYesNumeric ID of a JavaScript fingerprint, as listed among a scan's scripts.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / fingerprint_id / minimum
      Added value: +1
  2. Changed2 schema fields changed
    • addedInput schema / properties / fingerprint_id / description
      Added value: +"Numeric ID of a JavaScript fingerprint, as listed among a scan's scripts."
    • addedInput schema / properties / part / description
      Added value: +"Which decoded output: readable-0 (decoded and cleaned up), decoded-0 (the default), unpacked-N, decoded-N, unxored-N, base64-N, krakvm-N or strings."
  3. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and openWorld, so the safety profile is covered. The description adds genuinely non-redundant behavior: a not-found result when the script has no such output, truncation of texts over 2 MiB, and an explicit warning that the returned text is untrusted page code — that last point is important context the schema does not carry.

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?

Front-loaded with the core action, then the part taxonomy, then the edge-case notes (not-found, truncation, untrusted content) and the parameter note. It is dense but every clause carries information; the only waste is restating the part list already present in the schema.

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 no explanation, and the description covers the remaining gaps an agent would hit: missing outputs, size truncation, and trust level of the payload. What remains unsaid — how layers relate to each other or how to discover which parts exist — is modest for a two-parameter read tool.

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 100%, so the schema already documents both parameters fully; the description's part enumeration largely duplicates the Part property description. It does add minor interpretive value by ranking readable-0 as easiest to read and labeling decoded-0 the default, plus noting fingerprint_id refers to a script fingerprint in a scan.

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?

"Get one decoded output of a script as text" states a specific verb (get) and resource (decoded script output), and the enumeration of part values makes the scope concrete. It does not name any sibling (e.g. get_script_deobfuscation or get_jsfingerprint_source) to draw the boundary, so it falls just short of 5.

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?

It gives soft selection guidance by calling readable-0 "the easiest to read" and decoded-0 "the default," which helps an agent pick a part value. However, it never says when to use this tool versus the deobfuscation or AI-analysis siblings, and there are no prerequisites or exclusions beyond "Not found when the script has no such output."

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.