Skip to main content
Glama

ScanMalware.com URL Scanner

Get JS Segments Suspicious

get_js_segments_suspicious
Read-onlyIdempotent

List the JavaScript code segments from one scan scored as suspicious, above min_risk_score, with location, snippet and risk details; paginated with limit and offset. scan_id is the UUID of a ScanMalware scan.

Input Schema

NameRequiredDescriptionDefault
limitNo
offsetNo
scan_idYes
min_risk_scoreNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and openWorld behavior, so the safety profile is fully covered. The description adds pagination and the return field set (location, snippet, risk details), but those repeat what the schema and output schema already provide, and it does not disclose ordering, default limit, or what 'suspicious' means beyond the threshold.

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 dense sentence that front-loads the resource and scope, then tacks on the pagination and the scan_id clarification. No filler, though the semicolon-joined clauses pack several ideas together.

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?

With rich annotations and an output schema, the description only needs to cover selection scope and filtering, which it does reasonably well. The main residual gap is the interplay between 'suspicious' scoring and min_risk_score, plus result ordering, but nothing essential for calling the tool is missing.

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 carries the burden and does address all four parameters at least nominally: scan_id is defined as a ScanMalware scan UUID, min_risk_score as a floor, and limit/offset as pagination. However it gives no scale or range for min_risk_score, no default/limit semantics, and no format beyond 'UUID' for scan_id, so the compensation is partial.

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 gives a specific verb (List) and resource (JavaScript code segments from one scan) and narrows scope with the 'scored as suspicious' filter, which implicitly separates it from siblings like get_js_segments_by_scan and get_js_segments_unknown. It stops short of naming those alternatives, so an agent must infer the routing from content alone.

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 rather than stated: 'scored as suspicious, above min_risk_score' signals this is the filtered/threat-focused variant, but there is no explicit when-to-use, when-not-to-use, or 'use X instead' guidance. The alternative segment tools are never mentioned.

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.