Skip to main content
Glama

agent_search_cascade

Run a 4-tier discovery search on any website, falling back through well-known search, markdown, llms.txt, and HTML-to-Markdown to return BM25-ranked chunks for a query.

Instructions

Run 4-Tier Cascade Discovery search on any website: Tier 1 /.well-known/search -> Tier 2 Accept: text/markdown -> Tier 3 /llms.txt -> Tier 4 Edge HTML-to-Markdown + deterministic BM25 chunk ranking. Guarantees clean ranked chunks on 100% of websites.

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": {
      "url": "<url>",
      "query": "<query>"
    },
    "name": "agent_search_cascade"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesTarget public website URL
queryYesNatural-language or keyword search query
max_charsNoMax characters per chunk (200-4000, default 1200)
max_chunksNoMax chunks to return (1-15, default 5)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full behavioral burden, and it does disclose real internals: a four-tier fallback order, the specific discovery endpoints tried, the final HTML-to-Markdown edge fallback, and deterministic BM25 chunk ranking. That is meaningful disclosure of what happens on failure and how results are ordered. It stops short of covering latency, request volume (four sequential attempts per call), rate limits, or robots/politeness behavior.

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?

Two sentences, front-loaded with the action and followed by the mechanism, with no filler or repetition. The tier chain is information-dense and slightly cryptic but each element conveys real behavior, so little is wasted.

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

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a four-parameter tool with no annotations and no output schema, the description should explain the return shape more fully. 'Clean ranked chunks' gestures at the output but does not say what a chunk contains (source URL, tier used, relevance score) or how ranking is expressed, which an agent needs to consume results correctly.

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 description coverage is 100%, with all four parameters documented including defaults and valid ranges, so the baseline is 3. The description adds only indirect context, implying that output is chunked text which explains max_chars and max_chunks, but it gives no guidance on choosing values or on how query phrasing interacts with BM25 ranking.

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 concrete verb and resource: run a search against a target website and return ranked text chunks. The four-tier cascade naming makes the mechanism unmistakable, though the dense jargon ('.well-known/search', 'Accept: text/markdown', 'deterministic BM25') leans toward implementation detail rather than plain purpose. It is clearly distinct from siblings like agent_readiness_audit or estimate_markdown_tokens, but it never explicitly says so.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not guidance, no prerequisites, and no mention of alternatives among the sibling tools. 'On any website' implies broad applicability but does not tell an agent when this search is the right choice versus auditing readiness or estimating tokens. The 100%-guarantee claim hints at reliability but not at selection criteria.

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