Skip to main content
Glama

chat_with_vision

Ask questions or give instructions to analyze one or more images using a Grok vision model. Supports local files and public URLs.

Instructions

Analyze one or more images with a Grok vision model.

Accepts local image paths and/or public URLs in the same call. Local images
are sent as base64 data URIs (JPG/JPEG/PNG only, max 20 MiB each).

Args:
    prompt: Question or instruction about the image(s).
    session: Optional session name for persistent history in `chats/{session}.json`.
    model: Vision-capable Grok model (default `grok-4.3`).
    image_paths: Local image file paths to analyze.
    image_urls: Public image URLs to analyze.
    detail: Image detail level. One of `"auto"`, `"low"`, or `"high"`.
    show_usage: Append a token usage and cost footer to the reply (default False).

Returns:
    The model's textual answer about the image(s).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelNogrok-4.3
detailNoauto
promptYes
sessionNo
image_urlsNo
show_usageNo
image_pathsNo
Behavior4/5

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

With no annotations, the description carries full burden. It discloses that local images are sent as base64, including format (JPG/JPEG/PNG) and size limit (20 MiB). It also states the return is a textual answer. However, it does not mention any side effects, authentication, or privacy implications.

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?

The description is well-structured with a summary line, then details on image handling, followed by a parameter list. It is front-loaded with the core purpose. While comprehensive, it could be slightly more concise, but every sentence adds value.

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 explains the return value but does not clarify that at least one image source is needed (images are optional in schema). It also lacks details on constraints like maximum number of images or error handling. Given that no output schema exists, more completeness would be beneficial.

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 coverage is 0%, so the description must add meaning. It provides clear explanations for each parameter, such as image_paths (local paths), image_urls, detail (with valid values), and show_usage. This fully compensates for the lack of schema descriptions.

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 the tool analyzes images with a Grok vision model, specifying it accepts both local paths and URLs. It distinguishes itself from siblings like 'chat' (text-only) and 'chat_with_files' (general files) by focusing specifically on vision 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?

The description implies the tool is for analyzing images but does not explicitly state when to use it over alternatives or any prerequisites. It lacks guidance on scenarios where image analysis is required, leaving it to inference from the tool name and description.

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/merterbak/Grok-MCP'

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