Skip to main content
Glama

ScanMalware.com URL Scanner

Search JS Segments By Hash

search_js_segments_by_hash
Read-onlyIdempotent

Find code segments with this exact code hash across the archive, with the scans and scripts they appear in; paginated with limit and offset.

Input Schema

NameRequiredDescriptionDefault
limitNo
offsetNo
code_hashYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, openWorld), so the bar is lower. The description adds real value by disclosing that results are joined with 'the scans and scripts they appear in' and that output is paginated, which the annotations do not convey.

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?

One tight sentence with the core action front-loaded and result scope plus pagination trailing behind a semicolon. Every clause carries information; nothing is padding.

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 present, the description only needs to frame selection and behavior; it covers what is returned and pagination. It stops short of stating uniqueness of the hash or guidance on iterating pages, but is essentially complete.

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 must carry the load: it says code_hash must be an exact hash and that limit/offset drive pagination, but gives no defaults, bounds, or ordering behavior. It partially compensates but leaves limit/offset semantics thin.

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 and resource ('Find code segments with this exact code hash across the archive') and the 'exact' qualifier implicitly separates it from the normalized-hash and fuzzy-hash siblings in the same family. An agent can select it without reading the schema.

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 exact-hash lookup framing, but the description never states when to prefer this over search_js_segments_by_normalized_hash or the fingerprint hash searches, nor any exclusions. Adequate but leaves routing to inference.

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.