Skip to main content
Glama

app_press

Destructive

Press an element of the latest app_snapshot, as clicking it does: a button, menu item, link or checkbox. A press can send, delete or quit, as in the app itself; after a menu command the state is the front window. Returns the app's new state with the next snapshotId, so no extra snapshot is needed. If the window changed, or a person used the keyboard or mouse in the app since the snapshot, nothing is done and the error comes with the current state to retry from. A sent action is not proof the task succeeded. Needs ui and process permission (operating apps can run programs).

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": {
      "snapshotId": "<snapshotId>",
      "elementId": "<elementId>"
    },
    "name": "app_press"
  }
}

Input Schema

NameRequiredDescriptionDefault
deviceIdNoComputer name or id
takeOverNoOnly when the user says so: act even though another conversation is operating this screen, which then holds it no longer.
elementIdYes
snapshotIdYes
workSessionIdNoFrom create_work_session

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / deviceId / description
      Previous value: -"Computer name or id; optional with one computer or a default"New value: +"Computer name or id"
  2. Changed2 schema fields changed
    • changedInput schema / properties / deviceId / description
      Previous value: -"Computer name or id from list_devices. Optional with one computer online or a default set."New value: +"Computer name or id; optional with one computer or a default"
    • changedInput schema / properties / workSessionId / description
      Previous value: -"Work session from create_work_session. Pass the same ID on every call in this conversation; omit for legacy unscoped work."New value: +"From create_work_session"
  3. Changed1 schema field changed
    • addedInput schema / properties / takeOver
      Added value: +{
      +  "description": "Only when the user says so: act even though another conversation is operating this screen, which then holds it no longer.",
      +  "type": "boolean"
      +}
  4. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses that a press can send, delete or quit, that post-menu-command state is the front window, that the call returns the new state plus a next snapshotId so no extra snapshot is needed, that stale-state conditions cause a no-op with the current state returned, and that a sent action is not proof of success. That is precisely the mutation and side-effect context a destructive, open-world tool needs.

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-loaded with the action and its element scope, then behavior, then return value, then failure handling, then permissions. Dense and largely waste-free, though a few clauses ('as in the app itself') are slightly compressed and could read more cleanly.

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

Completeness5/5

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

For a destructive, no-output-schema tool, the description covers the return value (new state plus next snapshotId), the no-op/retry path, side-effect risk, and permission requirements. An agent has everything needed to call it correctly and to interpret the result.

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

Parameters4/5

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

Schema coverage is 60%, and the description supplies the important missing semantics: snapshotId is tied to the latest snapshot and the returned next snapshotId, and elementId refers to an element within that snapshot. deviceId, takeOver and workSessionId are left to their schema descriptions, which is acceptable given they are already documented there.

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 and resource (press an element of the latest app_snapshot) and enumerates concrete element kinds (button, menu item, link, checkbox). The relationship to app_snapshot is explicit, so an agent can tell this is the interaction tool rather than the capture tool.

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?

Clear context for use: press an element that exists in the latest snapshot, with a stated precondition (ui and process permission) and a stated failure mode (window changed or human input since snapshot means nothing is done and you must retry from the returned state). It does not name sibling alternatives such as app_type or app_show_menu, so selection guidance is contextual rather than comparative.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources