Skip to main content
Glama
sgs844575
by sgs844575

图片理解

understand_image

Analyze an image from a file path, URL, or base64 and return a detailed text description via a vision model, enabling text-only models to interpret screenshots, photos, charts, and scanned documents.

Instructions

分析一张图片并返回详细的文字描述。用于让不具备视觉能力的纯文本模型间接'看懂'图片:传入本地文件路径、图片 URL 或 base64 编码数据,本工具会调用配置好的视觉模型完成识别,并返回自然语言描述文本。适合需要理解截图、照片、图表、文档扫描件等内容的场景。

Input Schema

NameRequiredDescriptionDefault
imageYes图片来源,支持三种形式:1) 本地文件绝对/相对路径,如 C:\a.png 或 ./a.png;2) HTTP(S) 图片 URL;3) data URI 或裸 base64 编码字符串。
promptNo想让视觉模型回答的具体问题或分析要求,例如"提取图中的所有文字"" 、判断图中有几个人"。不填则使用默认提示词,返回图片的通用详细描述。
mimeTypeNo仅当 image 为裸 base64 字符串且无法从内容判断格式时使用,例如 image/png、image/jpeg。
providerNo选择使用哪个视觉模型 provider,可选:default(默认)。不填则使用默认 provider。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses the delegation model (an external configured vision model performs recognition and returns natural-language text) and the default-prompt fallback, but says nothing about latency, cost, auth/configuration requirements, or failure modes when the model or image source is unavailable.

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 the core action and return value, then the mechanism, then suitable scenarios — a logical order with no filler. Slightly more verbose than necessary since the mechanism sentence partially duplicates the purpose sentence.

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

Completeness3/5

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

For a free-form-text-returning tool with no output schema, the description adequately covers what comes back. But the provider parameter's enum contains only 'default', and the description merely echoes that without explaining how providers get configured or pointing at the sibling list_vision_providers, leaving a real gap for an agent trying to reason about model selection.

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 all four parameters are already documented in the schema, which sets the baseline at 3. The description restates the accepted image forms and the default-prompt behavior but adds no syntax or precedence rules (e.g., what happens when both image and mimeType conflict) beyond what the schema already says.

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 states a specific verb and resource ('分析一张图片并返回详细的文字描述') and explains the underlying mechanism — delegating to a configured vision model so text-only models can indirectly perceive images. This is much more informative than the title '图片理解', though it never names or distinguishes itself from the sibling list_vision_providers.

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?

It gives clear usage context: appropriate for screenshots, photos, charts, and document scans, with three alternative input forms spelled out. However there are no exclusions, no prerequisites, and no pointer to list_vision_providers for discovering or configuring the provider, so the routing cost is left to inference.

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

Deploy Server

Other Tools