Skip to main content
Glama

google_lens

Destructive

当用户需要通过 Google Lens 基于图片 URL 识别图片内容、查找视觉匹配、商品匹配、完全匹配或关于此图片的信息时触发。

Input Schema

NameRequiredDescriptionDefault
qNo该参数定义在 Google Lens 搜索中一并使用的搜索查询。仅当 type 为 all、visual_matches 或 products 时适用。调用方必须提供非空值,不使用默认值。
hlNo该参数定义 Google Lens 搜索要使用的语言。它是一个两位数的语言代码。例如:en 代表英语,es 代表西班牙语,fr 代表法语。
urlYes该参数定义要执行 Google Lens 搜索的图片 URL。调用方必须提供非空值,不使用默认值。
jsonNo该参数定义采集结果的输出格式;可选择 JSON、HTML(支持下载)格式,默认为 JSON。1 返回 JSON,2 返回 JSON+HTML,3 返回 HTML,4 返回 Light JSON。1
safeNo该参数定义成人内容的过滤级别。可设置为 active 或 off。
typeNo该参数定义要执行的搜索类型,默认值为 all。可用值:all、products、about_this_image、exact_matches、visual_matches。all
countryNo该参数定义 Google Lens 搜索要使用的特定国家/地区位置。它是一个两位数的国家/地区代码。例如:us 代表美国,fr 代表法国,de 代表德国。
no_cacheNo默认情况下,5 分钟内缓存相同参数的搜索结果;将 no_cache 设置为 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 and idempotentHint=false, so the safety profile is covered structurally. The description adds no behavioral context at all: nothing about caching (the no_cache param exists), rate limits, auth, or the fact that results are scraped/collected output. It does not contradict the annotations, but it contributes nothing beyond them.

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 and the resource (Google Lens, image URL) front-loaded. It is efficient, though the trigger-clause phrasing and the enumerated enum values make it feel more like a routing hint than a description.

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?

With 8 parameters, no output schema, and a scraped/open-world result set, the description should say something about what comes back (JSON vs HTML via the json param, cached vs fresh results, pagination/volume). It covers none of this, so an agent knows when to call it but little about what to expect or how to shape the call.

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% for all 8 parameters, so the schema already documents url, q, hl, country, safe, json, no_cache and the type enum in detail. The description only echoes the type values (visual matches, product matches, exact matches, about this image), duplicating the enum rather than adding syntax or usage constraints. Baseline 3 applies when the schema does the heavy lifting.

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 resource (Google Lens) and operation (identify image content from an image URL, find visual/product/exact matches, 'about this image'), so an agent can tell what the tool does. It never differentiates itself from the many other image/search siblings (google_images, bing_images, yandex_search), and it is framed as a trigger clause rather than a tool description, so it stops short of a 5.

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 whole sentence is a usage condition ('trigger when the user needs to...') and it enumerates the five intent scenarios that map to the type enum, which is genuine when-to-use context. However, it offers no exclusions and never names an alternative sibling (e.g. google_images or bing_images) for plain image search, leaving the boundary implicit.

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