Skip to main content
Glama
mcp-ddg-research

mcp-ddg-research

by isyuricunha

web_search

Read-only

Searches one or multiple web providers to retrieve deduplicated results, with optional domain, recency, SafeSearch filters, and provider-generated answers.

Instructions

Search one or multiple web providers. Optionally include their generated answers.

Omitted options inherit server defaults. Explicit empty domain lists clear defaults. Auto mode prioritizes authorized AI providers when synthesis is eligible. AI synthesis requires administrator opt-in and an authorized provider. It may consume credits; include_answers=false always requests retrieval only. Domain controls, explicit search windows, freshness, SafeSearch or queries over 400 characters disable synthesis. Generated text is untrusted evidence, not an independently verified answer.

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

Input Schema

NameRequiredDescriptionDefault
queryYesWeb search query text.
providerNoOmit to inherit default; auto for fallback, keyless for keyless fallback, all for parallel search, or one provider ID. General providers: ddg_html, ddgs:yahoo, bing_rss, mwmbl, freeserp, keenable, youcom_keyless, tinyfish, tavily, exa, brave, youcom, serper, jina, searxng. Some require configuration. Use providers to select several.
providersNoExplicit provider names to search in parallel.
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.
include_answersNoUse authorized provider AI; false disables it.
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. Changed26 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 / include_answers
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "boolean"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Use authorized provider AI; false disables it.",
      +  "title": "Include Answers"
      +}
    • 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"
      +  }
      +]
    • addedInput schema / properties / provider / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / provider / default
      Previous value: -"auto"New value: +null
    • changedInput schema / properties / provider / description
      Previous value: -"Search provider name, or 'auto' to walk the fallback chain. General providers: bing_html, ddg_html, ddgs:bing, ddgs:brave, ddgs:yahoo, ddgs:yandex, 4get (needs FOURGET_BASE), mwmbl, freeserp, keenable, searxng (needs SEARXNG_URL). Vertical: wikipedia, hackernews."New value: +"Omit to inherit default; auto for fallback, keyless for keyless fallback, all for parallel search, or one provider ID. General providers: ddg_html, ddgs:yahoo, bing_rss, mwmbl, freeserp, keenable, youcom_keyless, tinyfish, tavily, exa, brave, youcom, serper, jina, searxng. Some require configuration. Use providers to select several."
    • removedInput schema / properties / provider / type
      Removed value: -"string"
    • addedInput schema / properties / providers
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "maxItems": 20,
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Explicit provider names to search in parallel.",
      +  "title": "Providers"
      +}
    • 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."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "NativeResponse": {
      +      "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"
      +    },
      +    "SearchResult": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "snippet": {
      +          "title": "Snippet",
      +          "type": "string"
      +        },
      +        "title": {
      +          "title": "Title",
      +          "type": "string"
      +        },
      +        "url": {
      +          "title": "Url",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "title",
      +        "url",
      +        "snippet"
      +      ],
      +      "title": "SearchResult",
      +      "type": "object"
      +    },
      +    "Source": {
      +      "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"
      +    }
      +  },
      +  "additionalProperties": false,
      +  "properties": {
      +    "answer_attempts": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "title": "Answer Attempts",
      +      "type": "array"
      +    },
      +    "answers": {
      +      "items": {
      +        "$ref": "#/$defs/NativeResponse"
      +      },
      +      "title": "Answers",
      +      "type": "array"
      +    },
      +    "cached": {
      +      "title": "Cached",
      +      "type": "boolean"
      +    },
      +    "error": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Error"
      +    },
      +    "provider": {
      +      "title": "Provider",
      +      "type": "string"
      +    },
      +    "provider_attempts": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "title": "Provider Attempts",
      +      "type": "array"
      +    },
      +    "query": {
      +      "title": "Query",
      +      "type": "string"
      +    },
      +    "results": {
      +      "items": {
      +        "$ref": "#/$defs/SearchResult"
      +      },
      +      "title": "Results",
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "query",
      +    "provider",
      +    "results",
      +    "cached",
      +    "error"
      +  ],
      +  "title": "SearchResponse",
      +  "type": "object"
      +}
  2. First observedv0.13.0

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the readOnly/openWorld/idempotent annotations, it discloses that AI synthesis requires administrator opt-in plus an authorized provider, that it may consume credits, that auto mode prioritizes authorized AI providers, and that generated text is untrusted evidence rather than verified output. It also explains the default-inheritance model ("Omitted options inherit server defaults. Explicit empty domain lists clear defaults"), which is non-obvious server-side behavior not captured by annotations.

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?

Purpose is front-loaded in the first sentence, followed by default-handling, synthesis eligibility, and a trust caveat — a sensible priority order with little filler. Some sentences are dense (the list of synthesis-disabling conditions), but each carries operational meaning rather than restating structured fields.

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

Completeness5/5

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

For an 11-parameter, open-world search tool with rich annotations and an output schema, the description covers what the schema cannot: default inheritance, credit cost, admin opt-in, synthesis-disabling conditions, and output trust level. Return shape is left to the output schema, which is appropriate. Nothing an agent needs to call this correctly and interpret results cautiously is missing.

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 earns above that by adding cross-parameter semantics the schema does not state — that omitted options inherit server defaults and that an explicit empty list clears a default filter. It also clarifies the interaction between synthesis and the domain/time/safe-search parameters. It stops short of explaining provider eligibility rules or ordering effects.

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?

"Search one or multiple web providers. Optionally include their generated answers." gives a specific verb (search), resource (web providers), and scope (single vs. parallel, optional AI synthesis). It is clear what the tool does, but it never names a sibling (e.g., web_answer, ddg_search, vertical_search) to disambiguate the retrieval-only vs. answer-synthesis split, which is the most likely confusion given the sibling set.

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 states concrete operating conditions: "include_answers=false always requests retrieval only" and a list of conditions that "disable synthesis" (domain controls, explicit search windows, freshness, SafeSearch, queries over 400 characters). That is actionable guidance an agent can use to predict behavior. What's missing is explicit routing to alternatives — it never says when to prefer web_answer or a vertical search instead.

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