Skip to main content
Glama
appleton
by appleton

robovac_get_error_code

Retrieve the current error code from your Eufy RoboVac to diagnose and troubleshoot cleaning issues.

Instructions

Get the current error code of the robovac

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
forceNoForce refresh of cached data

Implementation Reference

  • The handler logic for the robovac_get_error_code tool. Ensures the RoboVac instance is initialized, calls getErrorCode with optional force parameter, and returns the error code in the tool 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}`, }, ], };
  • src/server.ts:179-192 (registration)
    Registration of the robovac_get_error_code tool in the listTools response, 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, }, }, }, },
  • Helper method called by the handler to ensure the RoboVac instance is initialized before executing the tool.
    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