Skip to main content
Glama

web_search

Read-only

Search the web without an API key and return titles, URLs, and snippets to support research, source discovery, and site-specific lookups.

Instructions

Search the web, no API key. Returns title, url, snippet per result. Zero results carry a note: change the words, lang/region or engine instead of repeating. site searches inside one site through its own search box and returns results_url, the pattern that makes later queries a plain web_fetch. Read results with web_fetch urls.

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
langNoe.g. es. Default: the query's
siteNoAny page of one site: search it with its own box
fetchNosite: false returns only the URL pattern
limitNoDefault 10, max 50
queryYes
engineNoauto (default) | all (merged) | ddg | ddg-html | bing | brave | news
regionNoCountry, e.g. MX
timeoutNosite: ms, default 60000

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv2.0.0
    • changedInput schema / properties / engine / description
      Previous value: -"auto (default: the first engine that answers), all (every engine, merged by agreement), or\none of ddg, ddg-html, bing, brave."New value: +"auto (default) | all (merged) | ddg | ddg-html | bing | brave | news"
    • addedInput schema / properties / fetch
      Added value: +{
      +  "description": "site: false returns only the URL pattern",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / lang
      Added value: +{
      +  "description": "e.g. es. Default: the query's",
      +  "type": "string"
      +}
    • changedInput schema / properties / limit / description
      Previous value: -"Results to return. Default 10, max 50."New value: +"Default 10, max 50"
    • removedInput schema / properties / query / description
      Removed value: -"What to search for, as you would type it into a search box."
    • addedInput schema / properties / region
      Added value: +{
      +  "description": "Country, e.g. MX",
      +  "type": "string"
      +}
    • addedInput schema / properties / site
      Added value: +{
      +  "description": "Any page of one site: search it with its own box",
      +  "type": "string"
      +}
    • addedInput schema / properties / timeout
      Added value: +{
      +  "description": "site: ms, default 60000",
      +  "type": "integer"
      +}
  2. First observedv1.0.3

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so the safety profile is free; the description adds real value beyond that by disclosing the result fields, the empty-result `note` behavior, and the fact that `site` mode returns a reusable `results_url` pattern. Rate limits or per-engine failure characteristics are not mentioned, keeping it short of a 5.

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 and return shape, then guidance, in four compact sentences with no filler. The backtick-heavy telegraphic phrasing is dense but purposeful; nothing appears redundant.

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 an 8-parameter, read-only search tool with no output schema, the description supplies what matters: what comes back, how empty results behave, and how search chains into web_fetch. Remaining gaps are minor because the input schema already documents most parameters and the annotations cover the open-world/read-only risk.

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 88%, so most parameter meaning is already structured; the description still adds semantics that the schema does not, notably how `site` operates (through the site's own search box) and what it returns (`results_url` for later web_fetch calls). Other parameters such as `fetch`, `limit`, and `timeout` are left entirely to the schema.

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?

States a concrete verb and resource ('Search the web, no API key') and immediately declares the return shape (title, url, snippet). It also implicitly separates itself from web_fetch by noting results are read with web_fetch, so an agent can route between search and fetch without opening either 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?

Gives explicit recovery guidance for the zero-results case (change words, lang/region, or engine rather than repeating) and a clear two-step workflow: use `site` to obtain `results_url`, then pass to web_fetch. It lacks an explicit statement of when not to use this tool versus siblings like browser or web_crawl, but the practical usage context is well covered.

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