Skip to main content
Glama

analyze_images

Identify image content from URLs, local paths, or base64; compare multiple images and continue multi-turn recognition by reusing a session ID.

Instructions

识别图片内容。传入一张图片为单图识别,传入多张为批量或对比识别。支持多轮迭代——首次调用创建 session,后续调用传入 session_id 可在已有对话基础上追加提问。

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": {
      "prompt": "<prompt>"
    },
    "name": "analyze_images"
  }
}

Input Schema

NameRequiredDescriptionDefault
promptYes对图片的识别要求,根据当前任务意图编写
session_idNo传入已有 session 的 ID 以发起后续轮次;不传则创建新 session
image_sourcesNo图片来源数组(传一张为单图识别,传多张为批量/对比),每项自动识别 http URL / 本地文件路径 / base64。首次调用创建 session 时必填;后续轮次传入 session_id 时可省略(沿用该 session 的图片)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.3

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, and it does disclose the important stateful trait: the first call creates a session and later calls with session_id append to that conversation, implicitly reusing the earlier images. However, it says nothing about failure modes (bad path, unreachable URL, expired session), whether sessions persist or time out, or what the call returns — significant gaps for a session-mutating tool with zero annotation coverage.

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?

Three tight sentences, front-loaded with the purpose before the mode behavior and the session mechanic; nothing is padding. There is mild duplication of what the input schema already states about single vs. multiple images and session_id, which keeps it from a 5.

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?

The description adequately covers the multi-turn workflow that an agent most needs to get right, which is the main complexity here. But with no annotations and no output schema, it should also say roughly what is returned (analysis text? per-image results?) and how long a session lives or what invalid image sources do; those absences leave real operational questions unanswered.

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% and the schema already explains prompt, session_id, and image_sources in comparable detail, including auto-detection of URL/local path/base64. The description restates the one-vs-many semantics and the session creation rule but adds no format, constraint, or edge-case meaning beyond the schema, so the baseline 3 applies.

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 concrete verb+resource ("识别图片内容" / recognize image content) and further disambiguates the two operating modes: one image = single-image recognition, multiple images = batch or comparison. It does not explicitly contrast itself with siblings like analyze_video or analyze_document, but the resource distinction is self-evident from those names, so it falls just 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives actionable when-to guidance: pass one image for single recognition, multiple for batch/comparison, and use a session_id on follow-up turns to ask additional questions against the same conversation. It does not state exclusions (e.g., when to prefer analyze_video or analyze_document, or what happens if you mix modes), so a 4 rather than a 5.

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