Skip to main content
Glama

ScanMalware.com URL Scanner

Get JS Segments By Scan

get_js_segments_by_scan
Read-onlyIdempotent

List the code segments (functions and blocks) extracted from one scan's JavaScript, each with location, length, snippet and hashes; script_url narrows to one file, paginated with limit and offset. scan_id is the UUID of a ScanMalware scan.

Input Schema

NameRequiredDescriptionDefault
limitNo
offsetNo
scan_idYes
script_urlNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/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 open-world, so the safety profile is covered. The description adds pagination behavior (limit/offset) and the filtering behavior of script_url, but says nothing about auth needs, rate limits, or typical result sizes beyond annotations.

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 verb and resource, then the filtering and parameter notes. Dense but nearly every clause carries information; loses a point only because the second sentence reads as a compressed parameter dump.

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 re-explained, and the description covers scope, filtering, pagination and the scan_id meaning. The main gap is sibling disambiguation, which for a compact read-only list tool is a minor omission rather than a blocker.

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 carries the burden, and it addresses all four parameters: scan_id ('UUID of a ScanMalware scan'), script_url ('narrows to one file'), and limit/offset (pagination). It lacks concrete format/default detail for limit and offset, but meaningfully compensates for the empty schema.

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?

It states a specific verb and resource ('List the code segments ... extracted from one scan's JavaScript') and scopes the result to a single scan, which implicitly contrasts with hash-based siblings like search_js_segments_by_hash. It does not explicitly name any sibling to route the agent though, so it stops short of a 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?

Usage is only implied by the scope ('one scan's JavaScript') and by the note that script_url narrows to one file. There is no explicit when-to-use vs when-not, and no named alternative such as get_js_segments_suspicious or search_js_segments_by_hash, leaving the agent to infer the choice.

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.