Skip to main content
Glama

duckduckgo_search

Read-onlyIdempotent

输入关键词,拿到 DuckDuckGo 公开网页搜索结果、隐私搜索结果与搜索摘要

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": {
      "json": "<json>",
      "q": "<q>"
    },
    "name": "duckduckgo_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
mNo最大结果数:该参数定义要返回的最大结果数量。默认值:【50】,最小值:【1】,最大值:【50】。当不使用偏移量时(初始搜索请求,【start】 参数设置为 【0】 或留空),最多可返回 【35】 个自然结果。【DuckDuckGo】 可能返回重复结果或数量可变的结果。这在使用较大的 【start】 和 【m】 参数时更有可能发生。【m】 和 【search_assist】 不能一起使用。50
qYes搜索查询:该参数定义了爬取时的搜索结果,默认值为 【pizza】 。您可以输入任意您想要查询的关键词,也可以是任意语言。
dfNo日期过滤:该参数定义按日期过滤的结果。可以设置为:【d】:过去一天,【w】:过去一周,【m】:过去一月,【y】:过去一年,或者您可以按照以下格式传递自定义日期:开始日期..结束日期(例如 【2021-06-15..2024-06-16】);可选值:Past day(d)、Past week(w)、Past month(m)、Past year(y)
klNo地区代码:该参数定义 【DuckDuckGo】 搜索要使用的地区。地区代码示例:【us-en】 代表美国,【uk-en】 代表英国,【fr-fr】 代表法国。请访问 【DuckDuckGo】 地区页面查看支持的地区完整列表。
jsonYes输出格式:该参数定义了采集结果的输出格式。可选择【JSON】、【HTML】(支持下载)格式,默认为【JSON】。【json】=【1】返回【JSON】格式数据,【json】=【2】返回【JSON】+【HTML】格式数据,【json】=【3】返回【HTML】格式数据;可选值:JSON(1)、JSON+HTML(2)、HTML(3)
safeNo安全搜索:该参数定义成人内容的过滤级别。可以设置为:【1】 - 严格,【-1】 - 中等(默认),【-2】 - 关闭;可选值:Strict(1)、Moderate(-1)、Off(-2)-1
startNo起始偏移:该参数定义结果偏移量。它跳过指定数量的结果。当不使用偏移量时(初始搜索请求,【start】 参数设置为 【0】 或留空),最多可返回 【35】 个自然结果。当使用偏移量时(【start】 参数大于 【0】),最多可返回 【50】 个自然结果。【DuckDuckGo】 可能返回重复结果或数量可变的结果。这在使用较大的 【start】 和 【m】 参数时更有可能发生。0
no_cacheNo禁用缓存:默认情况下,【5】分钟内缓存相同参数的搜索结果。将【no_cache】设为【true】可跳过缓存,设为【false】(默认)则使用缓存结果。缓存搜索免费,且不计入您的搜索统计;可选值:开启(true)、关闭(false)
search_assistNoAI 搜索辅助:该参数决定是否在响应中返回 【DuckDuckGo】 的 【AI】 搜索辅助。可设置为 【true】 或 【false】(默认)。【search_assist】 和 【m】 不能一起使用。FALSE

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed24 schema fields changed
    • removedInput schema / properties / df / default
      Removed value: -""
    • changedInput schema / properties / df / description
      Previous value: -"该参数定义按日期过滤的结果。可设置为:d - 过去一天,w - 过去一周,m - 过去一月,y - 过去一年;也可以按 start_date..end_date 格式传递自定义日期,例如:2021-06-15..2024-06-16。"New value: +"日期过滤:该参数定义按日期过滤的结果。可以设置为:【d】:过去一天,【w】:过去一周,【m】:过去一月,【y】:过去一年,或者您可以按照以下格式传递自定义日期:开始日期..结束日期(例如 【2021-06-15..2024-06-16】);可选值:Past day(d)、Past week(w)、Past month(m)、Past year(y)"
    • addedInput schema / properties / df / enum
      Added value: +[
      +  "d",
      +  "w",
      +  "m",
      +  "y"
      +]
    • addedInput schema / properties / df / enumNames
      Added value: +[
      +  "Past day",
      +  "Past week",
      +  "Past month",
      +  "Past year"
      +]
    • removedInput schema / properties / json / default
      Removed value: -"1"
    • changedInput schema / properties / json / description
      Previous value: -"该参数定义采集结果的输出格式;可选择 JSON、HTML(支持下载)格式,默认为 JSON;1 返回 JSON,2 返回 JSON+HTML,3 返回 HTML,4 返回 Light JSON。"New value: +"输出格式:该参数定义了采集结果的输出格式。可选择【JSON】、【HTML】(支持下载)格式,默认为【JSON】。【json】=【1】返回【JSON】格式数据,【json】=【2】返回【JSON】+【HTML】格式数据,【json】=【3】返回【HTML】格式数据;可选值:JSON(1)、JSON+HTML(2)、HTML(3)"
    • addedInput schema / properties / json / enum
      Added value: +[
      +  "1",
      +  "2",
      +  "3"
      +]
    • addedInput schema / properties / json / enumNames
      Added value: +[
      +  "JSON",
      +  "JSON+HTML",
      +  "HTML"
      +]
    • removedInput schema / properties / kl / default
      Removed value: -""
    • changedInput schema / properties / kl / description
      Previous value: -"该参数定义 DuckDuckGo 搜索要使用的地区。地区代码示例:us-en 代表美国,uk-en 代表英国,fr-fr 代表法国。请访问 DuckDuckGo 地区页面查看支持的地区完整列表。"New value: +"地区代码:该参数定义 【DuckDuckGo】 搜索要使用的地区。地区代码示例:【us-en】 代表美国,【uk-en】 代表英国,【fr-fr】 代表法国。请访问 【DuckDuckGo】 地区页面查看支持的地区完整列表。"
    • changedInput schema / properties / m / default
      Previous value: -"10"New value: +"50"
    • changedInput schema / properties / m / description
      Previous value: -"该参数定义要返回的最大结果数量。默认值:10,最小值:1,最大值:50。当 start 设置为 0 或留空时,最多可返回 25 个自然结果。DuckDuckGo 可能返回重复结果或数量可变的结果,这在使用较大的 start 和 m 参数时更可能发生。m 和 search_assist 不能一起使用。"New value: +"最大结果数:该参数定义要返回的最大结果数量。默认值:【50】,最小值:【1】,最大值:【50】。当不使用偏移量时(初始搜索请求,【start】 参数设置为 【0】 或留空),最多可返回 【35】 个自然结果。【DuckDuckGo】 可能返回重复结果或数量可变的结果。这在使用较大的 【start】 和 【m】 参数时更有可能发生。【m】 和 【search_assist】 不能一起使用。"
    • removedInput schema / properties / no_cache / default
      Removed value: -"false"
    • changedInput schema / properties / no_cache / description
      Previous value: -"默认情况下,5 分钟内缓存相同参数的搜索结果;将 no_cache 设为 true 可跳过缓存,设为 false(默认)则使用缓存结果;缓存搜索免费,且不计入搜索统计。"New value: +"禁用缓存:默认情况下,【5】分钟内缓存相同参数的搜索结果。将【no_cache】设为【true】可跳过缓存,设为【false】(默认)则使用缓存结果。缓存搜索免费,且不计入您的搜索统计;可选值:开启(true)、关闭(false)"
    • addedInput schema / properties / no_cache / enum
      Added value: +[
      +  "true",
      +  "false"
      +]
    • addedInput schema / properties / no_cache / enumNames
      Added value: +[
      +  "开启",
      +  "关闭"
      +]
    • changedInput schema / properties / q / description
      Previous value: -"该参数定义爬取时的搜索结果。您可以输入任意想要查询的关键词,也可以是任意语言。调用方必须提供非空值,不使用默认值。"New value: +"搜索查询:该参数定义了爬取时的搜索结果,默认值为 【pizza】 。您可以输入任意您想要查询的关键词,也可以是任意语言。"
    • removedInput schema / properties / q / minLength
      Removed value: -1
    • changedInput schema / properties / safe / description
      Previous value: -"该参数定义成人内容的过滤级别。可设置为:1 - 严格,-1 - 中等(默认),-2 - 关闭。"New value: +"安全搜索:该参数定义成人内容的过滤级别。可以设置为:【1】 - 严格,【-1】 - 中等(默认),【-2】 - 关闭;可选值:Strict(1)、Moderate(-1)、Off(-2)"
    • addedInput schema / properties / safe / enumNames
      Added value: +[
      +  "Strict",
      +  "Moderate",
      +  "Off"
      +]
    • changedInput schema / properties / search_assist / default
      Previous value: -"false"New value: +"FALSE"
    • changedInput schema / properties / search_assist / description
      Previous value: -"该参数决定是否在响应中返回 DuckDuckGo 的 AI 搜索辅助。可设置为 true 或 false(默认)。search_assist 和 m 不能一起使用。"New value: +"AI 搜索辅助:该参数决定是否在响应中返回 【DuckDuckGo】 的 【AI】 搜索辅助。可设置为 【true】 或 【false】(默认)。【search_assist】 和 【m】 不能一起使用。"
    • changedInput schema / properties / start / description
      Previous value: -"该参数定义结果偏移量,它跳过指定数量的结果。当 start 设置为 0 或留空时,最多可返回 25 个自然结果;当 start 大于 0 时,最多可返回 10 个自然结果。DuckDuckGo 可能返回重复结果或数量可变的结果,这在使用较大的 start 和 m 参数时更可能发生。"New value: +"起始偏移:该参数定义结果偏移量。它跳过指定数量的结果。当不使用偏移量时(初始搜索请求,【start】 参数设置为 【0】 或留空),最多可返回 【35】 个自然结果。当使用偏移量时(【start】 参数大于 【0】),最多可返回 【50】 个自然结果。【DuckDuckGo】 可能返回重复结果或数量可变的结果。这在使用较大的 【start】 和 【m】 参数时更有可能发生。"
    • changedInput schema / required
      Previous value: -[
      -  "q"
      -]New value: +[
      +  "json",
      +  "q"
      +]
  2. First observed

