Skip to main content
Glama
mcp-ddg-research

mcp-ddg-research

by isyuricunha

ddg_search

Read-only

Runs DuckDuckGo web searches with query, result-count, safe-search, recency, and domain allow, block, or preference controls.

Instructions

Legacy DuckDuckGo search. Prefer web_search unless DuckDuckGo-specific behavior is needed.

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

Input Schema

NameRequiredDescriptionDefault
queryYesWeb search query text.
max_resultsNoFinal number of search results returned after URL dedupe and optional domain controls. This is not the provider request window. Omit to inherit.
safe_searchNoSafe search level: off, moderate, or strict (provider support varies). Omit to inherit.
time_filterNoRecency: day, week, month, or year (provider support varies). Use any to override freshness.
search_windowNoInternal provider result count requested before URL dedupe, domain filtering, and final max_results capping. This is a result-count window, not a time range or number of days.
allowed_domainsNoExclusive domain allowlist. When provided, only matching domains and their subdomains are kept.
blocked_domainsNoExclusion list of domains to remove from search results. Exact domains and subdomains match; lookalike substring matches do not.
preferred_domainsNoStable ordering preference. Matching domains are moved earlier while preserving relative order; this is not exclusive filtering and does not add numeric scores.

Output Schema

NameRequiredDescriptionDefault
errorYes
queryYes
cachedYes
answersNo
resultsYes
providerYes
answer_attemptsNo
provider_attemptsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed24 schema fields changedv0.17.3
    • changedInput schema / properties / allowed_domains / anyOf
      Previous value: -[
      -  {
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "items": {
      +      "type": "string"
      +    },
      +    "maxItems": 50,
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / blocked_domains / anyOf
      Previous value: -[
      -  {
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "items": {
      +      "type": "string"
      +    },
      +    "maxItems": 50,
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / max_results / anyOf
      Added value: +[
      +  {
      +    "maximum": 30,
      +    "minimum": 1,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / max_results / default
      Previous value: -10New value: +null
    • changedInput schema / properties / max_results / description
      Previous value: -"Final number of search results returned after URL dedupe and optional domain controls. This is not the provider request window."New value: +"Final number of search results returned after URL dedupe and optional domain controls. This is not the provider request window. Omit to inherit."
    • removedInput schema / properties / max_results / maximum
      Removed value: -30
    • removedInput schema / properties / max_results / minimum
      Removed value: -1
    • removedInput schema / properties / max_results / type
      Removed value: -"integer"
    • changedInput schema / properties / preferred_domains / anyOf
      Previous value: -[
      -  {
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "items": {
      +      "type": "string"
      +    },
      +    "maxItems": 50,
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / query / description
      Previous value: -"DuckDuckGo search query text."New value: +"Web search query text."
    • addedInput schema / properties / query / maxLength
      Added value: +4000
    • addedInput schema / properties / safe_search / anyOf
      Added value: +[
      +  {
      +    "enum": [
      +      "off",
      +      "moderate",
      +      "strict"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / safe_search / default
      Previous value: -"off"New value: +null
    • changedInput schema / properties / safe_search / description
      Previous value: -"DuckDuckGo safe search level: off, moderate, or strict."New value: +"Safe search level: off, moderate, or strict (provider support varies). Omit to inherit."
    • removedInput schema / properties / safe_search / enum
      Removed value: -[
      -  "off",
      -  "moderate",
      -  "strict"
      -]
    • removedInput schema / properties / safe_search / type
      Removed value: -"string"
    • changedInput schema / properties / search_window / description
      Previous value: -"Internal provider result count requested from DuckDuckGo before URL dedupe, domain filtering, and final max_results capping. This is a result-count window, not a time range or number of days."New value: +"Internal provider result count requested before URL dedupe, domain filtering, and final max_results capping. This is a result-count window, not a time range or number of days."
    • changedInput schema / properties / time_filter / anyOf
      Previous value: -[
      -  {
      -    "enum": [
      -      "day",
      -      "week",
      -      "month",
      -      "year"
      -    ],
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "enum": [
      +      "any",
      +      "day",
      +      "week",
      +      "month",
      +      "year"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / time_filter / description
      Previous value: -"DuckDuckGo time filter for search recency: day, week, month, or year."New value: +"Recency: day, week, month, or year (provider support varies). Use any to override freshness."
    • addedOutput schema / $defs / NativeResponse
      Added value: +{
      +  "properties": {
      +    "answer": {
      +      "title": "Answer",
      +      "type": "string"
      +    },
      +    "effort": {
      +      "anyOf": [
      +        {
      +          "enum": [
      +            "lite",
      +            "standard",
      +            "deep",
      +            "max",
      +            "exhaustive"
      +          ],
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Effort"
      +    },
      +    "mode": {
      +      "enum": [
      +        "answer",
      +        "research"
      +      ],
      +      "title": "Mode",
      +      "type": "string"
      +    },
      +    "provider": {
      +      "title": "Provider",
      +      "type": "string"
      +    },
      +    "source_kind": {
      +      "default": "citations",
      +      "enum": [
      +        "citations",
      +        "grounding",
      +        "search_results"
      +      ],
      +      "title": "Source Kind",
      +      "type": "string"
      +    },
      +    "sources": {
      +      "items": {
      +        "$ref": "#/$defs/Source"
      +      },
      +      "title": "Sources",
      +      "type": "array"
      +    },
      +    "truncated": {
      +      "default": false,
      +      "title": "Truncated",
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "provider",
      +    "mode",
      +    "answer",
      +    "sources"
      +  ],
      +  "title": "NativeResponse",
      +  "type": "object"
      +}
    • addedOutput schema / $defs / Source
      Added value: +{
      +  "properties": {
      +    "excerpt": {
      +      "default": "",
      +      "title": "Excerpt",
      +      "type": "string"
      +    },
      +    "index": {
      +      "title": "Index",
      +      "type": "integer"
      +    },
      +    "title": {
      +      "title": "Title",
      +      "type": "string"
      +    },
      +    "url": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Url"
      +    }
      +  },
      +  "required": [
      +    "index",
      +    "url",
      +    "title"
      +  ],
      +  "title": "Source",
      +  "type": "object"
      +}
    • addedOutput schema / properties / answer_attempts
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "title": "Answer Attempts",
      +  "type": "array"
      +}
    • addedOutput schema / properties / answers
      Added value: +{
      +  "items": {
      +    "$ref": "#/$defs/NativeResponse"
      +  },
      +  "title": "Answers",
      +  "type": "array"
      +}
    • removedOutput schema / properties / provider / enum
      Removed value: -[
      -  "ddgs",
      -  "duckduckgo_html",
      -  "auto",
      -  "all",
      -  "bing_html",
      -  "4get",
      -  "mwmbl",
      -  "freeserp",
      -  "keenable",
      -  "searxng",
      -  "wikipedia",
      -  "hackernews"
      -]
  2. First observedv0.13.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=true, and idempotentHint=false, so the safety profile is covered. The description adds only the "legacy" status marker, with no mention of provider quirks (the schema hints "provider support varies" for safe_search and time_filter) or rate limits. Adequate but thin beyond structured data.

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?

Two short sentences, zero filler, with the legacy/deprecation signal and the preferred alternative front-loaded. Nothing to trim.

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

Completeness3/5

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

The rich schema, full parameter documentation, and existing output schema mean the description needn't explain inputs or returns. However, for a tool whose entire value proposition is "use only in special cases," leaving the special case undefined is a meaningful completeness gap in routing guidance.

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 parameters are carefully documented in the schema, including the distinction between search_window and max_results. The description adds no parameter meaning of its own, so the baseline 3 applies.

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?

"Legacy DuckDuckGo search" names the resource and implicitly the verb (search), and the second sentence names the sibling (web_search) it exists alongside. It stops short of describing search scope or return behavior, but an agent can tell what it does and how it differs from the general web_search tool.

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?

Explicit routing guidance: prefer web_search unless DuckDuckGo-specific behavior is needed, which gives both a default and an exception condition. The gap is that "DuckDuckGo-specific behavior" is never defined, so the agent must guess what would actually justify selecting this tool.

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