Skip to main content
Glama

ScanMalware.com URL Scanner

Count SMQL Queries

count_smql_queries
Read-onlyIdempotent

Count the public scans matching each of up to 25 SMQL queries in one request, for example to see which indicators of a campaign are selective. Each count stops at 10,000 (exact_count is then false); a count that ran out of time has count_unavailable true, and a query that does not parse gets its own error without failing the others. With sites true, queries with 10 or more matches also get the number of distinct sites, how many of them are rated high risk, and whether the value is shared widely by unrelated sites. Counts are cached for up to 30 minutes.

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": {
      "queries": "<queries>"
    },
    "name": "count_smql_queries"
  }
}

Input Schema

NameRequiredDescriptionDefault
sitesNoAlso summarise the sites behind each query with 10 or more matches: distinct sites, how many are rated high risk, and whether the value is shared widely by unrelated sites.
queriesYesSMQL queries to count, 1 to 25, each up to 2000 characters.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / queries / description
      Added value: +"SMQL queries to count, 1 to 25, each up to 2000 characters."
    • addedInput schema / properties / sites / description
      Added value: +"Also summarise the sites behind each query with 10 or more matches: distinct sites, how many are rated high risk, and whether the value is shared widely by unrelated sites."
  2. Added

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the description's job is to add operational detail – and it does: a 10,000 hard cap with exact_count flipping to false, count_unavailable on timeout, per-query parse errors that do not fail the batch, and a 30-minute cache. These are exactly the 'what will surprise me' facts an agent needs before batching 25 queries.

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?

The purpose and scope are front-loaded, followed by limits, error isolation, and the optional sites enrichment in a tight sequence. The closing caching sentence is slightly peripheral but still useful because it explains stale results; otherwise there is no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 explained, and the description instead covers the things an agent must know to call the tool correctly: the 25-query batch limit, truncation semantics, partial failure behavior, and cache staleness. For a two-parameter, read-only counting tool this is 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 coverage is 100%, so both parameters are already documented in structured form. The description restates the 'sites' enrichment behavior with the same 10-match threshold the schema specifies, adding no new syntax or format detail for the queries array. Baseline 3 applies when the schema carries the semantics.

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 opens with a specific verb and resource: 'Count the public scans matching each of up to 25 SMQL queries in one request.' That clearly separates it from a result-returning sibling like search_smql. It stops short of naming the alternative tool to use when counts are not what you want, so sibling differentiation is implied rather than explicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

A concrete motivating scenario is given ('to see which indicators of a campaign are selective'), which tells an agent when this tool is the right choice. There are no exclusions or named alternatives for the case where an agent needs the actual matches rather than counts, so guidance is clear but incomplete.

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.