Skip to main content
Glama

analyze_image

Inspect an image with OpenRouter or Google Gemini vision models to extract details about text, faces, objects, colors, and layout; optionally choose provider or model.

Instructions

Analyze an image using OpenRouter or Google Gemini vision models

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": {
      "image_path": "<image_path>"
    },
    "name": "analyze_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNoSpecific model to use (optional - overrides environment default)
promptNoWhat to analyze about the image
providerNoAI provider to use (openrouter or gemini). If not specified, will auto-detect based on available API keys
image_pathYesPath to the image file

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

C2.9/5.0
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 behavioral burden. It reveals the provider choice and the existence of an environment-default model, but says nothing about cost, latency, rate limits, API key requirements, error behavior, or whether the image is uploaded externally — meaningful gaps for a tool that sends local image files to third-party vision APIs.

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?

A single short sentence with no filler and the resource front-loaded. It is efficient, though its brevity is also the source of the missing guidance rather than a virtue of tight editing.

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 schema fully covers parameters and there is no output schema to explain, but with zero annotations and two close siblings, the description should say more about when this tool applies versus the alternatives. Adequate for calling the tool, insufficient for choosing it confidently.

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%, so the schema already documents all four parameters, including the provider enum and the auto-detect fallback. The description adds nothing parameter-specific beyond naming the two providers, so the baseline of 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 specific verb and resource ('Analyze an image') and names the supported providers (OpenRouter, Google Gemini vision models). It does not distinguish itself from the siblings 'focused_analyze_image' or 'describe_image', so the agent must infer the difference, but the core purpose is unambiguous.

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

Usage Guidelines2/5

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

There is no guidance on when to use this tool rather than 'focused_analyze_image' or 'describe_image', nor any stated prerequisites. The only usage hint is indirect, embedded in the provider parameter description about auto-detection of API keys, which lives in the schema rather than the description.

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