Skip to main content
Glama

google_ai_mode

Destructive

当用户需要通过 Google AI Mode 获取 AI 搜索结果,或需要按位置、国家/地区、语言控制 Google AI Mode 查询结果时触发。

Input Schema

NameRequiredDescriptionDefault
qYes定义搜索的查询内容。调用方必须提供非空值,不使用默认值。
glNo定义 Google 搜索要使用的国家/地区。它是一个两位数的国家/地区代码。例如 us 代表美国,uk 代表英国,fr 代表法国。
hlNo定义 Google 搜索要使用的语言。它是一个两位数的语言代码。例如 en 代表英语,es 代表西班牙语,fr 代表法语。
jsonNo定义采集结果的输出格式。1 返回 JSON 格式数据,2 返回 JSON+HTML 格式数据,3 返回 HTML 格式数据,4 返回 Light JSON。默认值为 1。1
uuleNo希望用于搜索的 Google 编码位置。此参数不能与 location、lat、lon 和 radius 参数一起使用。
locationNo定义搜索发起的地理位置。如果有多个位置与请求的位置匹配,将选择最受欢迎的一个。此参数不能与 uule、lat 和 lon 参数一起使用。
no_cacheNo默认情况下,5 分钟内缓存相同参数的搜索结果。设为 true 可跳过缓存,设为 false(默认)则使用缓存结果。缓存搜索免费,且不计入搜索统计。false

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, openWorldHint=true, idempotentHint=false, and the description adds no behavioral context on top of them. It says nothing about the caching behavior implied by no_cache, the output modes implied by json, rate limits, or auth. Notably it is silent on the destructiveHint=true annotation, which is surprising for a search tool and would benefit from explanation.

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?

A single, compact sentence with no filler or repetition. It is front-loaded with the trigger condition, though the trigger phrasing is slightly indirect compared to a direct 'this tool does X' statement.

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

Completeness2/5

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

For a 7-parameter, open-world scraper tool with no output schema, the description does not convey what is returned, how Google AI Mode results differ from a plain google_search result, or how the json output modes affect the response. The schema documents inputs well, but the description leaves the agent without enough context to choose this tool confidently among ~80 siblings.

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 every parameter (q, gl, hl, json, uule, location, no_cache) is already fully documented in the schema. The description only loosely gestures at location/country/language control, adding no syntax or constraint detail beyond what the schema provides. Baseline 3 is appropriate.

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?

The description names a specific verb and resource: obtaining AI search results via Google AI Mode, and controlling them by location/country/language. It is written as a trigger condition rather than a direct statement of function, and it never distinguishes itself from the many overlapping siblings (google_search, chatgpt_answer, bing_search, duckduckgo_search, yandex_search).

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?

It gives a when-to-trigger condition ('when the user needs AI search results via Google AI Mode'), which is implied usage guidance. However, the second clause about location/country/language applies to nearly every search sibling and does not tell the agent when to pick this tool over google_search or chatgpt_answer. No exclusions or alternatives are named.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources