Skip to main content
Glama

activate_menu_item

Destructive

Activate a global app-menu item by its index from get_app_state. Uses DBusMenu/GMenu when the app exposes a menu model, independent of AT-SPI roles.

Instructions

Activate a global app-menu item from get_app_state. Uses DBusMenu/GMenu when the app exposes a menu model; this is independent of AT-SPI menu roles.

Input Schema

NameRequiredDescriptionDefault
appYesApp name, Hyprland class/title, pid, or address:0x... selector.
menu_indexYesGlobal menu item id from get_app_state, for example menu:12.
confirmation_tokenNoExternally approved, one-time challenge ID from request_confirmation for a high-risk action.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and openWorldHint=true, so the risk profile is largely carried structurally. The description usefully adds a failure condition (only works when the app exposes a menu model), but omits the high-risk confirmation flow and what activation actually triggers upstream.

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?

Two tight sentences, no filler, with the action and its data source front-loaded before the mechanism caveat. Every clause carries information.

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?

No output schema exists, so the description should carry more burden for this destructive mutation. It covers mechanism and the app-menu-model precondition, but leaves the confirmation_token requirement and the likely effect of activation unexplained for an agent deciding how to call it.

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 description coverage is 100%, so all three parameters are already documented, including app selectors and the menu:12 id format. The description only reinforces the provenance of menu_index and adds nothing about the confirmation_token beyond what the schema states.

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+resource ('activate a global app-menu item') and names get_app_state as the source of the item id, plus the underlying mechanism (DBusMenu/GMenu). It clarifies it is not the AT-SPI menu path, though it does not contrast itself against a specific sibling tool by name.

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?

Usage is implied through the dependency on get_app_state ('menu item id from get_app_state'), so an agent can infer the intended workflow. There is no explicit when-to-use/when-not guidance, and no mention of when the confirmation_token path is required.

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