Skip to main content
Glama

search

Search the web by query and provider to get titles, URLs, and snippets, with automatic fallback and source disclosure, then fetch full pages.

Instructions

Search the web for titles, URLs, and snippets, then use fetch to read full pages. Specify provider: google (default choice, automatic fallback to DDG then Brave on failure), ddg, brave, or all (merge all three). Sources and fallback are disclosed. Google and Brave support pages 1-100; DDG supports 1-10 and is skipped beyond page 10 in all/fallback. Brave challenge recovery may take up to three minutes.

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>",
      "provider": "<provider>"
    },
    "name": "search"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoResult page (1-indexed, default: 1)
queryYesSearch query
providerYesRequired. Prefer google; google failures fall back to DDG then Brave. all merges all providers. Every result names its source.google

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv3.8.6
    • addedInput schema / properties / provider
      Added value: +{
      +  "default": "google",
      +  "description": "Required. Prefer google; google failures fall back to DDG then Brave. all merges all providers. Every result names its source.",
      +  "enum": [
      +    "google",
      +    "ddg",
      +    "brave",
      +    "all"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "query"
      -]New value: +[
      +  "query",
      +  "provider"
      +]
  2. First observedv3.3.1

TDQS

A4.6/5.0
Behavior5/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 it well: it discloses the fallback chain, per-provider page ceilings, that DDG is silently skipped past page 10 in `all`/fallback modes, that result sources are labeled, and even a latency hazard (Brave challenge recovery up to three minutes). These are exactly the operational traits an agent needs before committing a call.

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 purpose in the first sentence, then dense but relevant operational detail. Slightly overpacked as a single block, and the provider/fallback information partly duplicates what the schema's `provider` description already states, but no sentence is filler.

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?

For a 3-parameter, annotation-free, output-schema-free tool, the description covers everything material: what comes back (titles/URLs/snippets with source labels), how provider choice behaves on failure, and per-provider page limits. Nothing an agent needs to call it correctly is missing.

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 baseline is 3; the description earns above that by adding a fact the schema cannot express — that the `page` maximum of 100 is provider-dependent (Google/Brave 1-100, DDG only 1-10 and skipped beyond 10). The `provider` and `query` semantics largely restate the enum description rather than extend it.

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 first sentence names a specific verb and resource ("Search the web") and states the return shape (titles, URLs, snippets), then explicitly routes to the sibling `fetch` for full pages. An agent can distinguish this general web search from the domain-specific `search_*` siblings and from `fetch` without opening any schema.

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 gives explicit two-step usage (search here, then fetch), and detailed provider-selection guidance: google as default with automatic fallback to DDG then Brave, `all` to merge. It stops short of saying when NOT to use it (e.g., prefer the job/marketplace-specific search siblings for those domains), leaving that inference to the agent.

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