Skip to main content
Glama

Search Text

search_text

Search web content for technical docs, blogs, forums, and tutorials. Returns result summaries and links only; crawl result URLs to fetch full page text.

Instructions

搜索网页内容(通用搜索)

适用于搜索技术文档、百科、博客、论坛、教程等网页内容。 只返回搜索结果摘要和链接,不抓取页面正文;如需正文,请对结果 URL 再调用 crawl_single/crawl_batch。

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": "search_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo结果页码(默认:1),翻页取更多结果
queryYes搜索关键词。支持搜索引擎原生算子(是否生效取决于命中的引擎,可用 backend 指定): site:example.com / -site:ads.com 限定或排除站点 filetype:pdf / ext:pdf 限定文件类型 intitle:"关键词" 标题匹配 "精确短语" OR -排除词
regionNo区域代码 - wt-wt: 无区域限制(默认) - us-en: 美国(英语) - cn-zh: 中国(中文) - uk-en: 英国(英语) - jp-jp: 日本(日语)wt-wt
backendNo指定搜索引擎引擎(逗号分隔),留空=auto 自动挑选。当前可用引擎: - 文本: brave, duckduckgo, grokipedia, mojeek, startpage, wikipedia, yahoo - 新闻: bing, duckduckgo, yahoo - 图片: bing, duckduckgo - 视频: duckduckgo - 图书: annasarchive
timelimitNo时间限制 (d=天, w=周, m=月, y=年)
safesearchNo安全搜索 (on/moderate/off)moderate
max_resultsNo最大结果数(默认:10)

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.2.1
    • addedInput schema / properties / backend
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "指定搜索引擎引擎(逗号分隔),留空=auto 自动挑选。当前可用引擎:\n- 文本: brave, duckduckgo, grokipedia, mojeek, startpage, wikipedia, yahoo\n- 新闻: bing, duckduckgo, yahoo\n- 图片: bing, duckduckgo\n- 视频: duckduckgo\n- 图书: annasarchive"
      +}
    • addedInput schema / properties / page
      Added value: +{
      +  "default": 1,
      +  "description": "结果页码(默认:1),翻页取更多结果",
      +  "type": "integer"
      +}
    • changedInput schema / properties / query / description
      Previous value: -"搜索关键词"New value: +"搜索关键词。支持搜索引擎原生算子(是否生效取决于命中的引擎,可用 backend 指定):\nsite:example.com / -site:ads.com  限定或排除站点\nfiletype:pdf / ext:pdf  限定文件类型\nintitle:\"关键词\"  标题匹配\n\"精确短语\"  OR  -排除词"
  2. First observedv0.2.0

TDQS

A4.2/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the burden, and it discloses the single most important behavioral trait: results are only summaries plus links, with no page body fetched. It does not discuss engine selection behavior in practice, rate limits, or result-quality caveats, but the critical output-shape expectation is stated.

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 compact lines: purpose first, applicable content types second, output limitation and follow-up alternative last. Every sentence carries information, and the most consequential constraint (no page body) is surfaced early rather than buried.

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?

An output schema exists, so return-value shape needn't be explained, and the description covers the read-only search intent plus the crawl handoff. For a 7-parameter tool with no annotations, it could say a bit more about engine fallback and result variability, but nothing needed to invoke it correctly is absent.

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%, and the schema itself documents query operators, region codes, backend engine lists, timelimit and max_results in detail. The description adds no parameter meaning beyond the schema, so the 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?

The description states a specific verb and resource — search web page content as a general-purpose search — and marks its scope with "(通用搜索)", which implicitly separates it from the specialized search_news/search_images/search_videos/search_books siblings. It also names crawl_single/crawl_batch as the follow-up path, so an agent can tell what this tool does and does not return without opening a 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?

It gives concrete usage context (technical docs, encyclopedias, blogs, forums, tutorials) and an explicit alternative for the case where full page text is needed, routing the agent to crawl_single/crawl_batch on result URLs. What's missing is exclusion guidance relative to the vertical search siblings (news, images, videos, books).

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