Skip to main content
Glama

get_output_int_register

Retrieve the integer register value from a Universal Robot by specifying its IP address and register index (0 to 23) using the nUR MCP Server.

Instructions

获取指定IP机器人Int寄存器的值, IP:机器人地址 index:寄存器下标,范围是[0,23]

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
indexYes
ipYes

Implementation Reference

  • The handler function for the 'get_output_int_register' MCP tool. It is decorated with @mcp.tool(), which registers it automatically. The function checks the robot connection via link_check, retrieves the integer output register value using the URBasic robot model, and returns it as a JSON string.
    @mcp.tool() def get_output_int_register(ip: str, index: int): """获取指定IP机器人Int寄存器的值, IP:机器人地址 index:寄存器下标,范围是[0,23]""" try: if '连接失败' in link_check(ip): return return_msg(f"与机器人的连接已断开。") return return_msg(f"{robotModle_list[ip].OutputIntRegister(index)}") except Exception as e: logger.error(f"Int寄存器的值获取失败: {str(e)}") return return_msg(f"Int寄存器的值获取失败: {str(e)}")
  • The @mcp.tool() decorator registers the get_output_int_register 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