Skip to main content
Glama

visual_inspect

Read-only

Captures an app window or full desktop, overlays numbered marks from accessibility and OCR data, and returns an annotated image with clickable Mark IDs for visual grounding.

Instructions

Set-of-Mark (SoM) visual indexing for an app bundle ID or 'desktop' (full screen): captures window/screen, fuses Accessibility + Vision OCR boxes, overlays [m1]..[mN] badges, and returns annotated image (JPEG default or PNG) + clickable Mark IDs. Pass ocr='auto'|'fast'|'accurate'|'off' (default 'auto'), max_marks (1..=150, default 80), format='jpeg'|'png', quality (1..=100), and max_width (640..=2560).

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": {
      "app": "<app>"
    },
    "name": "visual_inspect"
  }
}

Input Schema

NameRequiredDescriptionDefault
appYes
ocrNo
formatNo
windowNo
qualityNo
max_marksNo
max_widthNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover safety (readOnlyHint=true, destructiveHint=false, openWorldHint=false), so the description's added value is the operational behavior: it discloses the capture-and-annotate pipeline, the OCR fusion step, and the exact return payload (JPEG/PNG image plus clickable Mark IDs). It does not mention latency, capture permissions/accessibility-API requirements, or limits on which windows can be captured.

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?

Front-loads the core mechanism and return value, then packs parameter defaults and ranges into a single trailing sentence. It is dense but every clause carries information; the parameter list is a slight wall of text but not padded.

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

Completeness4/5

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

No output schema exists, so the description appropriately describes the return payload (annotated image in JPEG default or PNG, plus Mark IDs). Combined with near-complete parameter documentation, an agent has enough to invoke it correctly; only the 'window' parameter semantics and permission prerequisites remain unstated.

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?

With 0% schema description coverage the description carries the full parameter burden, and it does: ocr enumerated values with default 'auto', max_marks range 1..=150 with default 80, format enum, quality range 1..=100, max_width range 640..=2560, and app as a bundle ID or 'desktop'. Only 'window' is left without a stated meaning, which is a minor residual gap rather than a failure.

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 a specific verb+resource: captures a window or screen for an app bundle ID or 'desktop', fuses Accessibility and Vision OCR boxes, overlays [m1]..[mN] badges, and returns an annotated image plus clickable Mark IDs. That is far more than a restated name and clearly distinguishes it from a plain screenshot. It stops short of naming siblings like screenshot or desktop to explicitly contrast behavior.

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?

Usage is implied by the mechanics: it explains the 'desktop' option covers full screen and that output is an annotated image with mark IDs, which hints at when this beats a raw screenshot. However, there is no explicit when-to-use/when-not statement or named alternative for capturing without marks.

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