Skip to main content
Glama

recognize_image

Analyze images to generate detailed text descriptions. Supports local files, URLs, and base64 input for use in screenshot analysis, UI review, and chart interpretation.

Instructions

识别图片内容并返回文字描述。

适用于截图分析、UI 审查、图片内容理解、图表解读等场景。

Args: image: 图片来源,支持三种形式: 1. 本地文件绝对/相对路径(如 /tmp/a.png、./pic.jpg) 2. http(s) 网络图片 URL 3. base64 编码字符串(裸串即可,无需 data: 前缀) prompt: 想让模型关注的重点或要回答的问题。 默认为详细描述图片全部内容。

Returns: 视觉模型给出的图片文字描述。

Raises: FileNotFoundError: 本地图片路径不存在。 RuntimeError: 未配置 API key 或视觉模型调用失败。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
imageYes
promptNo请详细描述这张图片的内容,包括其中的文字、物体、人物、场景、布局、颜色等信息。

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description carries the full burden. It discloses error conditions (FileNotFoundError, RuntimeError) and parameter behaviors (image source types, prompt default), adding useful context. It does not mention any destructive behavior, which is appropriate. Could further explain model dependencies 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with clear sections (Args, Returns, Raises) and bullet points. Every sentence adds value, and there is no redundancy. It is appropriately sized for the tool's complexity.

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

Completeness5/5

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

Given the existence of an output schema (mentioned), the description covers return values and error cases. It addresses parameter details and usage scenarios thoroughly. No critical information is missing for an agent to select and invoke the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 0% description coverage, so the description fully compensates. It explains the 'image' parameter can be local path, URL, or base64, and describes 'prompt' as optional with a default. This adds significant meaning beyond the schema's bare definitions.

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 the tool recognizes image content and returns a textual description. It uses specific verbs and resources, and implicitly distinguishes from sibling 'ocr_image' by focusing on general image understanding rather than just OCR.

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 lists applicable scenarios (screenshot analysis, UI review, etc.), providing implicit usage guidance. However, it does not explicitly state when not to use the tool or contrast it with alternatives. The sibling tool 'ocr_image' is not mentioned, missing an opportunity for clear differentiation.

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/kobexi26/mcp-vision'

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