Class: ResetTool
- Inherits:
-
MCP::Tool
- Object
- MCP::Tool
- ResetTool
- Defined in:
- lib/reset_tool.rb
Overview
Tool to clear all products from the Firestore collection.
Class Method Summary collapse
Class Method Details
.call ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/reset_tool.rb', line 13 def call(*) client = FirestoreClient.instance unless client.db_running return MCP::Tool::Response.new( [{ type: 'text', text: 'Inventory database is not running.' }] ) end client.reset MCP::Tool::Response.new( [{ type: 'text', text: 'Database reset successfully.' }] ) end |