Skip to main content
Glama
waystation-ai

WayStation MCP Server

Official

openWayStation

Launch the WayStation desktop application to connect MCP hosts with productivity tools through a no-code integration hub.

Instructions

Call this action when users says 'Open WayStation'. Opens the WayStation desktop application

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler for the 'openWayStation' tool. Platform-specific logic to open the WayStation desktop application (Windows: exec start, macOS: AppleScript), handles onboarding and config dir.
        } else if (request.params.name === "openWayStation") {
            try {
                // Create config directory if it doesn't exist
                const configDir = getWayStationPath();
                fs.mkdirSync(configDir, { recursive: true });
                
                // Check and update onboarding state
                const onboardingFile = getWayStationPath('onboarding_completed');
                const onboardingCompleted = fs.existsSync(onboardingFile);
                
                if (!onboardingCompleted) {
                    fs.writeFileSync(onboardingFile, 'true');
                }
                
                // Platform-specific code to open WayStation
                if (os.platform() === 'win32') {
                    // Windows: Use start command to open WayStation
                    try {
                        const programFiles = process.env['ProgramFiles'] || 'C:\\Program Files';
                        const wayStationPath = path.join(programFiles, 'WayStation', 'WayStation.exe');
                        execSync(`start "" "${wayStationPath}"`, { shell: 'cmd.exe' });
                    } catch (innerError) {
                        throw new Error(`Failed to open WayStation on Windows: ${innerError instanceof Error ? innerError.message : String(innerError)}`);
                    }
                } else if (os.platform() === 'darwin') {
                    // macOS: Use AppleScript to activate WayStation
                    const applescript = `tell application "WayStation" to activate
    delay 0.5
    
    tell application "System Events"
        -- Get the WayStation window
        set wayProcess to application process "WayStation"
    
        -- If WayStation has windows and is running, bring it to front
        if (exists wayProcess) and (count of windows of wayProcess) > 0 then
            set frontmost of wayProcess to true
        end if
    end tell`;
                    
                    // Function to escape only double quotes in AppleScript
                    function escapeAppleScriptString(str: string): string {
                        return str.replace(/"/g, '\\"');
                    }
                    
                    execSync(`osascript -e "${escapeAppleScriptString(applescript)}"`);
                } else {
                    throw new Error(`Unsupported platform: ${os.platform()}`);
                }
                
                return { 
                    error: false, 
                    content: [{ 
                        type: "text", 
                        text: "WayStation app has been opened successfully." 
                    }] 
                };
            } catch (error) {
                return { 
                    error: true, 
                    content: [{ 
                        type: "text", 
                        text: `Error opening WayStation: ${error instanceof Error ? error.message : String(error)}` 
                    }] 
                };
            }
        }
  • src/index.ts:99-107 (registration)
    Registration of the 'openWayStation' tool in the tools list response, with description and input schema.
    {
        name: "openWayStation",
        description: "Call this action when users says 'Open WayStation'. Opens the WayStation desktop application",
        inputSchema: {
            type: "object",
            properties: {},
            required: []
        }
    }
  • Helper function getWayStationPath used to determine config and token paths for WayStation on different platforms.
    function getWayStationPath(fileName?: string): string {
        const basePath = os.platform() === 'win32'
            ? path.join(process.env.APPDATA || '', 'WayStation')
            : path.join(os.homedir(), '.waystation');
        
        return fileName ? path.join(basePath, fileName) : basePath;
    }
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the tool opens a desktop application, implying a system-level action, but doesn't disclose potential side effects (e.g., launching an external app, permissions required, or error handling). For a tool with zero annotation coverage, this leaves significant behavioral gaps.

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?

The description is two concise sentences that front-load the trigger condition and outcome with zero wasted words. Every sentence earns its place by providing essential usage and purpose information efficiently.

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?

Given the tool's simplicity (zero parameters, no output schema, no annotations), the description covers the basic purpose and usage trigger adequately. However, it lacks details on behavioral aspects like what happens if the application is already open or fails to launch, which would be helpful for a system-interaction tool with no annotation support.

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?

The tool has zero parameters with 100% schema description coverage, so the schema fully documents the lack of inputs. The description doesn't need to add parameter semantics, and it appropriately doesn't mention any parameters, aligning with the schema. A baseline of 4 is applied for zero-parameter tools.

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?

The description clearly states the action ('Call this action when users says "Open WayStation"') and the outcome ('Opens the WayStation desktop application'), providing a specific verb+resource combination. However, it doesn't explicitly differentiate from sibling tools like 'helloWayStation', which might be related but serves a different purpose.

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?

The description provides explicit guidance on when to use this tool ('when users says "Open WayStation"'), offering clear context for invocation. It doesn't specify when not to use it or name alternatives, but the trigger condition is well-defined for this zero-parameter tool.

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

Install Server

Other Tools

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/waystation-ai/mcp'

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