Skip to main content
Glama

ScanMalware.com URL Scanner

Get Domain Hosts

get_domain_hosts
Read-onlyIdempotent

List every host seen for a domain (or IP address) across its newest scans, grouped by evidence: observed (the browser requested it) and scripts (a script the browser loaded) by default; declared (named in Content-Security-Policy, intent only), static (a URL in script source) and referenced (only a string or comment) on request in sources. subdomains_only keeps hosts below the domain. max_scans (1 to 1000, default 200) is how many scans to aggregate; limit (1 to 10000, default 500) caps hosts per source.

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": {
      "domain": "<domain>"
    },
    "name": "get_domain_hosts"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum hosts per evidence kind, 1 to 10000 (default 500).
domainYesDomain name such as example.com, or an IP address.
sourcesNoEvidence kinds to include: observed and scripts by default; add declared (Content-Security-Policy), static (URLs in script source) or referenced (strings and comments only).
max_scansNoHow many of the domain's newest scans to aggregate, 1 to 1000 (default 200).
subdomains_onlyNoReturn only hosts strictly below the domain.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / limit / maximum
      Added value: +10000
    • addedInput schema / properties / limit / minimum
      Added value: +1
  2. Changed5 schema fields changed
    • addedInput schema / properties / domain / description
      Added value: +"Domain name such as example.com, or an IP address."
    • addedInput schema / properties / limit / description
      Added value: +"Maximum hosts per evidence kind, 1 to 10000 (default 500)."
    • addedInput schema / properties / max_scans / description
      Added value: +"How many of the domain's newest scans to aggregate, 1 to 1000 (default 200)."
    • addedInput schema / properties / sources / description
      Added value: +"Evidence kinds to include: observed and scripts by default; add declared (Content-Security-Policy), static (URLs in script source) or referenced (strings and comments only)."
    • addedInput schema / properties / subdomains_only / description
      Added value: +"Return only hosts strictly below the domain."
  3. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, open-world, and non-destructive behavior. The description adds meaningful behavioral context: it aggregates across newest scans, groups hosts by evidence kind, and clarifies what declared, static, and referenced mean. It does not discuss auth, rate limits, or pagination, but the output schema reduces the need to explain return structure.

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 information is front-loaded and every sentence contributes useful semantics. The first sentence is long and parenthetical, which slightly reduces readability, but overall it is dense rather than bloated.

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?

For a five-parameter read-only aggregation tool with a full schema and an output schema, the description covers the key behavioral and parameter semantics well. The main omission is explicit guidance about when to choose this tool over sibling retrieval tools, but it is otherwise complete enough to invoke correctly.

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 coverage is 100%, so the baseline is 3, but the description adds semantic meaning beyond the schema by defining evidence categories such as observed (browser requested it), scripts (script the browser loaded), declared (CSP intent only), and referenced (string or comment only). It also restates defaults and limits, making the parameters easier to interpret.

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 gives a specific verb and resource: it lists every host seen for a domain or IP across newest scans, grouped by evidence. It is clearly distinct from scan/history/stat tools by focusing on hosts and evidence categories, though it does not explicitly name any sibling alternative.

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?

It explains default source inclusion (observed and scripts) and how to request additional evidence kinds, which is useful operational context. However, it does not explicitly state when to use this tool versus alternatives such as get_domain_scans or get_domain_history, nor does it give exclusions.

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.