Skip to main content
Glama

stop_data_recording

Terminates active data recording sessions for Universal Robots collaborative robots by specifying a session ID, ensuring controlled data collection management.

Instructions

停止数据记录 参数: - session_id: 记录会话ID 返回: - 停止状态

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_idYes

Implementation Reference

  • The handler function for the 'stop_data_recording' tool, decorated with @mcp.tool() which registers it. It checks if the advanced data recorder is initialized, calls stop_recording on the given session_id, and returns success or failure message.
    @mcp.tool() def stop_data_recording(session_id: str): """ 停止数据记录 参数: - session_id: 记录会话ID 返回: - 停止状态 """ try: if advanced_data_recorder is None: return return_msg("高级数据记录器未初始化") # 停止记录 success = advanced_data_recorder.stop_recording(session_id) if success: return return_msg({"success": True, "message": "数据记录已停止"}) else: return return_msg({"success": False, "message": "停止数据记录失败,会话不存在"}) except Exception as e: logger.error(f"停止数据记录失败: {str(e)}") return return_msg(f"停止数据记录失败: {str(e)}")
  • The @mcp.tool() decorator registers the stop_data_recording 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