Skip to main content
Glama

vision_inspect

Inspects local image files or live window/desktop screenshots with Gemini Vision to return text analysis and real pixel coordinates, enabling reliable GUI automation and optional auto-click.

Instructions

Inspect a local image file (imagePath) OR a live window/desktop screenshot locally using Gemini Flash Vision API (requires GEMINI_API_KEY), returning pure-text analysis and real pixel coordinates (pixelCoords, converted from 0~1000 normalized model coordinates). Bypasses MCP clients that strip image blocks and recognizes stylized fonts/icons that WinRT OCR misses. Set click=true to auto-click the converted pixelCoords.

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": "vision_inspect"
  }
}

Input Schema

NameRequiredDescriptionDefault
pidNo
clickNo
modelNogemini-3.5-flash-lite
promptYes
imagePathNo
window_idNo
maxDimensionNo
delivery_modeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/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 burden and does disclose important traits: it calls an external Gemini Flash Vision API, requires GEMINI_API_KEY, returns pure text rather than image blocks, and normalizes coordinates from a 0~1000 model space to real pixels. However, the consequential side effect of click=true (mouse movement/actual UI mutation) and prerequisites for window capture are only hinted at, not fully spelled out.

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 dense, front-loaded sentences with no filler, and the key differentiators and the click behavior come early. The phrasing is technical and packed with parentheticals, which slightly increases parsing cost but not waste.

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?

For an 8-parameter tool with no annotations and no output schema, the description covers the operating mode and return shape adequately, but leaves half the parameters and the window-targeting prerequisites unexplained. An agent could invoke it for the file case confidently but would be guessing for live-window capture and click behavior.

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 0%, so the description must compensate for all 8 parameters, and it only explains imagePath, click, and the coordinate concept. pid, window_id, maxDimension, and delivery_mode are entirely undocumented, and the description never says which parameter selects window capture versus file capture.

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?

States a specific verb (inspect) and two concrete input modes (a local imagePath file or a live window/desktop screenshot), plus what comes back (text analysis and real pixelCoords). It also differentiates itself from OCR-style siblings by noting it recognizes stylized fonts/icons that WinRT OCR misses.

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?

Gives clear context for when this is the right call: when an MCP client strips image blocks, when OCR fails on stylized text, or when pixel coordinates are needed for clicking. It stops short of naming an explicit alternative tool or stating when not to use it.

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