Skip to main content
Glama

web_search

Search the web and get a ranked list of results with titles, URLs, snippets, and page dates. Supports site: filters, quoted phrases, freshness, and country or language targeting.

Instructions

Search the web and return a ranked list of results: title, url, snippet, and the page date when Brave knows one. One request per call; supports site: and quoted phrases. When you want the page content itself, use web_context instead.

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
countNoResults to return (1-20, default 5); Brave may return fewer.
queryYesThe search query.
countryNoCountry code such as US, CN or ALL (default ALL).
freshnessNoAge filter: pd (day), pw (week), pm (month), py (year), or YYYY-MM-DDtoYYYY-MM-DD.
search_langNoLanguage code, e.g. en, zh-hans, de. Chinese queries default to zh-hans, others to en.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/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 disclosure burden and does well: it states the result fields, notes that the page date is only present "when Brave knows one," and clarifies the one-request-per-call model. It stops short of disclosing rate limits, quota/cost, or that ranking is opaque and result quality varies, which are the remaining behaviors an agent might need.

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?

Three short sentences, front-loaded with the purpose and return shape, then the syntax note, then the sibling routing. No restatement of the name or title and no filler.

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 five-parameter, read-only search tool with a fully documented schema and no output schema, the description covers purpose, returns, query syntax, and the main alternative. The only shortfall is the absence of operational context (rate limits, result variability) that would matter since no annotations exist to signal the safety/cost profile.

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 the baseline is 3; the description earns above that by documenting query syntax the schema does not — site: scoping and quoted phrases. It adds no meaning for count, country, freshness, or search_lang, but those are fully documented in the schema already.

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 names a specific verb and resource ("Search the web") and enumerates the return shape (title, url, snippet, page date), so the agent knows exactly what comes back. It also draws a boundary against the sibling web_context, which is the main ambiguity for a search-family tool.

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?

It gives an explicit routing rule: use this tool for ranked results, and switch to web_context "when you want the page content itself." The condition that selects the alternative is stated, not left to inference. The "one request per call" note also sets the expectation that there is no pagination loop.

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