Skip to main content
Glama
appleton
by appleton

robovac_get_work_mode

Retrieve the current work mode of the Eufy RoboVac vacuum cleaner, with an option to force refresh cached data for accurate status updates.

Instructions

Get the current work mode of the robovac

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
forceNoForce refresh of cached data

Implementation Reference

  • The handler logic for the robovac_get_work_mode tool. Ensures RoboVac is initialized, fetches the current work mode (with optional force refresh), and returns it as a text response.
    case "robovac_get_work_mode": this.ensureRoboVacInitialized(); const workMode = await this.robovac!.getWorkMode( args?.force as boolean ); return { content: [ { type: "text", text: `Work Mode: ${workMode}`, }, ], };
  • src/server.ts:193-206 (registration)
    Tool registration in the ListTools response, defining the name, description, and input schema for robovac_get_work_mode (optional 'force' boolean parameter).
    { name: "robovac_get_work_mode", description: "Get the current work mode of the robovac", inputSchema: { type: "object", properties: { force: { type: "boolean", description: "Force refresh of cached data", default: false, }, }, }, },
  • Input schema definition for the robovac_get_work_mode tool, specifying an optional 'force' boolean to refresh cached data.
    inputSchema: { type: "object", properties: { force: { type: "boolean", description: "Force refresh of cached data", default: false, }, }, }, },
  • Helper method used by the handler to ensure the RoboVac instance is initialized before calling tool logic.
    private ensureRoboVacInitialized(): void { if (!this.robovac) { throw new Error( "RoboVac not initialized. Please run robovac_auto_initialize or robovac_connect first." ); } }

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/appleton/sam'

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