Skip to main content
Glama

识图分析

analyze_image

Analyzes an image to describe its content, answer visual questions, and locate UI elements; accepts local paths, URLs, data URLs, or base64, and returns a full description when no prompt is given.

Instructions

理解一张图片:描述内容、回答关于图片的问题、定位界面元素。不传 prompt 时输出完整描述。

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "source": "<source>"
    },
    "name": "analyze_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNo临时指定模型 id(默认 gpt-5-6;可用 VISION_MODEL 环境变量改全局默认)
promptNo想问的具体问题,如"图中红色按钮的坐标是多少"
sourceYes图片来源:本地文件路径、http(s) 图片 URL、data:image/...;base64,... 数据 URL,或裸 base64

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations at all, the description carries the full behavioral burden. It discloses one real behavioral trait beyond the schema — the prompt-absent default mode — but says nothing about cost/latency of a vision-model call, image size constraints, or what the returned text looks like (no output schema exists to cover that).

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?

Two short sentences with the capability list up front and the prompt-omission default trailing as the fallback rule. Nothing is redundant or padded.

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 3-parameter vision tool with no annotations and no output schema, the description covers what it does but not what comes back — whether output is prose, coordinates, or structured findings — nor any limits on image input. Adequate to call correctly, but thin on the return side.

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

Parameters4/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, but the description adds real meaning beyond it for the prompt parameter: it states what happens when prompt is omitted, which the schema's 'specific question' wording does not. The model parameter and source formats are left entirely to the schema, which is adequate.

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?

Names a specific verb and resource (analyze/understand an image) and enumerates three concrete capabilities: describe content, answer questions, locate UI elements. It does not distinguish itself from the sibling tools compare_images or extract_text, so an agent cannot tell from the description alone which one to pick for OCR-like or comparison tasks.

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?

Gives one explicit usage rule — omit prompt to get a full description, supply prompt for targeted Q&A — which is genuinely helpful for selecting the mode. It offers no guidance on when to prefer this over compare_images or extract_text, nor on prerequisites such as image size or format limits, leaving the cross-tool choice 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