Skip to main content
Glama

analyze_image

Analyze images to generate structured JSON, enabling coding agents to interpret screenshots, UI mockups, and documents for automated tasks.

Instructions

Analyze a general image and return structured JSON for a coding agent.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
taskNoOptional analysis task.
file_idNofile_id returned by PUT /upload. Preferred over image_base64 to avoid corruption of large base64 in the tool-call path. Persistent across restarts, content-deduplicated.
mime_typeNoMIME type. Required with image_base64; ignored (uses stored value) with file_id.image/png
image_base64NoRaw base64-encoded image bytes, without a data: URL prefix. Prefer file_id for large images.
output_formatNojson
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It only promises 'structured JSON', which conflicts with the output_format parameter allowing markdown or text, and it does not mention whether the operation is read-only, any auth needs, or how the image is supplied.

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?

One sentence, front-loaded with the core purpose, and no filler. It is an appropriate size for the limited information provided.

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

Completeness2/5

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

With five optional parameters, no output schema, no annotations, and a family of specialized sibling tools, the description is too thin. It leaves unclear when to prefer this tool over analyze_ui_screenshot or analyze_chart_image, what the JSON structure looks like, and how output_format changes returned data.

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 80%, and the parameter descriptions already explain file_id advantages, MIME handling, and output_format choices. The tool description adds no extra parameter semantics, so the baseline score of 3 is appropriate.

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?

States 'Analyze a general image' with a specific verb and resource, and the word 'general' sets it apart from specialized siblings like extract_text_from_image or analyze_chart_image. However, it does not specify what kinds of analysis are performed or what the returned structured JSON contains.

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?

The phrase 'general image' implies broad use compared to specialized alternatives, providing implicit guidance. But there is no explicit when-to-use/when-not-to-use, no named alternative tools, and no mention of trade-offs like file_id versus image_base64 beyond the schema.

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/xyun1996/ocular'

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