Skip to main content
Glama

Run Subfinder

run_subfinder

Discovers subdomains for target domains via passive online sources, and optionally verifies them through DNS resolution while saving clean or structured output.

Instructions

Subfinder is a subdomain discovery tool that queries passive online sources. Tags: subdomain, enumeration, reconnaissance, passive, osint, security, pentest

Usage Guide:

  • Basic Enumeration: Provide a domain to perform passive discovery. This queries online sources without direct target traffic.

  • Multiple Domains: Use file to scan a list of domains (one per line).

  • Active Verification: Use active to resolve discovered subdomains or include_ips to see IP addresses.

  • Source Management: Use list_sources to see available providers, all_sources for thoroughness, or sources/exclude_sources to curate providers.

  • Output: Use silent for clean piping, json_format for structured data, or output_file to save results.

  • Performance: Adjust limit to control request rates and resolvers for faster DNS resolution during active checks.

  • Advanced: Enable recursive to find sub-subdomains on supported sources.

  • System: Use update to download the latest version of the tool.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "run_subfinder"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNoPath to a file containing a list of domains to scan.domains.txt
limitNoMax HTTP requests per second to send to sources.
activeNoVerify subdomains by resolving them (active DNS traffic).
domainNoTarget domain for discovery (e.g., example.com).
silentNoPrint only subdomains (no banner or metadata).
updateNoUpdate subfinder binary to the latest version.
sourcesNoComma-separated list of specific sources to use.crtsh,github,censys
recursiveNoEnable recursive subdomain discovery.
resolversNoComma-separated list of DNS resolvers or a path to a resolver file.8.8.8.8,1.1.1.1
all_sourcesNoUse all available sources (slower but more thorough).
include_ipsNoInclude IP addresses in output (enables active resolution).
json_formatNoOutput results in JSON Lines format with metadata.
output_fileNoPath to save the discovery results.
list_sourcesNoList all available passive sources and exit.
exclude_sourcesNoComma-separated list of sources to skip.google,bing

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose key side effects: passive mode causes 'no direct target traffic,' active/include_ips generate real DNS traffic, and update downloads a new binary (a mutation of the environment). It omits authorization/prerequisite requirements and failure modes, and the return format is left to the output schema.

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 one-line definition and one-line purpose are front-loaded, and the bulleted Usage Guide is scannable with each bullet mapped to a parameter group. The 'Tags:' line is search filler rather than operational information, and a few bullets are near-restatements of 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?

For a 15-parameter tool this is strong coverage: scope selection, source control, verification, output, performance, and self-update are all addressed, and an output schema exists so return values need no prose. What is missing is prerequisite/auth context and any caution about the update flag changing the environment.

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 every parameter is already documented in the input schema and the baseline is 3. The guide mostly restates schema text (silent, limit, json_format), adding only small increments such as 'recursive to find sub-subdomains on supported sources' and the piping use case for silent.

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 opening sentence gives a specific verb and resource ('subdomain discovery tool that queries passive online sources'), and the passive qualifier separates it conceptually from active scanners. It never names a concrete sibling such as run_amass or run_theharvester, so an agent must still infer which reconnaissance tool to pick.

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?

The Usage Guide is unusually thorough on in-tool decisions: domain vs file for scope, active/include_ips for verification, sources/exclude_sources/all_sources for provider curation, and limit/resolvers for performance. It does not state when to prefer this over another recon tool in the catalog, nor when not to use it.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.