Skip to main content
Glama

Click element

click

Activates the element at element_index from the last app state, enabling interaction with Windows desktop application UI controls.

Instructions

Click the element at element_index from the last get_app_state of this app.

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>",
      "element_index": "<element_index>"
    },
    "name": "click"
  }
}

Input Schema

NameRequiredDescriptionDefault
appYes
element_indexYesElement index from the last get_app_state, as a string

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

The readOnlyHint=false annotation already tells the agent this mutates state, so the description adds little on safety. It does convey the important lifecycle fact that indices are tied to the most recent get_app_state, but it does not say what happens if the index is stale or the click triggers navigation requiring a fresh state.

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

Conciseness5/5

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

A single front-loaded sentence with zero filler. The critical scoping information (index provenance and app scoping) is stated up front without redundancy.

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 a two-parameter action tool with no output schema, the definition covers the essential call contract. It still leaves gaps an agent would care about: the expected form of the app identifier and whether state must be refreshed after the click.

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 coverage is 50%: element_index is documented in the schema, while app is not. The description partially compensates by clarifying that element_index comes from the last get_app_state for this app, but it adds no meaning for app (what identifier form, how it relates to list_apps).

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 and resource: click the element at element_index. It also anchors the index to a named sibling (get_app_state) for a specific app, which lets an agent tell it apart from a generic browser click. It does not explicitly contrast with the similarly named browser_click sibling.

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?

The phrasing 'from the last get_app_state of this app' implies a mandatory prerequisite ordering, which is useful guidance. However, there is no statement of when to prefer this over browser_click, and no exclusion for cases where an element must be located by selector instead.

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