TDQS

C2.9/5.0
Behavior2/5

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

注解已经说明了安全属性(readOnlyHint、idempotentHint、openWorldHint、destructiveHint=false),所以行为的基线要求较低;但描述没有补充任何说明,例如是否返回摘要、是否由于 schema 记录了缓存和偏移量机制而有缓存或分页行为、是否有速率限制,或者结果集如何组织。

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?

只有一句话,并且把目的放在最前面,没有浪费内容。它的简短虽然干净,但在极短描述本身就说明代理需要更多信息,因此简短得有点像是缺陷,而不是简洁的优点。

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

对于一个有 9 个参数(包括分页、缓存和输出格式控制)、没有输出 schema 的工具来说,这段描述太单薄。没有输出 schema 意味着返回结构(例如结果字段、URL、摘要)本应由描述来说明,但这里没有。

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 描述覆盖率是 100%,因此这 9 个参数(q、m、df、kl、json、safe、start、no_cache、search_assist)都已经在 schema 中完整记录。描述没有为参数含义增加任何补充信息,所以把 3 分作为基线是合适的。

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?

使用具体动词和明确目标(DuckDuckGo 公开网页搜索结果、隐私结果与摘要),能让人立刻知道该工具做什么。但它没有说明自身与 google_search、bing_search、yandex_search 等其他搜索引擎同类工具的区别,因此调用方无法只根据这段描述判断何时选择它。

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

描述只说明了工具存在,没有说明何时使用、何时不应使用,也没有给出替代方案考虑到同类中还有五个其他搜索引擎工具以及内容专用搜索工具,缺少选择指引是一个明显缺口。

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