Skip to main content
Glama
nonead

nUR MCP Server

by nonead

get_serial_number

Retrieve the serial number of a Universal Robots collaborative robot by providing its IP address. This tool enables identification and verification of industrial robots within the nUR MCP Server system.

Instructions

获取指定IP机器人的序列号 IP:机器人地址

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ipYes

Implementation Reference

  • The MCP tool handler function for 'get_serial_number'. It checks the robot connection via link_check, sends the 'ur_serial_number' command to the robot's DashboardClient, logs and returns the serial number from the response.
    @mcp.tool()
    def get_serial_number(ip: str):
        """获取指定IP机器人的序列号
        IP:机器人地址"""
        try:
            if '连接失败' in link_check(ip):
                return return_msg(f"与机器人的连接已断开。")
            robot_list[ip].robotConnector.DashboardClient.ur_serial_number()
            logger.info(f"IP为{ip}的优傲机器人的序列号为: {robot_list[ip].robotConnector.DashboardClient.last_respond}")
            return return_msg(
                f"IP为{ip}的优傲机器人的序列号为: {robot_list[ip].robotConnector.DashboardClient.last_respond}")
        except Exception as e:
            logger.error(f"获取序列号失败: {str(e)}")
            return return_msg(f"获取序列号失败: {str(e)}")

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/nonead/nUR-MCP-SERVER'

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