Skip to main content
Glama

vision_inspect

Analyze a single image to extract content, understand UI layouts, interpret charts, or identify errors using customizable modes and OCR.

Instructions

Analyze a single image: screenshot understanding, UI analysis, chart comprehension, error extraction. Use this tool ONLY when the user has an image and wants to understand its content, extract information, or analyze visual elements. Do NOT use for: comparing two images (use vision_diff), cropping/verifying a region (use vision_crop_verify).

Supports automatic detection of input format via image_source parameter (recommended):

  • Local file path (e.g. /path/to/image.png)

  • HTTP/HTTPS URL (e.g. https://example.com/image.png)

  • Base64 data URI (e.g. data:image/png;base64,...)

  • Plain base64 string (auto-detected by file header)

Args: image_source: Image source - local file path or remote URL (recommended, auto-detects format) image_path: Local image file path (backward compatible, prefer image_source) task: Analysis task description mode: Analysis mode (general|game_ui|web_ui|error|chart|diagram|design_to_code) need_ocr: Whether to enable OCR need_bbox: Whether to detect element bounding boxes detail_level: Detail level (normal|high) max_tokens: Maximum output tokens image_data: Base64 encoded image data (backward compatible)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNogeneral
taskNo分析这张图片
need_ocrNo
need_bboxNo
image_dataNo
image_pathNo
max_tokensNo
detail_levelNonormal
image_sourceNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses auto-detection of input formats via image_source, lists backward compatibility parameters, and explains the mode options. However, it does not mention side effects, error behavior, or safety profile (e.g., read-only nature), which would be relevant for a tool that processes user-provided images. Still, it adds meaningful behavioral context beyond the schema.

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, front-loaded with the core purpose, followed by usage exclusions, input format guidelines, and an Args list. Every sentence serves a purpose, and the bullet-like format makes it easy to scan. Despite covering 9 parameters, it remains compact and free of fluff.

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 tool's complexity (9 parameters, 0% schema coverage, no annotations), the description provides near-complete context: it covers all parameters, explains the recommended input source, lists mode values, and gives clear sibling distinctions. An output schema exists, so not explaining return values is acceptable. No major gaps remain.

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?

Schema description coverage is 0%, so the description must compensate. It does so thoroughly: every parameter is listed in the Args section with a concise explanation, and image_source gets extra detail with concrete format examples (local path, URL, data URI, plain base64). This adds substantial meaning beyond the bare schema titles.

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 starts with a specific verb and resource: 'Analyze a single image' and lists concrete use cases (screenshot understanding, UI analysis, chart comprehension, error extraction). It explicitly distinguishes from siblings by naming vision_diff and vision_crop_verify as alternatives for excluded tasks, making the tool's purpose unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

The description states clearly when to use ('Use this tool ONLY when the user has an image and wants to understand its content') and when not to use it, naming the alternative tools for two specific excluded scenarios. This provides explicit usage context and differentiation from siblings.

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/rorojiao/local-mmcp'

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