Skip to main content
Glama
VetCoders

automator-mcp

by VetCoders

system_automation

Execute system-level automation tasks on macOS, including managing files, controlling displays, capturing screenshots, and toggling system settings through predefined commands.

Instructions

Perform system-level automation tasks

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
taskYesSystem task to perform
parametersNoTask-specific parameters

Implementation Reference

  • The main handler function for the 'system_automation' tool. It maps tasks to AppleScript commands and executes them using runAppleScript.
    async runSystemAutomation(args) {
      const { task, parameters = {} } = args;
      
      const systemTasks = {
        empty_trash: 'tell application "Finder" to empty trash',
        show_desktop: 'tell application "Finder" to reveal desktop',
        hide_all_apps: 'tell application "System Events" to set visible of every process to false',
        sleep_display: 'do shell script "pmset displaysleepnow"',
        take_screenshot: 'do shell script "screencapture -i ~/Desktop/screenshot.png"',
        start_screensaver: 'tell application "System Events" to start current screen saver',
        toggle_dark_mode: `
          tell application "System Events"
            tell appearance preferences
              set dark mode to not dark mode
            end tell
          end tell
        `,
        get_system_info: `
          set sysInfo to system info
          return (computer name of sysInfo) & " - " & (system version of sysInfo)
        `,
      };
      
      if (systemTasks[task]) {
        return await this.runAppleScript(systemTasks[task]);
      }
      
      throw new Error(`Unknown system task: ${task}`);
    }
  • The tool schema registration, including name, description, and input schema definition for 'system_automation'.
    {
      name: 'system_automation',
      description: 'Perform system-level automation tasks',
      inputSchema: {
        type: 'object',
        properties: {
          task: {
            type: 'string',
            enum: [
              'empty_trash',
              'show_desktop',
              'hide_all_apps',
              'sleep_display',
              'take_screenshot',
              'start_screensaver',
              'toggle_dark_mode',
              'get_system_info',
            ],
            description: 'System task to perform',
          },
          parameters: {
            type: 'object',
            description: 'Task-specific parameters',
          },
        },
        required: ['task'],
      },
    },
  • src/index.js:190-191 (registration)
    Dispatch case in the CallToolRequestSchema handler that routes 'system_automation' calls to the runSystemAutomation method.
    case 'system_automation':
      return await this.runSystemAutomation(args);

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.1/5.0
Behavior2/5

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

No annotations exist, and the description provides no behavioral details such as destructive effects, permissions, or side effects. For a tool with tasks like empty_trash, this is a critical gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is short but overly generic; it does not earn its place by providing useful information. It could be more detailed without losing conciseness.

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

Completeness1/5

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

Given the complexity of the tool (8 enum tasks, a nested object parameter, no output schema), the description is completely inadequate. It fails to inform the agent about available tasks or how to use parameters.

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 the description does not need to add much. However, it adds no extra meaning beyond the schema's brief descriptions for task and parameters.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description is vague: 'Perform system-level automation tasks' does not specify which tasks, and does not distinguish from sibling tools like quick_action or run_applescript. It lacks a specific verb and resource.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use this tool versus alternatives. No context about prerequisites or conditions.

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