Skip to main content
Glama

get_work_state

Check the current cleaning or charging status of your Ecovacs robot vacuum to monitor its activity and progress.

Instructions

Query robot working status

Args: nickname: Robot nickname, used to find device

Returns: Dict: Dictionary containing robot working status

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nicknameYesRobot nickname, used to find device

Implementation Reference

  • The handler function for the 'get_work_state' tool. It is decorated with @mcp.tool() for registration and executes the API call to retrieve the robot's working state using the 'GetWorkState' command.
    @mcp.tool()
    async def get_work_state(
        nickname: str = Field(description="Robot nickname, used to find device")
    ) -> dict:
        """
        Query robot working status
        
        Args:
            nickname: Robot nickname, used to find device
        
        Returns:
            Dict: Dictionary containing robot working status
        """
        return await call_api(ENDPOINT_ROBOT_CTL, {"nickName": nickname, "cmd": "GetWorkState", "act": ""})

Tool Definition Quality

Score is being calculated. Check back soon.

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

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