Skip to main content
Glama
kywrl

brave-mcp-server

by kywrl

web_search

Search the web via Brave to get current information, news, or documentation with titles, links, and snippets. Filter by freshness, country, language, or result type.

Instructions

使用 Brave Search 检索互联网,返回标题、链接和摘要。适用于查询当前信息、新闻、文档或任何需要联网才能回答的问题。支持按时效(freshness)、地区(country)、语言(search_lang)过滤,用 result_filter 只取某一类结果,用 goggles 自定义排序。查询语法支持 site:、ext:、intitle:、"精确短语"、-排除词 等运算符。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
qYes搜索查询词。支持 site:example.com、-排除词、"精确短语" 等运算符。
countNo返回结果数量,默认 10,最大 20。实际条数可能少于请求值。
offsetNo翻页偏移,默认 0。下一页把 offset 加 1(需配合相同的 count)。
countryNo结果来源国家,2 位国家码(如 US、CN、DE)或 ALL,默认 US。
gogglesNo自定义排序规则,可传 GitHub 上托管的 goggle 地址,或内联规则(如 "$discard\n$site=docs.python.org")。
freshnessNo时效过滤:pd=一天内,pw=一周内,pm=一月内,py=一年内,或 YYYY-MM-DDtoYYYY-MM-DD 自定义区间。
safesearchNo成人内容过滤级别,默认 moderate。
search_langNo结果语言,语言码如 en、zh-hans、zh-hant、ja。中文必须写 zh-hans(简体)或 zh-hant(繁体),传 zh 会被上游拒绝。
result_filterNo只返回这些类型的结果,默认全部。可选值见 enum,常用来只要 news 或 videos。
extra_snippetsNo为每条结果额外返回最多 5 段摘录,默认 false。
text_decorationsNo摘要里是否保留 <strong> 高亮标记,默认 false(便于直接阅读)。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

A4.1/5.0
Behavior3/5

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

With no annotations provided, the description carries the full burden, but it falls short in some areas. It discloses the return format conceptually (title, link, snippet) and mentions that actual result counts may be less than requested (via schema), but it doesn't clarify key behaviors like rate limits, whether the tool can fail on invalid languages (e.g., 'zh' being rejected is mentioned in the schema not the description), or what happens with offset pagination edge cases. The description does mention filters but doesn't explain the response structure beyond snippets. Given no annotations, a 3 is appropriate for the partial but incomplete behavioral disclosure.

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 description is a single dense paragraph that front-loads the core purpose (search internet, return titles/links/snippets) before diving into filters and syntax. Every sentence contributes functionality. However, it reads as a wall of text with no visual breaks; a short list format or cleaner sentence segmentation would improve scanability. Still, it is appropriately sized given the tool's complexity and avoids fluff.

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?

Given the tool has 11 parameters, no output schema, and no annotations, the description covers the main functional aspects: what it returns, when to use it, filter categories, and query syntax. It doesn't fully cover edge cases like error behavior or rate limiting, and it doesn't explain what each result type contains, but for a search tool the essentials are present. The parameter schema already provides detailed per-parameter descriptions, offsetting the need for more in the description. A 4 reflects strong coverage with minor omissions.

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, but the description adds meaningful value by grouping parameters into semantic categories: time-based filtering (freshness), regional (country), language (search_lang), result type (result_filter), and custom ordering (goggles). It also introduces the query operator syntax that applies to the q parameter, which enriches the schema's minimal examples. The description doesn't repeat every schema detail but adds conceptual clarity that helps an agent choose parameters.

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 clearly states the tool performs internet search via Brave Search and returns titles, links, and snippets, with a specific verb (检索) and resource (互联网/Brave Search). It also enumerates supported filters and query syntax, which distinguishes it from sibling tools, though no siblings are listed. The coverage makes it unambiguous what this tool does.

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?

The description explicitly states when to use it: for current information, news, documents, or any question requiring internet access. It also explains filter usage and query operators, giving actionable guidance. However, it doesn't provide explicit when-not-to-use guidance or alternatives, though with no sibling tools listed, this is a minor gap.

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