Skip to main content
Glama

Web search

web_search
Read-only

Search the web for ranked results with titles, URLs, snippets, sites, and publish dates, filtering by recency, country, and language to find current information.

Instructions

Search the whole web and get ranked results: title, URL, snippet, site and publish date, plus top news when relevant. Filter by recency (day/week/month/year), country and language. Independent index (Brave Search). Pair with page_to_markdown to read a result. Costs $0.005 per call.

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
limitNoResults to return (default 10).
queryYesWhat to search for, e.g. "x402 payment protocol" or "site:github.com mcp server".
countryNoTwo-letter country for local results, e.g. "US", "DE".
languageNoResult language, e.g. "en", "es".
freshnessNoOnly pages from the last day, week, month or year.
safesearchNoDefault moderate.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, so the safety profile is covered. The description adds genuinely useful context beyond that: the per-call cost ($0.005), the independent Brave index, and that top news may be included. It does not discuss rate limits or result-count behavior, so it is solid but not rich.

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-loads the core action and return fields, then layers filters, pairing advice and cost. Dense but every clause carries information; only minor cost is the slightly packed single-sentence opening.

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?

With no output schema, the description compensates by listing the returned fields and noting conditional news results. Combined with cost, filters and the follow-up tool, an agent has everything needed to call it 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%, so every parameter (limit, query, country, language, freshness, safesearch) is already documented in the schema. The description restates the filter dimensions (recency, country, language) without adding syntax or defaults beyond the schema, so baseline 3 applies.

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 specific verb and resource ('Search the whole web and get ranked results') and enumerates the returned fields (title, URL, snippet, site, publish date). The 'whole web' scope plus 'Independent index (Brave Search)' distinguishes it from the sibling vertical searches like news_search and book_search.

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 clear usage context: filter by recency, country and language, and explicitly pairs it with page_to_markdown to read a result. It stops short of stating when to prefer a vertical sibling (e.g. news_search) over this general search, so it is strong but not fully exclusionary.

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