Skip to main content
Glama
WebTrace MCP Server

WebTrace MCP Server

by kings0527

analyze_jsvmp

Analyzes JSVMP-protected JavaScript code structure and identifies virtual machine dispatch loops, helping reverse engineers locate core obfuscation logic and plan deobfuscation.

Instructions

分析JSVMP代码结构,识别VM派发循环。

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": {
      "code": "<code>"
    },
    "name": "analyze_jsvmp"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesJSVMP代码字符串。
timeoutNo
chunkSizeNo
deobfuscateNo
focusFunctionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and falls well short. It does not say whether the code is executed or only statically parsed, whether analysis is bounded by the timeout, whether deobfuscate mutates anything, or what form the 'dispatch loop' identification takes.

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 short sentence with the analysis target front-loaded and no filler. It is efficient, though the terseness borders on under-specification rather than ideal concision.

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?

A five-parameter tool with no annotations and no output schema needs substantially more: the description says nothing about return shape (since no output schema exists), performance/chunking behavior, or how the optional parameters change results. Relative to the tool's complexity, it leaves most of what an agent needs unstated.

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 20%: only 'code' is documented, and its description merely restates the parameter name. The four remaining parameters (timeout, chunkSize, deobfuscate, focusFunction) get no explanation in the description, so their purpose and interaction — e.g. whether deobfuscate pre-processes before analysis — is left entirely unstated.

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?

The description names a specific verb and resource ('分析JSVMP代码结构') and a concrete goal ('识别VM派发循环'), which is far more specific than the bare tool name. It remains distinguishable from siblings like deobfuscate or detect_protection because it targets VM dispatch-loop recognition, though it never explicitly contrasts itself with them.

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?

There is no when-to-use guidance, no prerequisites, and no mention of alternatives such as deobfuscate (which is a sibling with an overlapping purpose). An agent must infer from the name alone when this analysis is preferable to running the deobfuscator first.

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