Skip to main content
Glama
nonead

nUR MCP Server

by nonead

get_joint_temperatures

Retrieve temperature readings in Celsius for all robot joints to monitor thermal conditions and prevent overheating during operation.

Instructions

获取指定IP机器人各关节的温度(摄氏度)。 IP:机器人地址

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ipYes

Implementation Reference

  • The @mcp.tool() decorated handler function that implements get_joint_temperatures by calling JointTemperatures() on the UR robot model instance for the given IP, after checking connection.
    @mcp.tool()
    def get_joint_temperatures(ip: str):
        """获取指定IP机器人各关节的温度(摄氏度)。
        IP:机器人地址"""
        try:
            if '连接失败' in link_check(ip):
                return return_msg(f"与机器人的连接已断开。")
            logger.info(f"{robotModle_list[ip].JointTemperatures()}(摄氏度)")
            return return_msg(f"{robotModle_list[ip].JointTemperatures()}(摄氏度)")
        except Exception as e:
            logger.error(f"机器人各关节的温度获取失败: {str(e)}")
            return return_msg(f"机器人各关节的温度获取失败: {str(e)}")
  • The @mcp.tool() decorator registers this function as an MCP tool.
    @mcp.tool()

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