Skip to main content
Glama

分析图片

analyze_image

Analyze an image with Gemini vision to obtain a descriptive text or answer. Supports local file paths, HTTP(S) URLs, and base64 data URIs.

Instructions

调用 Gemini 视觉模型(默认模型 gemini-3.5-flash,可用环境变量 GEMINI_MODEL 覆盖)分析一张图片,返回模型的文本描述/回答。image 支持本地文件路径、http(s) 图片 URL 或 base64 data URI。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
imageYes图片来源:本地文件路径、http(s) 图片 URL 或 data:image/...;base64,<data>
promptNo分析指令,默认为:"请详细描述这张图片的内容"
maxTokensNo最大输出 token 数,默认 1024
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 of behavioral disclosure. It discloses that the tool makes an external call to Gemini, specifies the default model and env-var override, and mentions the returned text. It does not mention privacy implications of sending images externally or error behaviors, which keeps it from a 5, but it is far more transparent than the typical 'analyze image' stub.

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 a single, well-structured sentence that front-loads the core action and return value. Every clause adds information: the model used, configurability, accepted image formats, and output type. No filler or repetition of the name/title.

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?

For a relatively simple tool with 100% schema coverage and no output schema, the description sufficiently covers what the tool does, what it returns, and the accepted input formats. It lacks explicit notes on failure modes or limits, but given the straightforward nature and complete schema, it is adequate. A 5 would require more detail on edge cases or output structure.

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 coverage is 100%, so the baseline is 3. The description adds little beyond the schema for parameters: it restates image input types that are already in the schema and mentions model configuration that is not a parameter. It does not provide extra semantics for 'prompt' or 'maxTokens' beyond what the schema already states.

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 a specific action ('analyze an image' via Gemini vision model) and the resource being acted upon, distinguishing it from generic 'process' tools. It also specifies the return type (text description/answer), making the purpose unambiguous. Despite no siblings to differentiate from, the verb+resource+output construction earns full marks.

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?

The description provides clear context on when to use the tool: whenever an image needs to be analyzed, with explicit support for multiple input forms (local path, URL, base64). It does not explicitly state exclusions or alternatives, but with no sibling tools, the lack of alternative comparison is not a major gap. The model override note adds practical usage context.

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

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