Skip to main content
Glama

google_ai_mode

Execute Google searches with AI mode enabled to obtain structured JSON results including reference sources, text blocks, shopping, images, and local information.

Instructions

Searches Google with AI Mode enabled and returns structured results with reference sources and text blocks (paragraphs, headings, lists). [Credits: 10 API credits per successful request] Notes: uule and location are mutually exclusive geo-targeting mechanisms. country further localizes the search alongside location/uule. Returns: JSON with shopping_results (array), inline_images (array), text_blocks (array of typed blocks: paragraph {type, snippet, links[]}, heading {type, text, level}, list {type, items[]}), references (array of {title, link, snippet, source, index}), and local_results (array).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
htmlNoIf true, returns the full HTML of the Google page instead of/alongside structured JSON. (default: false)
safeNoAdult content filter. Allowed values: `active` (filter on) or `off` (filter disabled). (default: off)
uuleNoEncoded parameter specifying the geographic location/locale for tailored results (e.g. w+CAIQIFJlbGF5IFN0YXRlcw==). Cannot be used together with `location`.
queryYesThe query you want to search in Google AI Mode.
countryNoTwo-letter country code for the Google search (e.g. us, uk, fr). See Google Country Parameter documentation for full list. (default: us)
locationNoSpecifies the origin location of the search. Cannot be used together with `uule`.
Behavior4/5

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

The description details the return format including specific fields (shopping_results, inline_images, text_blocks, references, local_results) and notes the credit cost per request. It also explains the mutual exclusivity of geo-targeting parameters. However, it does not mention authentication requirements or rate limits.

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?

The description is a single clear sentence followed by structured notes on parameter constraints and return format. It is front-loaded with the core purpose and credits. The return format details are extensive but necessary for a tool returning structured data. Could be slightly more concise.

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?

Given the lack of output schema and annotations, the description provides a thorough explanation of the return structure and key parameter interactions. It covers credit costs and mutual exclusivity. However, it does not explain what 'AI Mode' entails or how it differs from other Google search tools, which would enhance completeness.

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?

The schema has 100% parameter description coverage, so the baseline is 3. The description adds value by explaining the mutual exclusivity of uule and location, and that country further localizes the search alongside these parameters. This additional context improves understanding beyond the schema.

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 clearly states that the tool searches Google with AI Mode enabled and returns structured results with reference sources and text blocks. It distinctly identifies the action and resource, differentiating from siblings like 'google_search' which likely returns standard search results.

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

Usage Guidelines3/5

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

The description mentions credit cost and mutual exclusivity of parameters (uule and location), but does not provide explicit guidance on when to use this tool versus alternatives (e.g., standard Google Search or AI Overview). The context of when to prefer AI Mode over other Google tools is implied but not stated.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/alessandrobenigni/ScrapingDog-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server