Skip to main content
Glama

get_sub_domains

Read-onlyDestructive

This is Anysearch's domain discovery tool. IMPORTANT: Step 1 of vertical search. REQUIRED before any search that uses a domain. Returns valid sub_domains and sub_domain_params for the specified domain(s).

Call this when the query targets a specialized vertical or needs structured parameters: stock prices, financial data, academic papers, legal cases, medical/drug info, flight status, weather, exchange rates, geographic POIs, code repositories, or any domain where a structured identifier (ticker, DOI, CVE, IATA, coordinates) is involved.

When to call β€” pick the domain(s) that match what the user is asking about:

resource social_media finance academic legal health business security ip code energy environment agriculture travel film gaming

Input β€” choose from the list above and pass via the domain or domains parameter:

  • domain: single domain string (use only when 100% certain the query is single-domain)

  • domains: batch query for up to 5 domains in one call (takes priority over domain)

πŸ† ALWAYS prefer the domains (plural, array) parameter. Pass ALL potentially relevant domains at once β€” even for seemingly single-domain queries, consider related domains:

  • Query about "cryptocurrency regulations" β†’ domains=["finance", "legal", "security"]

  • Query about "best gaming laptops" β†’ domains=["gaming", "tech", "ecommerce"]

  • Query about "climate change impact on agriculture" β†’ domains=["environment", "energy", "academic"]

Returns

Markdown table filtered to the specified domains: sub_domain | description | params

CRITICAL: How to use results

  • sub_domain is the PRIMARY routing key β€” always pass it to search

  • params column shows available structured parameters β€” pass them via sub_domain_params in search, NEVER embed in query

  • If multiple sub_domains returned (especially from multiple domains), use batch_search β€” one query per sub_domain β€” instead of multiple sequential search calls

  • Params marked (required) in the output MUST be passed when using that sub_domain in search. If a required param is not applicable to your query, pass it as an empty string (key: "") β€” do not skip it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
domainNoFilter by a single domain. Mutually exclusive with domains array.
domainsNoBatch query for multiple domains in a single call. Takes priority over domain. Each item must be a valid domain value. Max 5.

TDQS

A4.8/5.0
Behavior4/5

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

Annotations already include readOnlyHint=true, and the description reinforces this by describing the tool as a discovery step that returns data. It adds valuable behavior not in annotations: that sub_domain is the primary routing key, params must be passed via sub_domain_params, and required params must be passed as empty strings. However, destructiveHint=true is not addressed, which could confuse an agent; the description could have explicitly stated it is non-destructive.

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?

Although lengthy, the description is well-structured with sections, bullet lists, and bolded emphasis. Every section adds necessary information (when to call, domain list, return format, critical usage rules). No filler or redundancy; it uses visual cues to prioritize key behavioral instructions.

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?

Given no output schema, the description fully compensates by explaining the return format (markdown table) and exactly how to consume the results (pass sub_domain to search, use sub_domain_params, handle required params). It also covers edge cases like multi-domain queries and required-mandatory parameters, making it self-sufficient for correct tool use.

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% with both parameters described, but the description goes far beyond the schema. For domains, it clarifies batch semantics (max 5, takes priority over domain), provides examples of combining domains, and advises using plural when uncertain. This deep semantic guidance is critical for correct invocation.

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?

The description clearly identifies the tool as Anysearch's domain discovery tool and step 1 of vertical search, explicitly stating it returns valid sub_domains and sub_domain_params. It distinguishes from siblings by positioning itself as a prerequisite to search, making its role distinct from batch_search, extract, and search.

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

Usage Guidelines5/5

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

This is exemplary. It states exactly when to call (before any search using a domain), provides a list of domains to choose from, includes concrete examples, and gives clear directives such as 'ALWAYS prefer the domains (plural) parameter' and 'use batch_search when multiple sub_domains returned', thereby guiding tool selection and execution.

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.

TDQS

A4.4/5.0
Disambiguation4/5

Each tool serves a clearly distinct role in the search pipeline: get_sub_domains (discovery), search (single query), batch_search (parallel queries), extract (content retrieval). The dependency chain between them is explicit and well-documented. Minor ambiguity exists between search and batch_search since batch can technically serve single queries, and the overwhelmingly verbose descriptions could theoretically cause an agent to misfire, but the use cases are clearly separated.

Naming Consistency3/5

The naming convention is mixed: bare verbs (search, extract) coexist with verb_noun compounds (get_sub_domains) and compound constructs (batch_search: modifier + action). The names are short, readable, and self-descriptive individually, and the search/batch_search relationship is evident. However, there's no single consistent pattern across all four, with no consistent verb prefix or consistent noun-phrase structure.

Tool Count5/5

At 4 tools, this is tightly scoped for a search serverβ€”each tool earns its place and serves as one stage in the lookup workflow. The count is well within the ideal 3–15 range, and there's no bloat or redundant surface area.

Completeness4/5

The lifecycle is complete for a search offering: discover (get_sub_domains) β†’ query (search/batch_search) β†’ deep dive (extract). It covers both single and parallel execution paths and handles general versus vertical routing. Minor gaps include no pagination or result-caching mechanism, and the dependency on get_sub_domains before vertical search could create an extra round-trip, but the core workflow has no dead ends.

Resources