Skip to main content
Glama

ScanMalware.com URL Scanner

Run JS Differential Analysis

run_js_differential_analysis
Read-onlyIdempotent

Compare the JavaScript of one scan against known libraries and report which code segments match a library, which are unknown and which look suspicious, with a per-library breakdown. Matches below min_confidence (default 0.8) are not counted; known library code is excluded unless include_known_libraries is true. scan_id is the UUID of a ScanMalware scan.

Input Schema

NameRequiredDescriptionDefault
scan_idYes
min_confidenceNo
include_known_librariesNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds real behavioral context beyond that: matches below min_confidence are dropped, and known library code is excluded unless include_known_libraries is set. It does not mention performance cost or auth needs, but for a read-only analysis tool this is solid added value.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, no filler: purpose and output categories first, then the two behavioral modifiers, then the one-line scan_id clarification. Each sentence carries distinct information and the ordering is front-loaded correctly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 exposition, and the annotations cover the safety profile. Given a 3-parameter, read-only analysis tool, the description supplies everything an agent needs to call it correctly: the scan id type, the confidence threshold, and the known-library toggle.

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

Parameters4/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 carry the parameters, and it does address all three: scan_id as a ScanMalware scan UUID, min_confidence with its 0.8 default and threshold effect, and include_known_libraries as the switch that re-includes known library code. It stops short of stating min_confidence's 0-1 range or what 'confidence' precisely measures, leaving a small gap.

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 (Compare) and resource (JavaScript of one scan against known libraries) and enumerates exactly what it produces: matching segments, unknown segments, suspicious segments, and a per-library breakdown. An agent can distinguish this analysis-producing tool from retrieval-only siblings like get_js_segments_unknown or get_js_segments_suspicious.

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?

Usage is implied by 'the JavaScript of one scan' and the required scan_id, so the agent infers it runs after a scan exists. However, it never states when this tool is preferable to the segment-listing siblings, nor any when-not conditions. Adequate but with a clear gap.

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.