Skip to main content
Glama

show_moom_menu

Display the Moom popup menu to access and manage window layout controls on macOS through Claude Desktop.

Instructions

Show the Moom popup menu

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main execution logic for the 'show_moom_menu' tool. It runs an AppleScript that tells System Events to click the Moom menu bar item (menu bar item 1 of menu bar 2), displaying the popup menu. Returns a markdown content block with success or error message.
    async showMoomMenu() { const script = ` tell application "System Events" tell process "Moom" try -- Click on the Moom menu bar icon click menu bar item 1 of menu bar 2 return "Moom menu is now visible" on error errMsg return "Error showing Moom menu: " & errMsg end try end tell end tell `; try { const result = await this.runAppleScript(script); return { content: [ { type: 'text', text: result, }, ], }; } catch (error) { return { content: [ { type: 'text', text: `Error: ${error.message}`, }, ], }; } }
  • src/index.js:74-81 (registration)
    Tool registration in the ListToolsRequestHandler response. Defines the tool name, description, and input schema (empty object since no parameters required).
    { name: 'show_moom_menu', description: 'Show the Moom popup menu', inputSchema: { type: 'object', properties: {}, }, },
  • Dispatch logic in the CallToolRequestHandler switch statement that routes 'show_moom_menu' tool calls to the showMoomMenu() handler method.
    case 'show_moom_menu': return await this.showMoomMenu();

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/itrimble/moom-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server