Skip to main content
Glama

ScanMalware.com URL Scanner

Get JS Fingerprint Similarity Counts

get_jsfingerprint_similarity_counts
Read-onlyIdempotent

Count how many archived JavaScript files are similar to the one with this fingerprint_id, per similarity model (composite, CodeBERT, GraphCodeBERT, AST and handcrafted features), capped at max_count. This query can take up to 90 seconds by default.

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": {
      "fingerprint_id": "<fingerprint_id>"
    },
    "name": "get_jsfingerprint_similarity_counts"
  }
}

Input Schema

NameRequiredDescriptionDefault
max_countNoStop counting at this number per model.
thresholdNoMinimum similarity, 0 to 1.
fingerprint_idYesNumeric ID of a JavaScript fingerprint, as listed among a scan's scripts.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / fingerprint_id / minimum
      Added value: +1
  2. Changed3 schema fields changed
    • addedInput schema / properties / fingerprint_id / description
      Added value: +"Numeric ID of a JavaScript fingerprint, as listed among a scan's scripts."
    • addedInput schema / properties / max_count / description
      Added value: +"Stop counting at this number per model."
    • addedInput schema / properties / threshold / description
      Added value: +"Minimum similarity, 0 to 1."
  3. First observed

TDQS

A3.8/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 genuinely useful operational context the annotations do not: an explicit ~90-second runtime warning and the enumeration of the five similarity models that drive the result. It does not discuss cost scaling with threshold or max_count, but the output schema covers return shape.

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?

Two sentences with no padding. The core action and its per-model scoping come first, and the latency caveat follows where an agent planning a call will see it.

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 full annotation coverage and an output schema, the description carries little burden and discharges it by adding the runtime warning and the model list. The main residual gap is that the default threshold and the meaning of an uncapped count (max_count=null) are left entirely to the schema.

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 100%, so all three parameters are already documented, and the baseline is 3. The description reinforces max_count's cap semantics and lists the model dimension that threshold applies to, but adds no format, default, or interaction details beyond the 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?

States a specific verb ('Count') and resource ('archived JavaScript files... similar to the one with this fingerprint_id'), plus the per-model breakdown, which clearly separates it from list-style siblings such as get_jsfingerprint_similar. It never names an alternative explicitly, so the differentiation is implicit rather than stated.

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 'count' framing — an agent can infer it should call this instead of a listing tool when it wants aggregate numbers. There is no explicit when-to-use, when-not-to-use, or named alternative, and the only extra guidance is a latency note rather than a selection rule.

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.