Skip to main content
Glama

scan_app_ui

Inspects the UI control tree of a Linux desktop application by app ID so AI assistants can identify available controls for semantic interaction.

Instructions

Scan UI controls of a desktop application

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_id": "<app_id>"
    },
    "name": "scan_app_ui"
  }
}

Input Schema

NameRequiredDescriptionDefault
app_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.8/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden and does not meet it. It does not state whether the app must be running or will be launched, whether the operation is read-only and side-effect free, what happens on failure, or whether the scan is expensive — all materially important for a desktop automation tool.

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 front-loaded sentence with no wasted words; the resource is stated immediately. It is efficient, though its brevity is part of the under-specification problem rather than a stylistic strength.

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 existence of an output schema relieves the description of explaining return values, which keeps it from being lower. However, for a no-annotation tool with an undocumented required parameter, coverage of preconditions and invocation context is incomplete.

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?

Schema coverage is 0% and the single required parameter app_id is undocumented in both schema and description. The description never says where an app_id comes from (presumably list_desktop_apps) or what format it takes, so the agent must guess how to obtain a valid value.

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 gives a specific verb and resource: 'Scan UI controls of a desktop application', which makes it clearly distinct from siblings like list_desktop_apps, click_control, and set_text. It stops short of differentiating from any specific sibling or stating scope (full tree vs. visible controls only), so it lands just below the top.

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 when-to-use guidance: it does not say whether this must precede interaction tools like click_control or set_text, whether the app must already be running, or when to prefer it over alternatives. The agent must infer workflow placement entirely.

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