Skip to main content
Glama

app_show_menu

Open the context menu (or pop-up menu) of an element of the latest app_snapshot, as a right-click does. 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_show_menu"
  }
}

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 past the annotations (readOnlyHint=false, destructiveHint=false, openWorldHint=false) by disclosing the return contract (new app state plus next snapshotId, no extra snapshot required), the no-op failure mode with a retry path, and the warning that a sent action is not proof of success. It also states permission requirements (ui and process, noting operating apps can run programs), which is real authorization context the annotations do not carry.

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 action and every sentence carries distinct information (behavior, return value, failure/retry, caveat, permissions) with no filler. The final permission sentence is compressed to the point of being terse, but nothing is redundant.

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 mutation tool with five parameters and no output schema, the description supplies the return shape, the staleness guard, the retry recipe, and the permission model. An agent has everything needed to call it and to recover from the expected error case.

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%, so the description has to carry some weight, and it does: it establishes that snapshotId must be the latest snapshot and that the returned next snapshotId should be used to retry. deviceId, takeOver, and workSessionId are left entirely to the schema text, so the compensation is partial rather than complete.

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?

Names a specific verb (open) applied to a specific resource (the context/pop-up menu of an element), then disambiguates with the 'as a right-click does' analogy, which separates it from app_press and app_select. It also pins the target to the latest app_snapshot, so an agent knows exactly which state it acts on.

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?

Preconditions are stated clearly: the element must come from the latest snapshot, and the call is void if the window changed or a person interacted since. What's missing is explicit routing to alternatives (e.g. use app_press for a left-click/activation), so the agent must infer the boundary from the sibling name alone.

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