Skip to main content
Glama

ScanMalware.com URL Scanner

Get SMQL Facets

get_smql_facets
Read-onlyIdempotent

Summarise what the scans matching an SMQL query have in common: the most frequent hosting networks, countries, domains, registrars, certificate issuers, technologies, favicons, JARM fingerprints, tracking IDs and AI verdicts. Counts cover the newest sample matching scans (100 to 5000, default 1000), not every match. Each value carries a ready SMQL filter to AND onto the query. fields is a comma-separated list of primary_asn, primary_ip, country, domain, title, registrar, nameserver, cert_issuer, technology, favicon_hash, phash, jarm, ja4s, tracking_id and verdict (a default set when omitted); size is values per facet (1 to 25).

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": {
      "q": "<q>"
    },
    "name": "get_smql_facets"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYesSMQL query whose matching scans to summarise, for example title:"verify your account".
sizeNoValues to return per facet, 1 to 25.
fieldsNoComma-separated facet names, for example primary_asn,country,registrar; omit for the default set.
sampleNoHow many of the newest matching scans to aggregate, 100 to 5000.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / fields / description
      Added value: +"Comma-separated facet names, for example primary_asn,country,registrar; omit for the default set."
    • addedInput schema / properties / q / description
      Added value: +"SMQL query whose matching scans to summarise, for example title:\"verify your account\"."
    • addedInput schema / properties / sample / description
      Added value: +"How many of the newest matching scans to aggregate, 100 to 5000."
    • addedInput schema / properties / size / description
      Added value: +"Values to return per facet, 1 to 25."
  2. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint, so the safety profile is covered. The description adds the important non-obvious caveat that counts are computed over the newest 100–5000 matching scans (default 1000), not the full match set, so frequencies are approximate — exactly the kind of behavior an agent must know before interpreting results.

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?

Front-loads the purpose and the sampling caveat before the long facet enumeration, and every clause carries operational information. The facet list is dense but earns its length by defining the valid values; a small amount of range/default information duplicates the schema.

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?

Given an output schema exists, the description needn't explain return shape, and it covers the sampling semantics, the facet vocabulary and the downstream filter reuse. The one missing element is explicit sibling routing, but nothing needed to invoke the tool correctly is absent.

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

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, but the description goes beyond it by enumerating the complete valid facet name set (primary_asn, primary_ip, country, domain, title, registrar, nameserver, cert_issuer, technology, favicon_hash, phash, jarm, ja4s, tracking_id, verdict) plus the default-when-omitted behavior, which the schema only illustrates with three examples. That enumeration is essential for correct invocation and is not available in structured form.

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 ("Summarise") and a precise resource ("what the scans matching an SMQL query have in common"), then enumerates the exact facet dimensions returned (hosting networks, countries, registrars, JARM, tracking IDs, AI verdicts). An agent can distinguish this aggregation tool from search_smql-style retrieval without opening 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 rather than stated: the description notes counts cover only the newest sample and that each value ships a ready-made SMQL filter to AND onto the query, which hints at an explore-then-drill-down workflow. It never explicitly says when to choose this over search_smql, get_smql_filters or count_smql_queries, so the routing decision is left 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.