Skip to main content
Glama
ScrapeBadger MCP Server

ScrapeBadger MCP Server

Official

google_ai_mode_search

Ask Google AI Mode a question and get its generative answer as markdown with cited sources, optionally localized by city or coordinates for near-me queries.

Instructions

Ask Google AI Mode (Google's generative AI answer) and get the answer as markdown and structured text_blocks with the sources it cited. To answer 'near me' or other local questions for a specific place, pass ONE of location (a Google location name or criteria ID), lat+lon, or uule: the answer is localised to that city or district, whatever the exit IP. With location and no gl, gl becomes the location's country. Located answers echo a location object. Failed requests (503) are not billed; retry them.

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

Input Schema

NameRequiredDescriptionDefault
qYesThe question or prompt to ask Google AI Mode.
glNoGoogle country (market) code, e.g. us, kr, de. It shapes the answer; it does not choose the exit IP's country. Omit it to get us, or the location's country when location is set.
hlNoAnswer language code (e.g. en, ko, de).en
latNoLatitude of the user's location; send together with lon.
lonNoLongitude of the user's location; send together with lat.
uuleNoA Google UULE in its w+ (canonical name) or j+ (coordinates) form. Prefer location or lat+lon. Use only one of location, uule, or lat+lon.
locationNoAnswer as if the user were here, for 'near me' and other local questions: a Google canonical location name (e.g. 'Wonju-si,Gangwon-do,South Korea'), a Google criteria ID (e.g. '1009889'), or an unambiguous short name within gl. Use only one of location, uule, or lat+lon. An unknown or ambiguous name is rejected; the error lists canonical candidates to retry with.
include_htmlNoAlso return the raw answer_html (often 100s of KB). Leave false: markdown and text_blocks carry the whole answer.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.8.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses localisation semantics (answer pinned to the city/district regardless of exit IP), the gl inheritance rule, that located answers echo a location object, and that 503 responses are unbilled and retryable. It omits auth needs, rate limits, and rough latency/cost of a call.

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?

Front-loaded with what the tool does, then constraints, then the failure/retry note; every clause carries information. The localisation sentence is densely packed and slightly hard to parse on first read, but nothing is wasteful.

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 an 8-parameter tool with no annotations and no output schema, the definition covers return format (markdown, text_blocks, sources), localisation behaviour, defaults, and retry guidance. Remaining gaps are secondary: output field structure and per-call cost/limits are not described.

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%, so the schema already explains q, gl, hl, lat/lon, uule, location, and include_html individually. The description adds the cross-parameter exclusivity rule and the gl-derivation interaction, but that exclusivity is already stated in the uule and location schema descriptions, so incremental value is modest.

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?

States a specific verb and resource ('Ask Google AI Mode ... get the answer as markdown and structured text_blocks with the sources it cited'), which is clearly distinct from the generic search_google sibling. An agent can tell this returns a generative answer plus citations rather than a link list.

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?

Gives explicit conditional guidance: pass exactly one of location, lat+lon, or uule for 'near me'/local questions, leave include_html false unless raw HTML is needed, and retry 503s since they aren't billed. It does not name an alternative tool (e.g. when to prefer search_google over AI Mode), so it stops short of full when-not guidance.

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