Skip to main content
Glama
Keyboard Maestro MCP Server

Keyboard Maestro MCP Server

by akari2600

trigger_macro

Run a Keyboard Maestro macro by name or UUID on a configured remote Mac; pass an optional value and retrieve clipboard results afterward when a macro produces output.

Instructions

Trigger a Keyboard Maestro macro by name or UUID. The macro runs on the remote machine.

IMPORTANT: Keyboard Maestro's web server does not return macro output directly. If you need to retrieve results from a macro:

  • For macros that capture screenshots or copy data to clipboard: call get_clipboard_result afterward to retrieve the clipboard contents

  • For macros that write to files: the files are saved on the remote machine

Common patterns:

  • Screenshot workflow: trigger_macro("Take Screenshot...") → get_clipboard_result() to see the image

  • Text capture: trigger_macro("Copy Selection") → get_clipboard_result() to get the text

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": {
      "macro": "<macro>"
    },
    "name": "trigger_macro"
  }
}

Input Schema

NameRequiredDescriptionDefault
macroYesThe macro name or UUID to trigger
valueNoOptional value to pass to the macro (available as %TriggerValue% in the macro)
machineNoName of the machine to trigger the macro on (defaults to first configured machine)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.6/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden, and it does disclose the critical non-obvious behavior that output is not returned and files land on the remote machine. It says nothing about execution timing (sync vs async), failure behavior for unknown macro names, or permission requirements on the remote host, which matters for a fire-and-forget trigger.

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 in the first sentence and then uses short labeled sections and bulleted patterns that each add usable information. Slightly verbose since the clipboard-retrieval point is stated twice (once in the IMPORTANT block and again in the patterns).

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

Completeness4/5

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

With no annotations and no output schema, the description supplies the return-path story that an agent otherwise could not know. It is nearly complete for a trigger tool, missing only error and synchronization behavior when a macro fails or is long-running.

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 100%, so all three parameters are already documented, including that value becomes %TriggerValue% and that machine defaults to the first configured machine. The description only adds that the macro executes on the remote machine, which is marginal meaning beyond the schema.

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 ("Trigger a Keyboard Maestro macro by name or UUID") plus where it executes ("runs on the remote machine"). It doesn't distinguish itself from the sibling trigger_and_capture, which likely covers the combined trigger-and-fetch case, so it falls short of full sibling differentiation.

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?

Gives explicit usage context: the web server does not return output, so follow up with get_clipboard_result for clipboard-based macros. It also names concrete workflow patterns (screenshot, text capture). It stops short of stating when not to use it or naming any alternative tool to call instead.

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