Skip to main content
Glama

Web search API: search the web and get the top results as JSON

search_web
Read-only

Web search API for agents: search the web and get the top results as JSON (title, URL, snippet, published date, domain), optionally with the page text, highlights and a summary of each result, and filters by domain, date range and category. Results are for immediate use only (Brave API terms); failures are uncharged. Use when an agent needs current information, sources or links from the open web. Example: q=x402 payment protocol. Price $0.01/call via x402 USDC or a card key (/credits); failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

Input Schema

NameRequiredDescriptionDefault
qYesSearch query, at most 400 characters
countNoNumber of results (1-20, default 10)
summaryNotrue: a 1-3 sentence AI summary of each of the top pages
categoryNonews, research paper, github, pdf, tweet, linkedin profile, company, personal site or financial report
textCharsNoReturn the live page text of the top results, this many characters each (500-20000, or true for 3000; default none)
highlightsNotrue: the passages of each page that best match the query, with scores
excludeTextNoA phrase the results must not contain
includeTextNoA phrase the results must contain (up to 5 words)
numSentencesNoSentences per highlight (1-10, default 3)
summaryQueryNoWhat the summaries should focus on (default: the query)
excludeDomainsNoNever results from these domains: comma list or JSON array
includeDomainsNoOnly results from these domains: comma list or JSON array, up to 20 (example.com, github.com/org)
endPublishedDateNoOnly pages published on or before this date (ISO 8601)
highlightsPerUrlNoHighlights per result (1-5, default 1)
startPublishedDateNoOnly pages published on or after this date (ISO 8601, e.g. 2025-01-01)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the annotations (readOnly, openWorld, idempotent=false, non-destructive), the description discloses non-obvious behavioral facts: results are licensed for immediate use only (Brave terms), failed calls are free while every successful call costs $0.01 via x402 USDC or card key, and repeats are not free. Those billing and licensing constraints materially change how an agent should plan retries and caching, and none of them appear in structured fields.

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?

The purpose and cost model are front-loaded, and each sentence carries operational information. There is minor redundancy: 'failures are uncharged' and 'failed calls free' repeat the same fact, and 'each call is charged, so repeats are not free' restates the price line.

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 15-parameter tool with no output schema, the description covers purpose, returned fields, optional enrichments, filtering, pricing, licensing and failure behavior, which is close to sufficient. It stops short of describing the shape of highlight/summary objects or pagination/count semantics, so an agent still relies on the schema for output expectations.

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 description coverage is 100%, so the baseline is 3; the description goes slightly beyond by grouping the optional capabilities into named feature families (page text, highlights, per-result summary, and domain/date/category filters). It adds no per-parameter detail for count, numSentences, highlightsPerUrl, includeText or excludeText, so it is a mild improvement rather than a full semantic layer.

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 gives a specific verb plus resource ('search the web and get the top results as JSON') and enumerates the returned fields (title, URL, snippet, published date, domain), so the tool's function is unmistakable. It does not, however, distinguish itself from close siblings such as 'search', 'news_search', 'papers' or 'wikipedia', so an agent must infer the boundary on its own.

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?

'Use when an agent needs current information, sources or links from the open web' plus the concrete example 'q=x402 payment protocol' gives clear positive guidance on context of use. There are no explicit exclusions or named alternatives for cases like news-only or academic lookups, which is the main gap given the many overlapping siblings.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources