Skip to main content
Glama
ScrapeBadger MCP Server

ScrapeBadger MCP Server

Official

search_google

Search Google and return structured results—organic results, ads, knowledge graph, AI Overview, People Also Ask, shopping, forums, videos, and related searches for research and data extraction.

Instructions

Search Google and get the structured results page: organic results, ads, knowledge graph, AI Overview, People Also Ask, shopping results, perspectives, discussions and forums, short videos and related searches. Set expand_related_questions to also get the People Also Ask answers. Organic results whose link is a google.com/goto redirect carry link_token and retry_after_seconds; pass them to google_resolve_links to get the real URLs.

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

Input Schema

NameRequiredDescriptionDefault
qYesSearch query (supports Google operators like site:, intitle:)
crNoCountry restrict.
glNoCountry code (e.g. us, gb, de)us
hlNoLanguage code (e.g. en, fr, de)en
ieNoGoogle input encoding hint. Defaults to UTF-8; an empty string omits it.
lrNoResult language restrict.
oqNoOriginal query sent to Google. Defaults to q; an empty string omits it.
siNoCached Google parameters.
ibpNoLayout control.
latNoLatitude; supply together with lon instead of location or uule.
lonNoLongitude; supply together with lat.
numNoResults per page.
tbmNoSearch type; use output=html or the dedicated vertical APIs.
tbsNoGoogle search filters.
udmNoGoogle result filter: 14 web, 18 forums. Other verticals require output=html.
udsNoGoogle filter string.
as_qNoAdditional query words.
lsigNoMap view ID.
modeNofull or fast.
nfprNoDisable spelling correction.
safeNooff or active.
uuleNoEncoded Google location.
as_dtNoSite restriction mode: i includes, e excludes as_sitesearch.
as_eqNoWords to exclude.
as_lqNoFind pages linking to this URL; availability depends on Google.
as_oqNoMatch any of these words.
as_rqNoRelated URL; availability depends on Google.
kgmidNoKnowledge Graph entity ID.
startNoResult offset for paging (0, 10, 20, ...)
as_epqNoExact phrase.
as_nhiNoNumeric range maximum.
as_nloNoNumeric range minimum.
as_qdrNoTime range, such as d, w, m or y1.
deviceNoDevice target.
domainNoGoogle domain country hint.
filterNoOmitted-results filter: 0 or 1.
outputNojson or html.
radiusNoAccuracy in meters; needs lat/lon or a city with a known center.
ludocidNoPlace CID.
locationNoCity-level geo-targeting (e.g. 'New York, USA')
no_cacheNoNo effect: responses are never cached, so every call is a fresh Google fetch.
sourceidNoGoogle source identifier. Defaults to chrome; an empty string omits it.
user_agentNoCustom User-Agent.
ai_overviewNoAlso fetch an AI Overview that Google loads after the page, and resolve its source links.
color_schemeNoGoogle color scheme.
as_sitesearchNoRestrict results to a site.
google_domainNoAlias for domain; Google requests use google.com with country targeting.
expand_related_questionsNoOpen the People Also Ask questions and return their answers: true opens every question the page shows (usually four), a number N opens the first N. Each answered question gets text_blocks and references. Each answered question costs one more search (credits = 20 x (1 + answered)); a question whose answer does not come back is not billed. Adds about a second per question.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.6.2
    • changedInput schema / properties / no_cache / description
      Previous value: -"Bypass result caches and request a fresh Google fetch."New value: +"No effect: responses are never cached, so every call is a fresh Google fetch."
  2. Changed41 schema fields changedv0.6.0
    • addedInput schema / properties / as_dt
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Site restriction mode: i includes, e excludes as_sitesearch.",
      +  "title": "As Dt"
      +}
    • addedInput schema / properties / as_epq
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Exact phrase.",
      +  "title": "As Epq"
      +}
    • addedInput schema / properties / as_eq
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Words to exclude.",
      +  "title": "As Eq"
      +}
    • addedInput schema / properties / as_lq
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Find pages linking to this URL; availability depends on Google.",
      +  "title": "As Lq"
      +}
    • addedInput schema / properties / as_nhi
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Numeric range maximum.",
      +  "title": "As Nhi"
      +}
    • addedInput schema / properties / as_nlo
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Numeric range minimum.",
      +  "title": "As Nlo"
      +}
    • addedInput schema / properties / as_oq
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Match any of these words.",
      +  "title": "As Oq"
      +}
    • addedInput schema / properties / as_q
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Additional query words.",
      +  "title": "As Q"
      +}
    • addedInput schema / properties / as_qdr
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Time range, such as d, w, m or y1.",
      +  "title": "As Qdr"
      +}
    • addedInput schema / properties / as_rq
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Related URL; availability depends on Google.",
      +  "title": "As Rq"
      +}
    • addedInput schema / properties / as_sitesearch
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Restrict results to a site.",
      +  "title": "As Sitesearch"
      +}
    • addedInput schema / properties / color_scheme
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "light",
      +        "dark"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Google color scheme.",
      +  "title": "Color Scheme"
      +}
    • addedInput schema / properties / cr
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Country restrict.",
      +  "title": "Cr"
      +}
    • addedInput schema / properties / device
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Device target.",
      +  "title": "Device"
      +}
    • addedInput schema / properties / domain
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Google domain country hint.",
      +  "title": "Domain"
      +}
    • addedInput schema / properties / filter
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Omitted-results filter: 0 or 1.",
      +  "title": "Filter"
      +}
    • addedInput schema / properties / google_domain
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Alias for domain; Google requests use google.com with country targeting.",
      +  "title": "Google Domain"
      +}
    • addedInput schema / properties / ibp
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Layout control.",
      +  "title": "Ibp"
      +}
    • addedInput schema / properties / ie
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Google input encoding hint. Defaults to UTF-8; an empty string omits it.",
      +  "title": "Ie"
      +}
    • addedInput schema / properties / kgmid
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Knowledge Graph entity ID.",
      +  "title": "Kgmid"
      +}
    • addedInput schema / properties / lat
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Latitude; supply together with lon instead of location or uule.",
      +  "title": "Lat"
      +}
    • addedInput schema / properties / lon
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Longitude; supply together with lat.",
      +  "title": "Lon"
      +}
    • addedInput schema / properties / lr
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Result language restrict.",
      +  "title": "Lr"
      +}
    • addedInput schema / properties / lsig
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Map view ID.",
      +  "title": "Lsig"
      +}
    • addedInput schema / properties / ludocid
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Place CID.",
      +  "title": "Ludocid"
      +}
    • addedInput schema / properties / mode
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "full or fast.",
      +  "title": "Mode"
      +}
    • addedInput schema / properties / nfpr
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Disable spelling correction.",
      +  "title": "Nfpr"
      +}
    • addedInput schema / properties / no_cache
      Added value: +{
      +  "default": false,
      +  "description": "Bypass result caches and request a fresh Google fetch.",
      +  "title": "No Cache",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / num
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Results per page.",
      +  "title": "Num"
      +}
    • addedInput schema / properties / oq
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Original query sent to Google. Defaults to q; an empty string omits it.",
      +  "title": "Oq"
      +}
    • addedInput schema / properties / output
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "json or html.",
      +  "title": "Output"
      +}
    • addedInput schema / properties / radius
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Accuracy in meters; needs lat/lon or a city with a known center.",
      +  "title": "Radius"
      +}
    • addedInput schema / properties / safe
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "off or active.",
      +  "title": "Safe"
      +}
    • addedInput schema / properties / si
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Cached Google parameters.",
      +  "title": "Si"
      +}
    • addedInput schema / properties / sourceid
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Google source identifier. Defaults to chrome; an empty string omits it.",
      +  "title": "Sourceid"
      +}
    • addedInput schema / properties / tbm
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "isch",
      +        "lcl",
      +        "vid",
      +        "nws",
      +        "shop",
      +        "pts",
      +        "bks"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Search type; use output=html or the dedicated vertical APIs.",
      +  "title": "Tbm"
      +}
    • addedInput schema / properties / tbs
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Google search filters.",
      +  "title": "Tbs"
      +}
    • addedInput schema / properties / udm
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Google result filter: 14 web, 18 forums. Other verticals require output=html.",
      +  "title": "Udm"
      +}
    • addedInput schema / properties / uds
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Google filter string.",
      +  "title": "Uds"
      +}
    • addedInput schema / properties / user_agent
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Custom User-Agent.",
      +  "title": "User Agent"
      +}
    • addedInput schema / properties / uule
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Encoded Google location.",
      +  "title": "Uule"
      +}
  3. Addedv0.2.0

