Skip to main content
Glama
Omni-Desktop-MCP

Omni-Desktop-MCP

by yangdw2024

desktop_observe

Observe desktop state to retrieve window lists, UI Automation trees, OCR text, hybrid UIA+OCR data, or annotated screenshots with grid overlays and template matching for AI-driven automation.

Instructions

Observe desktop state: list windows (mode='windows'), fast COM UIA tree (mode='tree', diff=true), adaptive RapidOCR/WinRT OCR (mode='ocr'), UIA+OCR (mode='hybrid'), or annotated screenshot (mode='screenshot'). Supports background PrintWindow capture, OpenCV multi-scale template_path matching, SoM grid=true overlay, and zoom_scale.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "desktop_observe"
  }
}

Input Schema

NameRequiredDescriptionDefault
diffNo
gridNo
modeNotree
regionNo
windowNo
annotateNo
ocr_langNoauto
grid_colsNo
grid_rowsNo
thresholdNo
ocr_engineNoauto
zoom_scaleNo
max_elementsNo
include_imageNo
template_pathNo
background_captureNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.2/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. It does disclose implementation traits an agent could not guess from the schema: background PrintWindow capture, UIA tree diffing, OpenCV multi-scale template matching, SoM grid overlay, and zoom scaling. It omits the most consequential behaviors: that it captures screen content and may return an image, whether the operation is read-only/non-destructive, and what the response looks like for each mode.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The mode list is well front-loaded and the whole definition fits in two sentences, which is appropriate. But the second sentence degenerates into an unexplained feature dump ('SoM grid=true overlay', 'zoom_scale') whose terms do no work unless the reader already knows the parameters.

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?

For a 16-parameter, multi-modal observation tool with no annotations and no output schema, the description should establish what each mode returns and how the many parameters interact. It instead gives a feature inventory, leaving an agent unable to predict output shape (image, JSON tree, text) or the effect of most parameters.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Sixteen parameters with 0% schema description coverage means the description has to explain them, and it covers only a handful by name (mode values, diff, template_path, grid, zoom_scale) without explaining semantics — 'diff=true' is never said to mean change-only results. Critical parameters such as window, region, threshold, max_elements, annotate, include_image, background_capture, ocr_engine, grid_rows/cols, and ocr_lang are entirely unexplained in both schema and description.

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 opens with a specific verb+resource ('Observe desktop state') and enumerates the five mutually exclusive modes with their identifiers, so an agent knows exactly what the tool produces in each case. It does not explicitly contrast itself with desktop_act or desktop_status, which is the only thing keeping it from a 5.

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?

Mode names ('windows', 'tree', 'ocr', 'hybrid', 'screenshot') strongly imply when each path is appropriate, and the parenthetical qualifiers ('fast COM UIA tree', 'adaptive OCR') hint at tradeoffs. However, it never states a selection rule ('use windows first to locate a handle, then tree for elements') and never says when to prefer this tool over desktop_act.

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