Skip to main content
Glama
Universal Web Retrieval MCP

Universal Web Retrieval MCP

web_search

Search the web through a configurable provider chain with automatic failover, or query multiple providers at once and merge ranked results.

Instructions

Web search through a configurable provider chain with automatic failover. Two modes: mode="failover" (default) walks the chain one provider at a time and returns the first success; mode="fanout" queries up to UWR_SEARCH_FANOUT providers concurrently, then merges and rank-fuses the results (provider="fanout", every row carries sources; costs N× provider quota per search). A provider answering OK with zero hits is an empty ANSWER, not an error: failover keeps walking but a query with no matches succeeds with results: [] (attempt {"outcome": "empty"}), never "all providers failed". Default chain: AnySearch -> Tavily -> DDGS; operators can reorder/extend it with UWR_SEARCH_CHAIN (e.g. anysearch,tavily,yuanbao,bocha,deepseek,kimi,ddgs) and pick the default mode with UWR_SEARCH_MODE. Auth is automatic: a configured API key enables keyed mode, otherwise the provider's official keyless access is used. Returns JSON: {success, provider, mode, latency_ms, attempts, results: [{title, url, snippet, published?, site?, sources?}]}. providers overrides the chain order for this one call (e.g. ["bocha"] or ["yuanbao","tavily"]); in fanout mode its first N eligible entries are queried.

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

Input Schema

NameRequiredDescriptionDefault
modeNo
limitNo
queryYes
providersNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.3.0
    • addedInput schema / properties / mode
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Mode"
      +}
    • addedInput schema / properties / providers
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Providers"
      +}
  2. First observedv0.1.0

TDQS

A4.2/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: it explains failover order, that an empty result is a success rather than a failure (`results: []`, attempt `{"outcome": "empty"}`), automatic auth via configured keys vs keyless access, quota multiplication in fanout, and the shape of the returned JSON. This is the kind of error/auth/cost semantics annotations would otherwise have to provide.

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?

Front-loaded with the core purpose and mode split, then behavior, then environment overrides, then return shape — a sensible ordering. It is dense and runs long with parentheticals and backticked identifiers, but nearly every sentence carries operational information an agent needs.

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 multi-provider search tool with environment-driven configuration, the description covers modes, chain defaults, auth, costs, empty-result semantics, and return fields; the output schema exists so the inline return summary is supplemental rather than required. Only `limit` is left unexplained, a small but real omission for a 4-parameter tool.

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 0% and the schema gives no enum for `mode`, so the description's enumeration of failover vs fanout is essential and adds real meaning; it also defines `providers` precisely, including that only the first N eligible entries are used in fanout. The `limit` parameter (default 5) is never mentioned anywhere, which is the one uncovered gap.

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+resource ('Web search through a configurable provider chain with automatic failover') and immediately disambiguates its two modes. It never names the siblings (web_fetch, list_providers), so an agent must infer the boundary with a page-fetch tool, but the core purpose is unambiguous.

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?

It clearly states when to pick each mode: failover for first-success, fanout for concurrent merge-and-rank with an explicit cost warning ('costs N× provider quota per search'). It does not say when to prefer this over web_fetch or list_providers, so the routing is clear internally but not against alternatives.

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

Deploy Server

Other Tools