Class: CheckDbTool

Inherits:
MCP::Tool
  • Object
show all
Defined in:
lib/check_db_tool.rb

Overview

Tool to check if the Firestore database is accessible.

Class Method Summary collapse

Class Method Details

.call ⇒ Object



13
14
15
16
17
18
19
# File 'lib/check_db_tool.rb', line 13

def call(*)
  client = FirestoreClient.instance
  running = client.db_running
  MCP::Tool::Response.new(
    [{ type: 'text', text: "Database running: #{running}" }]
  )
end