Class: HTM::MCP::GetGroupStatusTool
- Inherits:
-
FastMcp::Tool
- Object
- FastMcp::Tool
- HTM::MCP::GetGroupStatusTool
- Defined in:
- lib/htm/mcp/group_tools.rb
Overview
Tool: Get detailed group status
Instance Method Summary collapse
Instance Method Details
#call(name:) ⇒ Object
123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 |
# File 'lib/htm/mcp/group_tools.rb', line 123 def call(name:) Session.logger&.info "GetGroupStatusTool called: name=#{name.inspect}" group = GroupSession.get_group(name) unless group return { success: false, error: "Group '#{name}' not found in this session" }.to_json end status = group.status sync_stats = group.sync_stats Session.logger&.info "GetGroupStatusTool complete: #{name}" { success: true, group_name: name, status: status, sync_stats: sync_stats }.to_json end |