Skip to main content
Glama
appleton
by appleton

robovac_get_error_code

Retrieve the current error code of the Eufy RoboVac to diagnose issues. Optionally force a refresh of cached data for accurate status.

Instructions

Get the current error code of the robovac

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
forceNoForce refresh of cached data

Implementation Reference

  • src/server.ts:179-192 (registration)
    Tool registration including name, description, and input schema definition.
    { name: "robovac_get_error_code", description: "Get the current error code of the robovac", inputSchema: { type: "object", properties: { force: { type: "boolean", description: "Force refresh of cached data", default: false, }, }, }, },
  • The main handler function for executing the robovac_get_error_code tool. Ensures RoboVac is initialized, retrieves the error code (optionally forcing refresh), and formats the response.
    case "robovac_get_error_code": this.ensureRoboVacInitialized(); const errorCode = await this.robovac!.getErrorCode( args?.force as boolean ); return { content: [ { type: "text", text: `Error Code: ${errorCode}`, }, ], };
  • Helper method called by the handler to ensure the RoboVac instance is initialized before executing tool logic.
    private ensureRoboVacInitialized(): void { if (!this.robovac) { throw new Error( "RoboVac not initialized. Please run robovac_auto_initialize or robovac_connect first." ); } }
  • Input schema definition for the 'force' parameter.
    force: { type: "boolean", description: "Force refresh of cached data", default: false, }, },

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