TDQS

A4.4/5.0
Behavior5/5

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

No annotations are provided, and the description supplies substantial behavioral detail: the result sections returned, optional AI Overview and PAA expansion, the billing formula and latency for answered PAA questions, and the fact that unanswered questions are not billed. It also discloses redirect tokens and retry_after_seconds, which are non-obvious runtime behaviors.

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 sentences, front-loaded with the core purpose, followed by the two highest-value operational notes (PAA expansion and redirect token handling). The long result-type enumeration is dense but directly useful and not redundant.

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?

For a 48-parameter search tool with no output schema, the description covers the main result categories and two special behaviors, which is enough to select and invoke it. It still leaves the detailed return shape and paging behavior to the schema, so it is not fully exhaustive.

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 coverage is 100%, so the parameter definitions already carry the primary documentation burden. The description reinforces expand_related_questions and explains redirect output handling, but it adds little semantic meaning for the other 47 parameters beyond what the schema states.

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 gives a specific verb and resource ("Search Google and get the structured results page") and enumerates the result sections returned, so the agent knows exactly what the tool produces. It also explicitly names google_resolve_links for google.com/goto redirects, distinguishing that sibling's role.

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 tells the agent to set expand_related_questions to obtain People Also Ask answers and to pass link_token/retry_after_seconds to google_resolve_links, giving concrete conditions for two important choices. It does not explain when to prefer this tool over google_ai_mode_search or other search verticals, so it stops short of full alternatives guidance.

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